Skip to content

feat(i18n): add Portuguese (pt-BR) desktop language support (#40239) - #65064

Open
webtecnica wants to merge 2 commits into
NousResearch:mainfrom
webtecnica:feat/pt-br-desktop-i18n
Open

feat(i18n): add Portuguese (pt-BR) desktop language support (#40239)#65064
webtecnica wants to merge 2 commits into
NousResearch:mainfrom
webtecnica:feat/pt-br-desktop-i18n

Conversation

@webtecnica

Copy link
Copy Markdown
Contributor

Summary

Adds Portuguese (pt-BR) as a fully supported language in the Hermes Desktop app, following the same pattern as the recent Japanese addition (#40219).

Changes

File Change
apps/desktop/src/i18n/pt.ts NEW — Full Translations interface (107 KB, ~2,544 lines)
apps/desktop/src/i18n/types.ts Added 'pt' to Locale type
apps/desktop/src/i18n/catalog.ts Imported and registered pt
apps/desktop/src/i18n/languages.ts Added pt locale option + aliases (pt-BR, pt-PT, português, brasileiro, brazilian)
apps/desktop/src/i18n/languages.test.ts Added pt test cases

Translation status

pt.ts currently contains English strings as placeholders (copied from en.ts). Native Portuguese speakers need to replace the string values with Brazilian Portuguese translations. The wiring, types, and test infrastructure are complete — only translation work remains.

Backend PT-BR support already exists (locales/pt.yaml, agent/i18n.py has comprehensive Portuguese aliases). This PR brings the Desktop UI to parity.

Related

@alexander-stack1 — the skeleton is ready for translation 🇧🇷

…arch#40239)

Adds pt as the 5th desktop locale (after en, zh, zh-hant, ja).

- apps/desktop/src/i18n/pt.ts — full Translations interface (copied from en.ts,
  English values as placeholders for native speaker translation)
- types.ts — add 'pt' to Locale union
- catalog.ts — import and register pt
- languages.ts — add pt option and aliases (pt-BR, pt-PT, português, brasileiro)
- languages.test.ts — add pt test cases

Translators: replace the English string values in pt.ts with the
corresponding Brazilian Portuguese translations.
@alt-glitch alt-glitch added type/feature New feature or request comp/desktop Electron desktop app (apps/desktop/*) P3 Low — cosmetic, nice to have labels Jul 15, 2026
@webtecnica

Copy link
Copy Markdown
Contributor Author

@alexander-stack1 — a tradução PT-BR está completa! 🎉

A pt.ts foi traduzida integralmente (via Claude 4.8) e revisada por um falante nativo de PT-BR. O PR segue o mesmo padrão do japonês (#40219): wiring em types.ts, catalog.ts, languages.ts, e testes atualizados.

Resumo:

  • apps/desktop/src/i18n/pt.ts — ~2.100 linhas traduzidas 🇧🇷
  • TypeScript validado, estrutura intacta
  • ~28 mil palavras traduzidas

Se puder dar uma revisada na qualidade das traduções e aprovar, agiliza o merge! ✅

@teknium1 — PT-BR desktop PR ready for review when you have a chance.

@alexander-stack1

Copy link
Copy Markdown

Except my coments, everything is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/i18n Localization, locales, translations comp/desktop Electron desktop app (apps/desktop/*) P3 Low — cosmetic, nice to have sweeper:blast-contained Sweeper blast radius: contained — one narrow path / opt-in / few users type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add Portuguese (pt-BR) language support to the desktop app (i18n / localization)

4 participants