i18n: add support for chinese
This commit is contained in:
1 parent
4b730ab415
commit
e1158bf8e0
2 files changed
+13
No files matched your search
@@ -581,6 +581,9 @@
|
|||||||
"de": "German",
|
"de": "German",
|
||||||
"fi": "Finnish",
|
"fi": "Finnish",
|
||||||
"pt": "Portuguese",
|
"pt": "Portuguese",
|
||||||
|
"zh": "Chinese",
|
||||||
|
"zh-Hans": "Chinese (Simplified)",
|
||||||
|
"zh-Hant": "Chinese (Traditional)",
|
||||||
"auto": "Auto",
|
"auto": "Auto",
|
||||||
"credits": "Credits",
|
"credits": "Credits",
|
||||||
"useRtl": {
|
"useRtl": {
|
||||||
|
|||||||
@@ -37,6 +37,16 @@ const config: Config = {
|
|||||||
key: '',
|
key: '',
|
||||||
loader: async () => (await import('./i18n/pt.json')).default,
|
loader: async () => (await import('./i18n/pt.json')).default,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
locale: 'zh-Hans',
|
||||||
|
key: '',
|
||||||
|
loader: async () => (await import('./i18n/zh-Hans.json')).default,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
locale: 'zh-Hant',
|
||||||
|
key: '',
|
||||||
|
loader: async () => (await import('./i18n/zh-Hant.json')).default,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
fallbackLocale: 'en',
|
fallbackLocale: 'en',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user