feat(localization): Bringing back Russian locale (#1281)

This commit is contained in:
Artyom 2023-11-08 20:19:23 +03:00 committed by GitHub
parent cea8b9df3d
commit 20dc6843aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1080 additions and 3 deletions

View file

@ -3,6 +3,7 @@ import es from './es.json'
import fr from './fr.json'
import zh_hans from './zh-Hans.json'
import zh_hant from './zh-Hant.json'
import ru from './ru.json'
type LocaleDef = {
title: string
@ -14,7 +15,8 @@ export enum Locales {
ES = 'es',
FR = 'fr',
ZH_HANS = 'zh-Hans',
ZH_HANT = 'zh-Hant'
ZH_HANT = 'zh-Hant',
RU = 'ru'
}
export const LOCALES: LocaleDef[] = [
@ -22,7 +24,8 @@ export const LOCALES: LocaleDef[] = [
{ title: 'Español', value: Locales.ES },
{ title: 'Français', value: Locales.FR },
{ title: '简体中文', value: Locales.ZH_HANS },
{ title: '繁體中文', value: Locales.ZH_HANT }
{ title: '繁體中文', value: Locales.ZH_HANT },
{ title: 'Русский', value: Locales.RU }
]
export const messages: Record<Locales, any> = {
@ -30,7 +33,8 @@ export const messages: Record<Locales, any> = {
[Locales.ES]: es,
[Locales.FR]: fr,
[Locales.ZH_HANS]: zh_hans,
[Locales.ZH_HANT]: zh_hant
[Locales.ZH_HANT]: zh_hant,
[Locales.RU]: ru
}
export const defaultLocale = Locales.EN

1073
src/locales/ru.json Normal file

File diff suppressed because it is too large Load diff