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:
Trần Huy Duẫn
2025-04-01 16:47:21 +07:00
committed by GitHub
parent 9279b5f1fb
commit 5ec817ba37
4 changed files with 2334 additions and 1 deletions

View File

@@ -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";

File diff suppressed because it is too large Load Diff

View File

@@ -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}`);
}

View File

@@ -15,7 +15,8 @@ export type TLanguage =
| "ko"
| "pt-BR"
| "id"
| "ro";
| "ro"
| "vi";
export interface ILanguageOption {
label: string;