mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-31 13:54:34 +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 fr from './fr.json'
|
||||||
import zh_hans from './zh-Hans.json'
|
import zh_hans from './zh-Hans.json'
|
||||||
import zh_hant from './zh-Hant.json'
|
import zh_hant from './zh-Hant.json'
|
||||||
|
import ru from './ru.json'
|
||||||
|
|
||||||
type LocaleDef = {
|
type LocaleDef = {
|
||||||
title: string
|
title: string
|
||||||
|
@ -14,7 +15,8 @@ export enum Locales {
|
||||||
ES = 'es',
|
ES = 'es',
|
||||||
FR = 'fr',
|
FR = 'fr',
|
||||||
ZH_HANS = 'zh-Hans',
|
ZH_HANS = 'zh-Hans',
|
||||||
ZH_HANT = 'zh-Hant'
|
ZH_HANT = 'zh-Hant',
|
||||||
|
RU = 'ru'
|
||||||
}
|
}
|
||||||
|
|
||||||
export const LOCALES: LocaleDef[] = [
|
export const LOCALES: LocaleDef[] = [
|
||||||
|
@ -22,7 +24,8 @@ export const LOCALES: LocaleDef[] = [
|
||||||
{ title: 'Español', value: Locales.ES },
|
{ title: 'Español', value: Locales.ES },
|
||||||
{ title: 'Français', value: Locales.FR },
|
{ title: 'Français', value: Locales.FR },
|
||||||
{ title: '简体中文', value: Locales.ZH_HANS },
|
{ 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> = {
|
export const messages: Record<Locales, any> = {
|
||||||
|
@ -30,7 +33,8 @@ export const messages: Record<Locales, any> = {
|
||||||
[Locales.ES]: es,
|
[Locales.ES]: es,
|
||||||
[Locales.FR]: fr,
|
[Locales.FR]: fr,
|
||||||
[Locales.ZH_HANS]: zh_hans,
|
[Locales.ZH_HANS]: zh_hans,
|
||||||
[Locales.ZH_HANT]: zh_hant
|
[Locales.ZH_HANT]: zh_hant,
|
||||||
|
[Locales.RU]: ru
|
||||||
}
|
}
|
||||||
|
|
||||||
export const defaultLocale = Locales.EN
|
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…
Add table
Reference in a new issue