feat: add Vietnamese language support and translations (#6842)
- Added Vietnamese (Tiếng việt) to the list of supported languages. - Created a new translations file for Vietnamese with comprehensive translations for various UI elements. - Updated the TranslationStore to include the new Vietnamese language option.
This commit is contained in:
parent
9279b5f1fb
commit
5ec817ba37
4 changed files with 2334 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ export const SUPPORTED_LANGUAGES: ILanguageOption[] = [
|
|||
{ label: "Português Brasil", value: "pt-BR" },
|
||||
{ label: "Indonesian", value: "id" },
|
||||
{ label: "Română", value: "ro" },
|
||||
{ label: "Tiếng việt", value: "vi" },
|
||||
];
|
||||
|
||||
export const LANGUAGE_STORAGE_KEY = "userLanguage";
|
||||
|
|
|
|||
2329
packages/i18n/src/locales/vi/translations.json
Normal file
2329
packages/i18n/src/locales/vi/translations.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -171,6 +171,8 @@ export class TranslationStore {
|
|||
return import("../locales/id/translations.json");
|
||||
case "ro":
|
||||
return import("../locales/ro/translations.json");
|
||||
case "vi":
|
||||
return import("../locales/vi/translations.json");
|
||||
default:
|
||||
throw new Error(`Unsupported language: ${language}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@ export type TLanguage =
|
|||
| "ko"
|
||||
| "pt-BR"
|
||||
| "id"
|
||||
| "ro";
|
||||
| "ro"
|
||||
| "vi";
|
||||
|
||||
export interface ILanguageOption {
|
||||
label: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue