Skip to content

Commit

Permalink
feat(i18n): add Chinese (Simplified) language to locales
Browse files Browse the repository at this point in the history
  • Loading branch information
AmruthPillai committed Mar 14, 2022
1 parent e6bda68 commit 549363b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions client/config/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ export const languages: Language[] = [
name: 'Bengali',
localName: 'বাংলা',
},
{
code: 'zh',
name: 'Chinese',
localName: '中文',
},
{
code: 'en',
name: 'English',
Expand Down
2 changes: 1 addition & 1 deletion client/next-i18next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
1 change: 1 addition & 0 deletions client/wrappers/DateWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
1 change: 1 addition & 0 deletions docs/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

1 comment on commit 549363b

@vercel
Copy link

@vercel vercel bot commented on 549363b Mar 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.