Skip to content

feat(i18n): add br locale support#10086

Merged
adamdotdevin merged 1 commit into
anomalyco:devfrom
ygorsimoes:feat/app-br
Jan 22, 2026
Merged

feat(i18n): add br locale support#10086
adamdotdevin merged 1 commit into
anomalyco:devfrom
ygorsimoes:feat/app-br

Conversation

@ygorsimoes

Copy link
Copy Markdown
Contributor

Closes #10085

Summary

Changes

  • Created packages/app/src/i18n/br.ts with 661 translation keys
  • Created packages/ui/src/i18n/br.ts with 93 translation keys
  • Updated packages/app/src/context/language.tsx:
    • Added br to Locale type and LOCALES array
    • Updated detectLocale() to map pt variants to br
    • Added br dictionary imports and merging
  • Added language.br key to all 13 existing translation files

Rationale for br locale code

Using br instead of pt-br for:

  • Consistency with other locale codes in the codebase (en, zh, ko, de, etc.)
  • Simplicity and brevity
  • Browser locale detection still works seamlessly (pt/pt-br/pt-BR → br)

Testing

  • All translation keys complete and verified
  • No references to old pt-br remain in codebase
  • Local testing pending (screenshots to be added after review)

Checklist

- Add Portuguese (Brazil) translations using br locale code
- Add br.ts translation files for app (661 keys) and UI (93 keys)
- Update language context to support br locale
- Add br language label to all existing translations
- Auto-detect pt/pt-br/pt-BR browser locales and map to br

Closes anomalyco#10085
@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@adamdotdevin adamdotdevin merged commit 32f72f4 into anomalyco:dev Jan 22, 2026
2 checks passed
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(i18n): add Portuguese (Brazil) language support

2 participants