mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user