feat(i18n): add Chinese (Simplified) language to locales

This commit is contained in:
Amruth Pillai 2022-03-14 09:23:01 +01:00
parent e6bda688ac
commit 549363bbe5
No known key found for this signature in database
GPG Key ID: E3C57DF9B80855AD
5 changed files with 9 additions and 1 deletions

View File

@ -37,6 +37,7 @@ You have complete control over what goes into your resume, how it looks, what co
## Languages
- Bengali (বাংলা)
- Chinese (中文)
- English
- French (Français)
- German (Deutsch)

View File

@ -10,6 +10,11 @@ export const languages: Language[] = [
name: 'Bengali',
localName: 'বাংলা',
},
{
code: 'zh',
name: 'Chinese',
localName: '中文',
},
{
code: 'en',
name: 'English',

View File

@ -3,7 +3,7 @@ const path = require('path');
const i18nConfig = {
i18n: {
defaultLocale: 'en',
locales: ['bn', 'de', 'en', 'es', 'fr', 'hi', 'it', 'kn', 'ta'],
locales: ['bn', 'de', 'en', 'es', 'fr', 'hi', 'it', 'kn', 'ta', 'zh'],
},
nsSeparator: '.',
localePath: path.resolve('./public/locales'),

View File

@ -19,6 +19,7 @@ const DateWrapper: React.FC = ({ children }) => {
require('dayjs/locale/it');
require('dayjs/locale/kn');
require('dayjs/locale/ta');
require('dayjs/locale/zh');
locale && dayjs.locale(locale);
}, [locale]);

View File

@ -45,6 +45,7 @@ You have complete control over what goes into your resume, how it looks, what co
## Languages
- Bengali (বাংলা)
- Chinese (中文)
- English
- French (Français)
- German (Deutsch)