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!

fix(lang): add hi, de to next-i18next

Amruth Pillai3a524f9c9c7a
diff --git a/README.md b/README.md
index 95f957c55..b562cb2b7 100644
--- a/README.md
+++ b/README.md
@@ -37,6 +37,7 @@ You have complete control over what goes into your resume, how it looks, what co
- English
- German (Deutsch)
+- Hindi (हिन्दी)
- Kannada (ಕನ್ನಡ) (@aksh1251)
- Tamil (தமிழ்)
diff --git a/client/config/languages.ts b/client/config/languages.ts
index 07c1d18b2..7ec671572 100644
--- a/client/config/languages.ts
+++ b/client/config/languages.ts
@@ -9,6 +9,16 @@ export const languages: Language[] = [
code: 'en',
name: 'English',
},
+ {
+ code: 'de',
+ name: 'German',
+ localName: 'Deutsch',
+ },
+ {
+ code: 'hi',
+ name: 'Hindi',
+ localName: 'हिन्दी',
+ },
{
code: 'kn',
name: 'Kannada',
@@ -19,12 +29,7 @@ export const languages: Language[] = [
name: 'Tamil',
localName: 'தமிழ்',
},
- {
- code: 'de',
- name: 'German',
- localName: 'Deutsch',
- },
-];
+].sort((a, b) => a.name.localeCompare(b.name));
export const languageMap: Record<string, Language> = languages.reduce(
(acc, lang) => ({
diff --git a/client/next-i18next.config.js b/client/next-i18next.config.js
index 277ad723a..47330cbd7 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: ['en', 'kn'],
+ locales: ['de', 'en', 'kn', 'ta', 'hi'],
},
nsSeparator: '.',
localePath: path.resolve('./public/locales'),
diff --git a/client/wrappers/DateWrapper.tsx b/client/wrappers/DateWrapper.tsx
index 234e92808..238069124 100644
--- a/client/wrappers/DateWrapper.tsx
+++ b/client/wrappers/DateWrapper.tsx
@@ -11,6 +11,7 @@ const DateWrapper: React.FC = ({ children }) => {
// Locales
require('dayjs/locale/de');
+ require('dayjs/locale/hi');
require('dayjs/locale/kn');
require('dayjs/locale/ta');
diff --git a/docs/package.json b/docs/package.json
index bc0300d59..eab8904a8 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -2,7 +2,7 @@
"name": "@reactive-resume/docs",
"scripts": {
"docusaurus": "docusaurus",
- "start": "docusaurus start --port 3200",
+ "start": "docusaurus start --port 3200 --no-open",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",