mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-24 18:36:14 +03:00
perf: add Chinese translations (#1185)
This commit is contained in:
parent
b8a5f634dd
commit
c50f1df4d6
3 changed files with 1077 additions and 7 deletions
|
@ -11,13 +11,13 @@ import fr from './fr.json'
|
|||
// import ru from './ru.json'
|
||||
// import uk from './uk.json'
|
||||
// import vi from './vi.json'
|
||||
// import zh_hans from './zh-hans.json'
|
||||
import zh_hans from './zh-hans.json'
|
||||
// import zh_hant from './zh-hant.json'
|
||||
|
||||
export const messages: Record<Locales, any> = {
|
||||
[Locales.EN]: en,
|
||||
[Locales.ES]: es,
|
||||
[Locales.FR]: fr
|
||||
[Locales.FR]: fr,
|
||||
// [Locales.ID]: id,
|
||||
// [Locales.IT]: it,
|
||||
// [Locales.JA]: ja,
|
||||
|
@ -26,7 +26,7 @@ export const messages: Record<Locales, any> = {
|
|||
// [Locales.RU]: ru,
|
||||
// [Locales.UK]: uk,
|
||||
// [Locales.VI]: vi,
|
||||
// [Locales.ZH_HANS]: zh_hans,
|
||||
[Locales.ZH_HANS]: zh_hans
|
||||
// [Locales.ZH_HANT]: zh_hant
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
export enum Locales {
|
||||
EN = 'en',
|
||||
ES = 'es',
|
||||
FR = 'fr'
|
||||
FR = 'fr',
|
||||
// ID = 'id',
|
||||
// IT = 'it',
|
||||
// JA = 'ja',
|
||||
|
@ -10,7 +10,7 @@ export enum Locales {
|
|||
// RU = 'ru',
|
||||
// UK = 'ua',
|
||||
// VI = 'vi',
|
||||
// ZH_HANS = 'zh-hans',
|
||||
ZH_HANS = 'zh-hans'
|
||||
// ZH_HANT = 'zh-hant'
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ type LocaleDef = {
|
|||
export const LOCALES: LocaleDef[] = [
|
||||
{ title: 'English', value: Locales.EN },
|
||||
{ title: 'Español', value: Locales.ES },
|
||||
{ title: 'Français', value: Locales.FR }
|
||||
{ title: 'Français', value: Locales.FR },
|
||||
// { title: 'Bahasa Indonesia', value: Locales.ID },
|
||||
// { title: 'Italiano', value: Locales.IT },
|
||||
// { title: '日本語', value: Locales.JA },
|
||||
|
@ -31,6 +31,6 @@ export const LOCALES: LocaleDef[] = [
|
|||
// { title: 'Русский язык', value: Locales.RU },
|
||||
// { title: 'Українська', value: Locales.UK },
|
||||
// { title: 'Tiếng Việt', value: Locales.VI },
|
||||
// { title: '简体中文', value: Locales.ZH_HANS },
|
||||
{ title: '简体中文', value: Locales.ZH_HANS }
|
||||
// { title: '繁體中文', value: Locales.ZH_HANT }
|
||||
]
|
||||
|
|
1070
src/locales/zh-hans.json
Normal file
1070
src/locales/zh-hans.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue