diff --git a/src/context/LanguageContext.tsx b/src/context/LanguageContext.tsx index 9b344fbaf..28e30007e 100644 --- a/src/context/LanguageContext.tsx +++ b/src/context/LanguageContext.tsx @@ -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 { diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 21929ad61..4de73712b 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -53,6 +53,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise => { 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: