feat: russian translation (#6666)
This commit is contained in:
parent
062fc9dbc0
commit
5329326602
4 changed files with 2198 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
2194
packages/i18n/src/locales/ru/translations.json
Normal file
2194
packages/i18n/src/locales/ru/translations.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue