feat(lang): add Simplified Chinese display language (#2032)

pull/2056/head^2
TheCatLady 3 years ago committed by GitHub
parent fe89fd5f12
commit 590ea7e404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,6 +17,7 @@ export type AvailableLocale =
| 'ru'
| 'sr'
| 'sv'
| 'zh-CN'
| 'zh-TW';
type AvailableLanguageObject = Record<
@ -93,6 +94,10 @@ export const availableLanguages: AvailableLanguageObject = {
code: 'zh-TW',
display: '‪繁體中文‬',
},
'zh-CN': {
code: 'zh-CN',
display: '‪简体中文‬',
},
};
export interface LanguageContextProps {

@ -53,6 +53,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise<any> => {
return import('../i18n/locale/sr.json');
case 'sv':
return import('../i18n/locale/sv.json');
case 'zh-CN':
return import('../i18n/locale/zh_Hans.json');
case 'zh-TW':
return import('../i18n/locale/zh_Hant.json');
default:

Loading…
Cancel
Save