Skip to content

Commit

Permalink
feat(client): add "spanish (es)" language to i18n locales
Browse files Browse the repository at this point in the history
  • Loading branch information
AmruthPillai committed Mar 12, 2022
1 parent 9e2f22d commit bf167f8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ You have complete control over what goes into your resume, how it looks, what co
- German (Deutsch)
- Hindi (हिन्दी)
- Kannada (ಕನ್ನಡ) (@aksh1251)
- Spanish (Español) (@seba11998)
- Tamil (தமிழ்)

Help by [translating Reactive Resume](https://translate.rxresu.me) to your language!
Expand Down
5 changes: 5 additions & 0 deletions client/config/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ export const languages: Language[] = [
name: 'Kannada',
localName: 'ಕನ್ನಡ',
},
{
code: 'es',
name: 'Spanish',
localName: 'Español',
},
{
code: 'ta',
name: 'Tamil',
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: ['de', 'en', 'kn', 'ta', 'hi'],
locales: ['de', 'en', 'es', 'kn', 'ta', 'hi'],
},
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 @@ -10,6 +10,7 @@ const DateWrapper: React.FC = ({ children }) => {
dayjs.extend(relativeTime);

// Locales
require('dayjs/locale/es');
require('dayjs/locale/de');
require('dayjs/locale/hi');
require('dayjs/locale/kn');
Expand Down
2 changes: 2 additions & 0 deletions docs/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ You have complete control over what goes into your resume, how it looks, what co

- English
- German (Deutsch)
- Hindi (हिन्दी)
- Kannada (ಕನ್ನಡ) (@aksh1251)
- Spanish (Español) (@seba11998)
- Tamil (தமிழ்)

Help by [translating Reactive Resume](https://translate.rxresu.me) to your language!
Expand Down

1 comment on commit bf167f8

@vercel
Copy link

@vercel vercel bot commented on bf167f8 Mar 12, 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.