[WEB-3686] feat: romanian and indonesian language support (#6825)
* Add ro Romanian Language locale (#6809) * feat: add Indonesian language support (#6794) Co-authored-by: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> * chore: core translation added and code refactor --------- Co-authored-by: mnbro <107358316+mnbro@users.noreply.github.com> Co-authored-by: Rasyid Ridho <rasyid@sekeco.id>
This commit is contained in:
parent
41447e566a
commit
c125bc54ba
5 changed files with 4765 additions and 1 deletions
|
|
@ -17,6 +17,8 @@ export const SUPPORTED_LANGUAGES: ILanguageOption[] = [
|
||||||
{ label: "Українська", value: "ua" },
|
{ label: "Українська", value: "ua" },
|
||||||
{ label: "Polski", value: "pl" },
|
{ label: "Polski", value: "pl" },
|
||||||
{ label: "한국어", value: "ko" },
|
{ label: "한국어", value: "ko" },
|
||||||
|
{ label: "Indonesian", value: "id" },
|
||||||
|
{ label: "Română", value: "ro" },
|
||||||
];
|
];
|
||||||
|
|
||||||
export const LANGUAGE_STORAGE_KEY = "userLanguage";
|
export const LANGUAGE_STORAGE_KEY = "userLanguage";
|
||||||
|
|
|
||||||
2371
packages/i18n/src/locales/id/translations.json
Normal file
2371
packages/i18n/src/locales/id/translations.json
Normal file
File diff suppressed because it is too large
Load diff
2371
packages/i18n/src/locales/ro/translations.json
Normal file
2371
packages/i18n/src/locales/ro/translations.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -165,6 +165,10 @@ export class TranslationStore {
|
||||||
return import("../locales/pl/translations.json");
|
return import("../locales/pl/translations.json");
|
||||||
case "ko":
|
case "ko":
|
||||||
return import("../locales/ko/translations.json");
|
return import("../locales/ko/translations.json");
|
||||||
|
case "id":
|
||||||
|
return import("../locales/id/translations.json");
|
||||||
|
case "ro":
|
||||||
|
return import("../locales/ro/translations.json");
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unsupported language: ${language}`);
|
throw new Error(`Unsupported language: ${language}`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,20 @@
|
||||||
export type TLanguage = "en" | "fr" | "es" | "ja" | "zh-CN" | "zh-TW" | "ru" | "it" | "cs" | "sk" | "de" | "ua" | "pl" | "ko";
|
export type TLanguage =
|
||||||
|
| "en"
|
||||||
|
| "fr"
|
||||||
|
| "es"
|
||||||
|
| "ja"
|
||||||
|
| "zh-CN"
|
||||||
|
| "zh-TW"
|
||||||
|
| "ru"
|
||||||
|
| "it"
|
||||||
|
| "cs"
|
||||||
|
| "sk"
|
||||||
|
| "de"
|
||||||
|
| "ua"
|
||||||
|
| "pl"
|
||||||
|
| "ko"
|
||||||
|
| "id"
|
||||||
|
| "ro";
|
||||||
|
|
||||||
export interface ILanguageOption {
|
export interface ILanguageOption {
|
||||||
label: string;
|
label: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue