Skip to content

feat(i18n): add Brazilian Portuguese (pt-BR) UI language#9

Merged
ZoliQua merged 1 commit into
ZoliQua:mainfrom
JulianoBazzi:feat/pt-br-translation
Jul 10, 2026
Merged

feat(i18n): add Brazilian Portuguese (pt-BR) UI language#9
ZoliQua merged 1 commit into
ZoliQua:mainfrom
JulianoBazzi:feat/pt-br-translation

Conversation

@JulianoBazzi

Copy link
Copy Markdown
Contributor

🇧🇷 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 bloco pt-br com a tradução de todas as chaves de i18n (~200), mais a chave de nome de idioma language.pt-br (🇧🇷 Português (Brasil)) adicionada a todos os blocos de idioma existentes.
  • src/App.tsxpt-br registrado em LANGUAGE_OPTIONS (seletor de idioma da barra superior).
  • Tipo Language estendido com "pt-br".
  • src/__tests__/translations.test.tspt-br incluído na cobertura de testes.

Documentação

  • Novo lang/README-pt-br.md, traduzido do README em inglês (fonte de verdade).
  • Entrada 🇧🇷 Português (BR) adicionada ao seletor de idiomas de todos os READMEs.
  • Listas de códigos HU/EN/DE/ES/IT/SK/PL/RU.../PT-BR atualizadas em todos os idiomas.
  • Entrada no CHANGELOG.md e bump de versão 1.10.01.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 tipo
  • npx vitest run209/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 OK
  • ✅ Verificação visual: idioma trocado para 🇧🇷 no app em execução; interface renderizou 100% em pt-BR (subtítulo dinâmico, painel de informações do dente com plurais e placeholders resolvidos, painel de controles, menus de exportação/importação). Nenhuma chave crua ou fallback para inglês.

Observação para o release

O bloco "Como citar" (Zenodo/DOI) foi mantido em v1.10.0 com 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

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>
Copilot AI review requested due to automatic review settings July 10, 2026 15:38
@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

@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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-br translation table and register it in the language selector + Language type.
  • 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 to 1.11.0 with 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 thread src/i18n/translations.ts
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";
@ZoliQua ZoliQua merged commit 18a861f into ZoliQua:main Jul 10, 2026
1 check failed
@ZoliQua

ZoliQua commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Thank you for your suggestion and commit.
I made the merge. If you have any other suggestions feel free to suggest! 😊

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.

3 participants