Skip to content

feat(i18n): add Brazilian Portuguese (pt) translation - #343

Open
dougbaptista wants to merge 1 commit into
ghenry22:masterfrom
dougbaptista:feat/portuguese-brazilian-translation
Open

dougbaptista wants to merge 1 commit into
ghenry22:masterfrom
dougbaptista:feat/portuguese-brazilian-translation

Conversation

@dougbaptista

Copy link
Copy Markdown

Summary

Adds a Brazilian Portuguese (pt-BR) translation. The pt entry was already listed as a future language in languages.ts.

Changes

  • Add src/i18n/locales/pt.json with all 1163 keys from en.json (pt-BR, informal "você" tone).
  • Register pt in languages.ts (shown as "Português (Brasil)") and in i18n.ts (resource bundle and the pluralrules / numberformat / datetimeformat locale data imports).
  • Plural keys follow the same layout as es.json (_one, _few, _many, _other).
  • The locale code is pt, so it also matches device tags like pt-BR, as resolveAppLocale falls back to the 2-letter code.

Testing

  • node scripts/validate-translations.js passes: same keys as en.json, identical {{placeholders}} in every string
  • npx tsc --noEmit passes (not run)
  • npx jest --no-coverage passes (not run)
  • New/updated tests added (not applicable)
  • Tested on iOS
  • Tested on Android

Happy to adjust wording or move this to Crowdin if you prefer that workflow.

This branch has not been deployed

No deployments
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.

1 participant