feat(i18n): add Chinese (Simplified) language to locales
This commit is contained in:
parent
e6bda688ac
commit
549363bbe5
|
@ -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)
|
||||
|
|
|
@ -10,6 +10,11 @@ export const languages: Language[] = [
|
|||
name: 'Bengali',
|
||||
localName: 'বাংলা',
|
||||
},
|
||||
{
|
||||
code: 'zh',
|
||||
name: 'Chinese',
|
||||
localName: '中文',
|
||||
},
|
||||
{
|
||||
code: 'en',
|
||||
name: 'English',
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -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]);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue