feat(i18n): add Portuguese (pt-BR) locale#23
Merged
Conversation
Adds a new 'pt' language with locale 'pt-BR' alongside the existing en, sv, de, fr and es locales. - New translation file src/app/i18n/messages/pt.ts (1196 keys, full parity with en.ts) - Register 'pt' in SUPPORTED_LANGUAGES, LANGUAGE_OPTIONS, LOCALE_BY_LANGUAGE - Wire ptMessages into the MESSAGES record - Add Portuguese boot copy to public/boot-i18n.js Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Owner
|
Thanks for this... But a alot of the code is drifted from last time. Is it okay for you to rebase and update the remaining keys and send a PR again? |
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
Adds Brazilian Portuguese (
pt-BR) as the sixth supported locale, alongside the existingen,sv,de,fr, andes.src/app/i18n/messages/pt.tswith 1196 keys in full parity withen.ts(verified bytsc --noEmit).'pt'inSUPPORTED_LANGUAGES,LANGUAGE_OPTIONS(labelPortugues, matching the existing ASCII convention used forFrancaisandEspanol), andLOCALE_BY_LANGUAGE(pt: 'pt-BR').ptMessagesinto theMESSAGESrecord insrc/app/i18n/messages/index.ts.public/boot-i18n.js:Iniciando o seu painel de casa inteligente.Translation notes
{name},{count},{week}, etc.) preserved.Navet,Home Assistant,Liquid Glass,Lucide,OLED,bento.dashboard,widget,card,tile,sparkline,receiver,set-top box,streaming box,soundbar,onboarding.room → cômodo,smart home → casa inteligente,HVAC → climatização,cover → cobertura,lock/unlock → trancar/destrancar,mopping → passando pano,ambient bleed → sangria ambiente.Test plan
pnpm typecheck— passes (proves 1:1 key parity withenMessagesviaRecord<string, Record<TranslationKey, string>>)pnpm check(biome lint + format) — passespnpm check:ui-kit— passespnpm check:stories— passes (148 stories)pnpm test— passes (53 files, 246 tests)🤖 Generated with Claude Code