feat(i18n): add Bengali, Italian and other languages

This commit is contained in:
Amruth Pillai 2022-03-14 06:40:16 +01:00
parent ed75a85827
commit 21931bc324
No known key found for this signature in database
GPG Key ID: E3C57DF9B80855AD
5 changed files with 31 additions and 6 deletions

View File

@ -36,11 +36,14 @@ You have complete control over what goes into your resume, how it looks, what co
## Languages
- Bengali (বাংলা)
- English
- French (Français)
- German (Deutsch)
- Hindi (हिन्दी)
- Kannada (ಕನ್ನಡ) (@aksh1251)
- Spanish (Español) (@seba11998)
- Italian (Italiano)
- Kannada (ಕನ್ನಡ)
- Spanish (Español)
- Tamil (தமிழ்)
Help by [translating Reactive Resume](https://translate.rxresu.me) to your language!

View File

@ -5,10 +5,20 @@ export type Language = {
};
export const languages: Language[] = [
{
code: 'bn',
name: 'Bengali',
localName: 'বাংলা',
},
{
code: 'en',
name: 'English',
},
{
code: 'fr',
name: 'French',
localName: 'Français',
},
{
code: 'de',
name: 'German',
@ -19,6 +29,11 @@ export const languages: Language[] = [
name: 'Hindi',
localName: 'हिन्दी',
},
{
code: 'it',
name: 'Italian',
localName: 'Italiano',
},
{
code: 'kn',
name: 'Kannada',

View File

@ -3,7 +3,7 @@ const path = require('path');
const i18nConfig = {
i18n: {
defaultLocale: 'en',
locales: ['de', 'en', 'es', 'kn', 'ta', 'hi'],
locales: ['bn', 'de', 'en', 'es', 'fr', 'hi', 'it', 'kn', 'ta'],
},
nsSeparator: '.',
localePath: path.resolve('./public/locales'),

View File

@ -10,9 +10,13 @@ const DateWrapper: React.FC = ({ children }) => {
dayjs.extend(relativeTime);
// Locales
require('dayjs/locale/es');
require('dayjs/locale/bn');
require('dayjs/locale/de');
require('dayjs/locale/en');
require('dayjs/locale/es');
require('dayjs/locale/fr');
require('dayjs/locale/hi');
require('dayjs/locale/it');
require('dayjs/locale/kn');
require('dayjs/locale/ta');

View File

@ -43,11 +43,14 @@ You have complete control over what goes into your resume, how it looks, what co
## Languages
- Bengali (বাংলা)
- English
- French (Français)
- German (Deutsch)
- Hindi (हिन्दी)
- Kannada (ಕನ್ನಡ) (@aksh1251)
- Spanish (Español) (@seba11998)
- Italian (Italiano)
- Kannada (ಕನ್ನಡ)
- Spanish (Español)
- Tamil (தமிழ்)
Help by [translating Reactive Resume](https://translate.rxresu.me) to your language!