Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

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

Amruth Pillai21931bc324b5
diff --git a/README.md b/README.md
index ca189a552..a1c50a8af 100644
--- a/README.md
+++ b/README.md
@@ -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!
diff --git a/client/config/languages.ts b/client/config/languages.ts
index 5cd344063..5756080dd 100644
--- a/client/config/languages.ts
+++ b/client/config/languages.ts
@@ -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',
diff --git a/client/next-i18next.config.js b/client/next-i18next.config.js
index 12a32b21d..41f24be41 100644
--- a/client/next-i18next.config.js
+++ b/client/next-i18next.config.js
@@ -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'),
diff --git a/client/wrappers/DateWrapper.tsx b/client/wrappers/DateWrapper.tsx
index 5e1137f58..ff38ede5b 100644
--- a/client/wrappers/DateWrapper.tsx
+++ b/client/wrappers/DateWrapper.tsx
@@ -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');
diff --git a/docs/docs/index.mdx b/docs/docs/index.mdx
index 0ad1d551b..1b8e7b4c0 100644
--- a/docs/docs/index.mdx
+++ b/docs/docs/index.mdx
@@ -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!