[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:
Anmol Singh Bhatia 2025-03-26 20:10:20 +05:30 committed by GitHub
parent 41447e566a
commit c125bc54ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 4765 additions and 1 deletions

View file

@ -17,6 +17,8 @@ export const SUPPORTED_LANGUAGES: ILanguageOption[] = [
{ label: "Українська", value: "ua" },
{ label: "Polski", value: "pl" },
{ label: "한국어", value: "ko" },
{ label: "Indonesian", value: "id" },
{ label: "Română", value: "ro" },
];
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,6 +165,10 @@ export class TranslationStore {
return import("../locales/pl/translations.json");
case "ko":
return import("../locales/ko/translations.json");
case "id":
return import("../locales/id/translations.json");
case "ro":
return import("../locales/ro/translations.json");
default:
throw new Error(`Unsupported language: ${language}`);
}

View file

@ -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 {
label: string;