Add Vietnamese language support and update locale files#421
Merged
Conversation
Contributor
khanhthanhdev
commented
Apr 29, 2026
- Added 'vi' (Vietnamese) to the list of supported app locales in i18n.ts.
- Updated locale definitions to include Vietnamese translations for various keys.
- Modified existing locale files (de-DE, en, es-419, es-ES, fr-FR, it-IT, ja-JP, ko-KR, pt-BR, pt-PT, ru-RU, zh-CN) to include Vietnamese translations for Vietnamese and ensure consistency.
- Added 'vi' (Vietnamese) to the list of supported app locales in i18n.ts. - Updated locale definitions to include Vietnamese translations for various keys. - Modified existing locale files (de-DE, en, es-419, es-ES, fr-FR, it-IT, ja-JP, ko-KR, pt-BR, pt-PT, ru-RU, zh-CN) to include Vietnamese translations for Vietnamese and ensure consistency.
There was a problem hiding this comment.
Pull request overview
Adds Vietnamese (vi) as a first-class UI locale and introduces a Vietnamese translation catalog, while updating other locale catalogs to expose Vietnamese as a selectable language in the language picker.
Changes:
- Added
vitoAPP_LOCALESand registered avilocale definition (date locale, label key, aliases, search keywords). - Added a new
src/lib/locales/vi.jsontranslation catalog. - Updated existing locale catalogs to include the new
locale.vilabel.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/lib/i18n.ts | Registers vi as a supported app locale and defines its metadata (label key, date locale, aliases, search keywords). |
| src/lib/locales/vi.json | Adds the Vietnamese translation catalog. |
| src/lib/locales/en.json | Adds locale.vi so Vietnamese can be labeled in the English UI. |
| src/lib/locales/de-DE.json | Adds locale.vi for German UI language picker. |
| src/lib/locales/ru-RU.json | Adds locale.vi for Russian UI language picker. |
| src/lib/locales/it-IT.json | Adds locale.vi for Italian UI language picker. |
| src/lib/locales/fr-FR.json | Adds locale.vi for French UI language picker. |
| src/lib/locales/es-ES.json | Adds locale.vi for Spanish (ES) UI language picker. |
| src/lib/locales/es-419.json | Adds locale.vi for Spanish (LatAm) UI language picker. |
| src/lib/locales/pt-BR.json | Adds locale.vi for Portuguese (BR) UI language picker. |
| src/lib/locales/pt-PT.json | Adds locale.vi for Portuguese (PT) UI language picker. |
| src/lib/locales/ja-JP.json | Adds locale.vi for Japanese UI language picker. |
| src/lib/locales/ko-KR.json | Adds locale.vi for Korean UI language picker. |
| src/lib/locales/zh-CN.json | Adds locale.vi for Simplified Chinese UI language picker. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.