feat(i18n): add Brazilian Portuguese (pt-BR) UI language#9
Merged
Conversation
Add pt-br as a 9th UI language: - Full translation of every i18n key in src/i18n/translations.ts, including the localized `language.pt-br` display name added to all existing language blocks. - Register `pt-br` in the `Language` type and the topbar language switcher (LANGUAGE_OPTIONS in src/App.tsx). - Extend the translations test to cover the new language. - New lang/README-pt-br.md (translated from the English README); add the Português (BR) entry to every README language switcher and update the HU/EN/DE/ES/IT/SK/PL/RU code lists to include PT-BR. - CHANGELOG entry and version bump to 1.11.0. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
@JulianoBazzi is attempting to deploy a commit to the ZoliQua's projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Pull request overview
Adds Brazilian Portuguese (pt-br) as a new UI language across the app, i18n tables, tests, and documentation, along with a version bump and changelog entry to ship the new locale.
Changes:
- Extend i18n support with a full
pt-brtranslation table and register it in the language selector +Languagetype. - Update translation test coverage to include
pt-br. - Add/update documentation for the new language (new
lang/README-pt-br.md, language switchers updated) and bump version to1.11.0with changelog entry.
Reviewed changes
Copilot reviewed 14 out of 15 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/i18n/translations.ts | Adds pt-br to Language, adds localized language.pt-br labels across languages, and provides the full pt-BR translation table. |
| src/App.tsx | Registers pt-br in the topbar LANGUAGE_OPTIONS. |
| src/tests/translations.test.ts | Extends the language list and assertion text to include the 9th language. |
| README.md | Updates version badge and language lists/switcher to include Portuguese (BR). |
| package.json | Bumps package version to 1.11.0. |
| package-lock.json | Updates lockfile package version to 1.11.0. |
| lang/README-sk.md | Updates version badge and language lists to include PT-BR. |
| lang/README-ru.md | Updates version badge and language lists to include PT-BR. |
| lang/README-pt-br.md | Adds a new Brazilian Portuguese README. |
| lang/README-pl.md | Updates version badge and language lists to include PT-BR. |
| lang/README-it.md | Updates version badge and language lists to include PT-BR. |
| lang/README-hu.md | Updates version badge and language lists to include PT-BR. |
| lang/README-de.md | Updates version badge and language lists to include PT-BR. |
| CLAUDE.md | Updates contributor guidance to include PT-BR in the supported language set. |
| CHANGELOG.md | Adds 1.11.0 release notes describing the pt-BR language addition and version bump. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
12
to
+15
| * | pl | Polish | | ||
| * | ru | Russian | | ||
| */ | ||
| export type Language = "hu" | "en" | "de" | "es" | "it" | "sk" | "pl" | "ru"; | ||
| export type Language = "hu" | "en" | "de" | "es" | "it" | "sk" | "pl" | "ru" | "pt-br"; |
Owner
|
Thank you for your suggestion and commit. |
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.
🇧🇷 Tradução para Português do Brasil (pt-BR)
Adiciona o Português do Brasil como 9º idioma da interface, ao lado de HU/EN/DE/ES/IT/SK/PL/RU.
O que mudou
Código
src/i18n/translations.ts— novo blocopt-brcom a tradução de todas as chaves de i18n (~200), mais a chave de nome de idiomalanguage.pt-br(🇧🇷 Português (Brasil)) adicionada a todos os blocos de idioma existentes.src/App.tsx—pt-brregistrado emLANGUAGE_OPTIONS(seletor de idioma da barra superior).Languageestendido com"pt-br".src/__tests__/translations.test.ts—pt-brincluído na cobertura de testes.Documentação
lang/README-pt-br.md, traduzido do README em inglês (fonte de verdade).HU/EN/DE/ES/IT/SK/PL/RU→.../PT-BRatualizadas em todos os idiomas.CHANGELOG.mde bump de versão1.10.0→1.11.0(package.json, package-lock, badges).Terminologia
Traduções usam terminologia odontológica de pt-BR (por exemplo: restauração, cárie, dente decíduo, vestibular, apicectomia, coroa metalocerâmica, pino de fibra de vidro). As letras da cruz de faces (B/M/O/D/L) foram mantidas literais, pois são fixas no código e independentes de idioma.
Verificação
npx tsc -b --noEmit— sem erros de tiponpx vitest run— 209/209 testes passando (a suíte de traduções valida que pt-br tem todas as chaves, sem chaves extras, sem valores vazios e com os mesmos placeholders{{...}})npm run build— build de produção OKObservação para o release
O bloco "Como citar" (Zenodo/DOI) foi mantido em
v1.10.0com os DOIs atuais, já que o DOI é específico do depósito publicado. Atualize a citação/DOI ao publicar o release 1.11.0.🤖 Generated with Claude Code