Repository navigation
feat(i18n): add Brazilian Portuguese (pt-BR) shell locale - #974
Conversation
|
Thanks for adding Brazilian Portuguese support. PR #974 was merged with a merge commit, preserving your original commit. I added follow-up copy fixes on top: corrected mixed Spanish/Portuguese wording throughout the UI catalog and all 77 release-note entries; restored permission, clipboard, provider-credential, network, and retry-cost disclosures; fixed misleading action, keyboard, queue, and error copy; and added the two current-main catalog keys. I also added semantic copy assertions, pt-BR picker coverage in the Electron settings E2E, and updated the EN/ZH-CN E2E plan. Validation: i18n tests 27/27; shared tests 1,012/1,012; desktop typecheck passed; all 108 targeted locale/plugin desktop tests passed; desktop build and pt-BR Electron picker E2E passed; release-docs and PR-base gates passed. GitHub reported no CI checks. The full desktop suite had one unrelated failure (2,743/2,744): |
|
Thanks for merging and polishing it up! Glad to have pt-BR supported. |
Summary
Introduces Brazilian Portuguese (
pt-BR) as a supported shell locale for PI-Desktop, following ADR 0306 and Decision D605.Brazil represents an active developer base. This addition delivers an idiomatic, native, and professionally audited Portuguese experience that respects established developer terminology and strict desktop UI density constraints.
Changes (25 files, +3,241 −14)
Localization Catalog (
packages/i18n/src/locales/pt-BR/index.ts)2,146 / 2,146leaf keys translated).Anthropic,Together AI,Fireworks,Zhipu AI Coding Plan,OpenAI Chat Completions,OpenAI Responses,Anthropic Messages,Google Generative AI,macOS,Codex,Markdown,Tokens,Prompt,Pair).Release History (
packages/shared/src/changelog-pt-BR.ts)0.1.0through0.15.6) synchronized 1:1 withchangelog.ts.Specifications & Governance
docs/adr/0306-portuguese-brazil-shell-locale.mdand indexed indocs/adr/README.md.docs/spec/08-meta/decisions-log.mdanddocs/zh-CN/spec/08-meta/decisions-log.md.docs/spec/04-ux/02-i18n-english-first.mdanddocs/zh-CN/spec/04-ux/02-i18n-english-first.md.Runtime & IPC Integration
pt,pt-BR,pt_BR, andpt-PTtopt-BR.ptBRandptBRDefaultin@pi-desktop/i18n.Verification & Test Results
tsc -p packages/i18n/tsconfig.json(exit 0)tsc -p packages/i18n/tsconfig.json --noEmit(exit 0)vitest run packages/i18n/test/catalogs.test.mjs(9/9 pass)vitest run --root packages/shared(84 files, 1,012/1,012 pass)vitest run packages/shared/src/changelog.test.ts(4/4 pass)node --test apps/desktop/test/settings-general.test.mjs ...(94/94 pass)node scripts/check-release-docs.mjs(aligned with 0.15.6, exit 0)node scripts/check-pr-base-main.mjs(origin/main ancestor check, exit 0)Risk & Rollback
en).@pi-desktop/i18nresolution.