mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 03:59:53 +03:00
chore: Add Traditional Chinese translation (#1201)
This commit is contained in:
parent
39c9830be7
commit
6a24e15b07
3 changed files with 1077 additions and 7 deletions
|
@ -12,7 +12,7 @@ import fr from './fr.json'
|
|||
// import uk from './uk.json'
|
||||
// import vi from './vi.json'
|
||||
import zh_hans from './zh-hans.json'
|
||||
// import zh_hant from './zh-hant.json'
|
||||
import zh_hant from './zh-hant.json'
|
||||
|
||||
export const messages: Record<Locales, any> = {
|
||||
[Locales.EN]: en,
|
||||
|
@ -26,8 +26,8 @@ export const messages: Record<Locales, any> = {
|
|||
// [Locales.RU]: ru,
|
||||
// [Locales.UK]: uk,
|
||||
// [Locales.VI]: vi,
|
||||
[Locales.ZH_HANS]: zh_hans
|
||||
// [Locales.ZH_HANT]: zh_hant
|
||||
[Locales.ZH_HANS]: zh_hans,
|
||||
[Locales.ZH_HANT]: zh_hant
|
||||
}
|
||||
|
||||
export const defaultLocale = Locales.EN
|
||||
|
|
|
@ -10,8 +10,8 @@ export enum Locales {
|
|||
// RU = 'ru',
|
||||
// UK = 'ua',
|
||||
// VI = 'vi',
|
||||
ZH_HANS = 'zh-hans'
|
||||
// ZH_HANT = 'zh-hant'
|
||||
ZH_HANS = 'zh-hans',
|
||||
ZH_HANT = 'zh-hant'
|
||||
}
|
||||
|
||||
type LocaleDef = {
|
||||
|
@ -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_HANT }
|
||||
{ title: '简体中文', value: Locales.ZH_HANS },
|
||||
{ title: '繁體中文', value: Locales.ZH_HANT }
|
||||
]
|
||||
|
|
1070
src/locales/zh-hant.json
Normal file
1070
src/locales/zh-hant.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue