feat: russian translation (#6666)

This commit is contained in:
Nikita Mitasov 2025-02-25 10:32:05 +03:00 committed by GitHub
parent 062fc9dbc0
commit 5329326602
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2198 additions and 1 deletions

View file

@ -8,6 +8,7 @@ export const SUPPORTED_LANGUAGES: ILanguageOption[] = [
{ label: "Español", value: "es" },
{ label: "日本語", value: "ja" },
{ label: "中文", value: "zh-CN" },
{ label: "Русский", value: "ru" },
];
export const STORAGE_KEY = "userLanguage";

File diff suppressed because it is too large Load diff

View file

@ -147,6 +147,8 @@ export class TranslationStore {
return import("../locales/ja/translations.json");
case "zh-CN":
return import("../locales/zh-CN/translations.json");
case "ru":
return import("../locales/ru/translations.json");
default:
throw new Error(`Unsupported language: ${language}`);
}

View file

@ -1,4 +1,4 @@
export type TLanguage = "en" | "fr" | "es" | "ja" | "zh-CN";
export type TLanguage = "en" | "fr" | "es" | "ja" | "zh-CN" | "ru";
export interface ILanguageOption {
label: string;