mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 08:13:49 +10:00
feat(i18n): add Chinese (Simplified) language to locales
This commit is contained in:
@ -37,6 +37,7 @@ You have complete control over what goes into your resume, how it looks, what co
|
|||||||
## Languages
|
## Languages
|
||||||
|
|
||||||
- Bengali (বাংলা)
|
- Bengali (বাংলা)
|
||||||
|
- Chinese (中文)
|
||||||
- English
|
- English
|
||||||
- French (Français)
|
- French (Français)
|
||||||
- German (Deutsch)
|
- German (Deutsch)
|
||||||
|
|||||||
@ -10,6 +10,11 @@ export const languages: Language[] = [
|
|||||||
name: 'Bengali',
|
name: 'Bengali',
|
||||||
localName: 'বাংলা',
|
localName: 'বাংলা',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
code: 'zh',
|
||||||
|
name: 'Chinese',
|
||||||
|
localName: '中文',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
code: 'en',
|
code: 'en',
|
||||||
name: 'English',
|
name: 'English',
|
||||||
|
|||||||
@ -3,7 +3,7 @@ const path = require('path');
|
|||||||
const i18nConfig = {
|
const i18nConfig = {
|
||||||
i18n: {
|
i18n: {
|
||||||
defaultLocale: 'en',
|
defaultLocale: 'en',
|
||||||
locales: ['bn', 'de', 'en', 'es', 'fr', 'hi', 'it', 'kn', 'ta'],
|
locales: ['bn', 'de', 'en', 'es', 'fr', 'hi', 'it', 'kn', 'ta', 'zh'],
|
||||||
},
|
},
|
||||||
nsSeparator: '.',
|
nsSeparator: '.',
|
||||||
localePath: path.resolve('./public/locales'),
|
localePath: path.resolve('./public/locales'),
|
||||||
|
|||||||
@ -19,6 +19,7 @@ const DateWrapper: React.FC = ({ children }) => {
|
|||||||
require('dayjs/locale/it');
|
require('dayjs/locale/it');
|
||||||
require('dayjs/locale/kn');
|
require('dayjs/locale/kn');
|
||||||
require('dayjs/locale/ta');
|
require('dayjs/locale/ta');
|
||||||
|
require('dayjs/locale/zh');
|
||||||
|
|
||||||
locale && dayjs.locale(locale);
|
locale && dayjs.locale(locale);
|
||||||
}, [locale]);
|
}, [locale]);
|
||||||
|
|||||||
@ -45,6 +45,7 @@ You have complete control over what goes into your resume, how it looks, what co
|
|||||||
## Languages
|
## Languages
|
||||||
|
|
||||||
- Bengali (বাংলা)
|
- Bengali (বাংলা)
|
||||||
|
- Chinese (中文)
|
||||||
- English
|
- English
|
||||||
- French (Français)
|
- French (Français)
|
||||||
- German (Deutsch)
|
- German (Deutsch)
|
||||||
|
|||||||
Reference in New Issue
Block a user