Skip to content

feat(i18n): add comprehensive Vietnamese (vi-VN) localization - #3908

Open
nvqui97 wants to merge 1 commit into
Tencent:mainfrom
nvqui97:feature/vietnamese-localization
Open

nvqui97 wants to merge 1 commit into
Tencent:mainfrom
nvqui97:feature/vietnamese-localization

Conversation

@nvqui97

@nvqui97 nvqui97 commented Sep 30, 2026

Copy link
Copy Markdown

Description

This PR introduces complete Vietnamese (vi-VN) localization for WeKnora across both the frontend Vue 3 SPA and backend Go services.

  • Full Translation Coverage: Added all 6,547 locale keys in frontend/src/i18n/locales/vi-VN.ts, completely synchronized with the latest en-US.ts (including new features: Image Gallery, Citation passage locators, Host Skills, MinerU 4.0 tiers, and Image attribute observations).
  • Frontend Integration: Registered vi-VN in Vue i18n configurations (embed.ts, index.ts, localeKeyAudit.ts), whitelisted vi-VN in docker-entrypoint.sh, and added "Tiếng Việt" options to language selectors in Login, Settings, Embed Channel, and IM Channel panels.
  • Backend Integration: Added vi-VN support in Go backend locale mapping (internal/types/locale.go, internal/types/context_helpers.go, and internal/handler/mcp_usage_instructions.go).
  • Standardized Terminology: Preserved standard AI/system terms (Sandbox, Agent, Prompt, Chunk, Embedding, Rerank, Artifacts, Audit Log, Model Catalog, Pipeline, Workflow, Vector Store) for modern SaaS UX consistency.

Type of Change

  • ✨ New feature
  • 🐛 Bug fix
  • 💥 Breaking change
  • 📚 Documentation update
  • 🎨 Refactor
  • ⚡ Performance improvement
  • 🧪 Test
  • 🔧 Configuration / Build / CI

Testing

  • Ran i18n key audit comparison against upstream en-US.ts: verified 0 missing keys and 0 variable mismatches across all 6,547 keys.
  • Verified TypeScript parsing with --experimental-strip-types.
  • Passed git diff --check origin/main...HEAD with zero whitespace/formatting issues.

Checklist

  • git diff --check origin/main...HEAD passes
  • Changed source files are formatted
  • Targeted tests for the changed packages/components pass
  • Self-reviewed the code
  • Added/updated tests covering the change
  • Breaking changes are clearly called out in the description above

- Add 6,547 translation keys in frontend/src/i18n/locales/vi-VN.ts
- Register vi-VN in Vue i18n configs and runtime selectors (Login, Settings, AgentEmbed, IMChannel)
- Whitelist vi-VN in frontend docker-entrypoint.sh
- Register Vietnamese language support in Go backend (internal/types/locale, internal/types/context_helpers, internal/handler/mcp_usage_instructions)
- Fully synced with latest Tencent/WeKnora upstream (bccb4b1) with 0 missing keys and 0 variable mismatches

This branch has not been deployed

No deployments
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