perf: add Chinese translations (#1185)

This commit is contained in:
PKC278 2023-10-21 15:40:43 +08:00 committed by GitHub
parent b8a5f634dd
commit c50f1df4d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1077 additions and 7 deletions

View file

@ -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
}

View file

@ -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

File diff suppressed because it is too large Load diff