mirror of
https://github.com/makeplane/plane.git
synced 2025-12-24 07:39:32 +01:00
[WEB-3732 | WEB-3731] feat: Vietnamese and Portuguese language support #6854
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user