Skip to content

feat(i18n): add Vietnamese (vi) locale support - #709

Merged
Lum1104 merged 2 commits into
Egonex-AI:mainfrom
rgb-vgx:feat/vi-locale
Oct 6, 2026
Merged

Lum1104 merged 2 commits into
Egonex-AI:mainfrom
rgb-vgx:feat/vi-locale

Conversation

@rgb-vgx

@rgb-vgx rgb-vgx commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds first-class Vietnamese (vi) support to the dashboard UI and to /understand graph output.

Changes

  • Dashboard locale — new packages/dashboard/src/locales/vi.ts covering every key (UI labels, diff/tour, all 38 edge labels, onboarding steps).
  • Locale resolution — registers vi in locales/index.ts (LocaleKey, locales record) and maps vi, vi-vn and vietnamese in resolveLocaleKey; unknown languages still fall back to en.
  • Graph content guidance — new skills/understand/locales/vi.md (tag conventions, summary style, technical terms, layer names) so /understand --language vi gets Vietnamese-specific guidance; the friendly-name map now documents vietnamese → vi.
  • Docs — new READMEs/README.vi-VN.md and a Tiếng Việt entry in the language switcher of every README; vi added to the supported-languages line.
  • Tests — packages/dashboard/src/__tests__/locales.test.ts locks vi resolution and full key-shape parity with en.

Testing

  • pnpm --filter @understand-anything/dashboard build (tsc + vite)
  • pnpm --filter @understand-anything/dashboard test — 107 passed
  • pnpm --filter @understand-anything/core test — 1013 passed
  • pnpm --filter @understand-anything/skill build
  • pnpm test — 786 passed

Notes

A few dashboard components still contain hardcoded English strings (TokenGate, PathFinderModal, StalenessBanner), consistent with the other five locales — localizing those is a possible follow-up outside this PR.

- Add dashboard vi locale covering every key (UI labels, diff, tour,
  edge labels and onboarding steps)
- Register vi in locales/index.ts; resolveLocaleKey maps vi, vi-vn and
  vietnamese, unknown languages still fall back to en
- Add skills/understand/locales/vi.md output guidance so /understand
  graph content gets Vietnamese tag, summary and layer conventions
- Document vietnamese -> vi normalization in the /understand skill
- List vi in the supported-languages line across all READMEs
- Add dashboard tests locking vi resolution and key-shape parity with en
- Add READMEs/README.vi-VN.md translated from the current English README
  (updated repo paths, .ua data dir, Kiro/Nanobot platforms, viewer section)
- Add the Tiếng Việt entry to the language switcher in every README
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.

2 participants