Skip to content

Commit 549363b

Browse files
committed
feat(i18n): add Chinese (Simplified) language to locales
1 parent e6bda68 commit 549363b

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ You have complete control over what goes into your resume, how it looks, what co
3737
## Languages
3838

3939
- Bengali (বাংলা)
40+
- Chinese (中文)
4041
- English
4142
- French (Français)
4243
- German (Deutsch)

client/config/languages.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ export const languages: Language[] = [
1010
name: 'Bengali',
1111
localName: 'বাংলা',
1212
},
13+
{
14+
code: 'zh',
15+
name: 'Chinese',
16+
localName: '中文',
17+
},
1318
{
1419
code: 'en',
1520
name: 'English',

client/next-i18next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require('path');
33
const i18nConfig = {
44
i18n: {
55
defaultLocale: 'en',
6-
locales: ['bn', 'de', 'en', 'es', 'fr', 'hi', 'it', 'kn', 'ta'],
6+
locales: ['bn', 'de', 'en', 'es', 'fr', 'hi', 'it', 'kn', 'ta', 'zh'],
77
},
88
nsSeparator: '.',
99
localePath: path.resolve('./public/locales'),

client/wrappers/DateWrapper.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const DateWrapper: React.FC = ({ children }) => {
1919
require('dayjs/locale/it');
2020
require('dayjs/locale/kn');
2121
require('dayjs/locale/ta');
22+
require('dayjs/locale/zh');
2223

2324
locale && dayjs.locale(locale);
2425
}, [locale]);

docs/docs/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ You have complete control over what goes into your resume, how it looks, what co
4545
## Languages
4646

4747
- Bengali (বাংলা)
48+
- Chinese (中文)
4849
- English
4950
- French (Français)
5051
- German (Deutsch)

0 commit comments

Comments
 (0)