[WEB-3732 | WEB-3731] feat: Vietnamese and Portuguese language support #6854
This commit is contained in:
commit
2d1b3fb39e
5 changed files with 4715 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
2373
packages/i18n/src/locales/pt-BR/translations.json
Normal file
2373
packages/i18n/src/locales/pt-BR/translations.json
Normal file
File diff suppressed because it is too large
Load diff
2333
packages/i18n/src/locales/vi-VN/translations.json
Normal file
2333
packages/i18n/src/locales/vi-VN/translations.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,8 +13,10 @@ export type TLanguage =
|
|||
| "ua"
|
||||
| "pl"
|
||||
| "ko"
|
||||
| "pt-BR"
|
||||
| "id"
|
||||
| "ro";
|
||||
| "ro"
|
||||
| "vi-VN";
|
||||
|
||||
export interface ILanguageOption {
|
||||
label: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue