Skip to content

feat(i18n): add Brazilian Portuguese (pt-BR) locale and localize hardcoded dashboard strings - #2

Merged
fernandomarcius merged 3 commits into
mainfrom
merge/pt-br-locale
Oct 7, 2026
Merged

fernandomarcius merged 3 commits into
mainfrom
merge/pt-br-locale

Conversation

@fernandomarcius

Copy link
Copy Markdown
Owner

Same change as upstream Egonex-AI#716, merged into this fork so the plugin can be installed from it while the upstream PR is pending review.

  • pt-BR dashboard locale and pt-BR output guidelines for /understand
  • hardcoded dashboard strings moved into the locale files (all 8 locales)
  • README and translated READMEs list pt-BR

Fernando Farias added 3 commits October 6, 2026 10:49
- dashboard: pt-BR UI strings, resolveLocaleKey maps pt / pt-BR / portuguese
- understand skill: pt-BR output guidelines; portuguese -> pt-BR
- README: list pt-BR among supported languages
- Move remaining user-visible English (token gate, path finder, learn panel,
  warning/staleness banners, export alerts, code viewer errors, graph node
  cards, empty states, load errors, aria-labels) into the locale files.
- Render complexity, node types, edge categories and edge types through
  localized labels (new nodeTypeNames/edgeCategoryNames sections and
  utils/i18nLabels helpers).
- Use functions for counted/interpolated messages so each locale can apply
  its own plural rules (e.g. Russian one/few/many).
- Add the new keys to en, zh, zh-TW, ja, ko, ru, vi and pt-BR.
- Token gate follows the browser language; locale resolution retries the
  base language for tags such as ja-JP.
- Locale shape test now compares leaf keys (and their kind) for every locale.
@fernandomarcius
fernandomarcius merged commit 6b8569c into main Oct 7, 2026
@fernandomarcius
fernandomarcius deleted the merge/pt-br-locale branch October 7, 2026 12:00
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