feat(i18n): add Brazilian Portuguese (pt-BR) locale - #552
Open
diogocaspary wants to merge 1 commit into
Open
diogocaspary wants to merge 1 commit into
diogocaspary wants to merge 1 commit into
Conversation
Adds locales/pt-BR.json with all 1,170 entries of en.json (1,203 leaf
strings counting array items) translated, and registers pt-BR in
LANGUAGES, resources and supportedLngs.
A script checked the key tree against en.json: no missing or extra keys,
the same key order and types, and all 236 {{placeholders}} and embedded
tags kept per string. npm run typecheck passes.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
What & why
Adds a Brazilian Portuguese (pt-BR) locale, following the exact recipe documented at the top of
src/renderer/src/i18n/index.ts: one newlocales/pt-BR.jsonwith the same key tree asen.json, registered inresources,supportedLngsandLANGUAGES(dir: 'ltr'). No other code changed.Brazil has one of the largest dev communities using coding agents, and the app currently offers English, 简体中文 and العربية — pt-BR felt like a natural next step. All 1,203 leaf strings are translated. Product names (Munder Difflin, Michael, hive, blackboard) and dev-established terms (commit, branch, worktree, token, prompt, webhook, kanban) deliberately stay in English; UI language follows natural Brazilian Portuguese product conventions (e.g. "Command Center" → "Central de Comando", "tasks" → "tarefas", "hire" → "contratação").
Validation performed:
en.json{{placeholder}}parity: 236/236 identical, zero divergence (also verified embedded tags)npm run typecheck: green on bothtypecheck:nodeandtypecheck:webcth.languageType of change
Evidence
Before
English-only UI (floor + Settings → General):
After
Same views with Português (Brasil) selected in Settings → General → Language:
Terminology notes for review (basis for discussion, happy to adjust):
Discord: casparydev