Skip to content

feat(i18n): add Portuguese (Brazil) language support - #26

Open
rafaelbinda wants to merge 3 commits into
nateherkai:mainfrom
rafaelbinda:feat/pt-br-i18n
Open

feat(i18n): add Portuguese (Brazil) language support#26
rafaelbinda wants to merge 3 commits into
nateherkai:mainfrom
rafaelbinda:feat/pt-br-i18n

Conversation

@rafaelbinda

Copy link
Copy Markdown

Summary

  • Adds EN / PT-BR language toggle to the top bar (localStorage, page reload).
  • Covers all visible UI strings: tab labels, KPI cards, table headers, chart legends, glossary, tips, settings, welcome modal.
  • No backend changes. No new dependencies. All 71 existing tests pass.

Changes

  • web/i18n.js (new): translation dictionary + t() / getLocale() / setLocale()
  • web/app.js: re-exports t(); adds EN / PT-BR button to topbar
  • web/style.css: minimal toggle button style
  • web/routes/*: all seven routes use t() for visible strings
  • README.md: documents the language selector

Test plan

  • python3 -m unittest discover tests — 71 tests green
  • Click EN → reloads in Portuguese; click PT-BR → reloads in English
  • Preference persists across tab close/reopen

🤖 Generated with Claude Code

rafaelbinda and others added 2 commits June 14, 2026 19:58
Adds a language toggle (EN / PT-BR) to the top bar. Clicking it saves
the preference to localStorage and reloads the page with all UI strings
translated — tab labels, KPI cards, table headers, chart legends,
glossary, tips, settings, and the welcome modal.

- web/i18n.js: new flat translation dictionary + t()/getLocale()/setLocale()
- web/app.js: imports and re-exports t(); adds lang-btn to topbar
- web/style.css: minimal style for the lang toggle button
- web/routes/*: all seven routes now use t() for visible strings
- README.md: documents the language selector feature

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Rename 'Turno' to 'Interação' and rewrite descriptions for session,
input/output tokens, cache read/created, and billable tokens to use
more natural and precise Portuguese wording.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ar buttons

Move language toggle button before the plan pill so the topbar reads
[PT-BR] [pro] [hide] instead of [pro] [PT-BR] [hide].

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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