feat(desktop): add Brazilian Portuguese (pt-BR) locale for desktop i18n - #40439
Closed
liuhao1024 wants to merge 1 commit into
Closed
feat(desktop): add Brazilian Portuguese (pt-BR) locale for desktop i18n#40439liuhao1024 wants to merge 1 commit into
liuhao1024 wants to merge 1 commit into
Conversation
Add pt-BR as the third desktop locale alongside English and Chinese, covering all translatable string surfaces in the Translations interface. Files changed: - apps/desktop/src/i18n/pt-br.ts — NEW: full translations (~795 lines) - apps/desktop/src/i18n/types.ts — add 'pt-br' to Locale union - apps/desktop/src/i18n/languages.ts — add pt-br to LOCALE_OPTIONS + aliases - apps/desktop/src/i18n/catalog.ts — register pt-br in TRANSLATIONS - apps/desktop/src/i18n/languages.test.ts — add pt-br test cases Closes NousResearch#40239
Open
1 task
Contributor
Author
|
Closing — locale files (catalog.ts, languages.ts, languages.test.ts) have been heavily modified on main since this PR was created, making rebase impractical. Will re-submit with fresh locale additions if needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Brazilian Portuguese (pt-BR) as the third desktop locale alongside English and Chinese, covering all translatable string surfaces in the
Translationsinterface.This follows the same pattern established by the Chinese locale (PR #38241) and the recently submitted Russian locale (PR #40426).
Closes #40239
Changes
apps/desktop/src/i18n/pt-br.tsapps/desktop/src/i18n/types.ts'pt-br'toLocaleunionapps/desktop/src/i18n/languages.tsLOCALE_OPTIONS+LOCALE_ALIASESapps/desktop/src/i18n/catalog.tsTRANSLATIONSapps/desktop/src/i18n/languages.test.tsCoverage
All 15 sections of the
Translationsinterface are translated:common,boot,notifications,titlebar,languagesettings(nav, sections, search, mode options, appearance, about)skills,agents,commandCenter,messagingprofiles,cron,artifacts,sidebar,composerLocale aliases
The following aliases resolve to
pt-br:pt-br,pt_BR,pt,pt-brasilHow to test
Notes
FIELD_LABELSandFIELD_DESCRIPTIONSare imported from@/app/settings/constants(shared across locales, currently English-only) — not translatedTranslationsinterfacenewSessionPlaceholders,followUpPlaceholders) have all 7 entries translated