[WEB-3732 | WEB-3731] feat: Vietnamese and Portuguese language support #6854

This commit is contained in:
sriram veeraghanta
2025-04-01 16:43:16 +05:30
committed by GitHub
5 changed files with 4715 additions and 1 deletions

View File

@@ -17,8 +17,10 @@ export const SUPPORTED_LANGUAGES: ILanguageOption[] = [
{ label: "Українська", value: "ua" },
{ label: "Polski", value: "pl" },
{ label: "한국어", value: "ko" },
{ label: "Português Brasil", value: "pt-BR" },
{ label: "Indonesian", value: "id" },
{ label: "Română", value: "ro" },
{ label: "Tiếng việt", value: "vi-VN" },
];
export const LANGUAGE_STORAGE_KEY = "userLanguage";

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -165,10 +165,14 @@ export class TranslationStore {
return import("../locales/pl/translations.json");
case "ko":
return import("../locales/ko/translations.json");
case "pt-BR":
return import("../locales/pt-BR/translations.json");
case "id":
return import("../locales/id/translations.json");
case "ro":
return import("../locales/ro/translations.json");
case "vi-VN":
return import("../locales/vi-VN/translations.json");
default:
throw new Error(`Unsupported language: ${language}`);
}

View File

@@ -13,8 +13,10 @@ export type TLanguage =
| "ua"
| "pl"
| "ko"
| "pt-BR"
| "id"
| "ro";
| "ro"
| "vi-VN";
export interface ILanguageOption {
label: string;