mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-24 10:25:47 +03:00
feat(localization): Bringing back Russian locale (#1281)
This commit is contained in:
parent
cea8b9df3d
commit
20dc6843aa
2 changed files with 1080 additions and 3 deletions
|
@ -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
1073
src/locales/ru.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue