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 Vietnamese language to i18n locales

Amruth Pillai4390bccfb976
diff --git a/README.md b/README.md
index a48072d3b..d7aa80592 100644
--- a/README.md
+++ b/README.md
@@ -51,6 +51,7 @@ You have complete control over what goes into your resume, how it looks, what co
- Spanish (Español)
- Tamil (தமிழ்)
- Turkish (Türkçe)
+- Vietnamese (Tiếng Việt)
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 6508cd3a2..d36fa88e0 100644
--- a/client/config/languages.ts
+++ b/client/config/languages.ts
@@ -19,6 +19,7 @@ export const languages: Language[] = [
{ code: 'pl', name: 'Polish', localName: 'Polski' },
{ code: 'ta', name: 'Tamil', localName: 'தமிழ்' },
{ code: 'tr', name: 'Turkish', localName: 'Türkçe' },
+ { code: 'vi', name: 'Vietnamese', localName: 'Tiếng Việt' },
{ code: 'zh', name: 'Chinese', localName: '中文' },
].sort((a, b) => a.name.localeCompare(b.name));
diff --git a/client/next-i18next.config.js b/client/next-i18next.config.js
index 797784024..4067f1e16 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: ['ar', 'bn', 'da', 'de', 'en', 'es', 'fr', 'hi', 'it', 'kn', 'ml', 'pl', 'ta', 'tr', 'zh'],
+ locales: ['ar', 'bn', 'da', 'de', 'en', 'es', 'fr', 'hi', 'it', 'kn', 'ml', 'pl', 'ta', 'tr', 'vi', 'zh'],
},
nsSeparator: '.',
localePath: path.resolve('./public/locales'),
diff --git a/client/wrappers/DateWrapper.tsx b/client/wrappers/DateWrapper.tsx
index 6cef9d374..d99abebea 100644
--- a/client/wrappers/DateWrapper.tsx
+++ b/client/wrappers/DateWrapper.tsx
@@ -24,6 +24,7 @@ const DateWrapper: React.FC = ({ children }) => {
require('dayjs/locale/pl');
require('dayjs/locale/ta');
require('dayjs/locale/tr');
+ require('dayjs/locale/vi');
require('dayjs/locale/zh');
locale && dayjs.locale(locale);
diff --git a/docs/docs/index.mdx b/docs/docs/index.mdx
index 37ee202cc..3c640ba71 100644
--- a/docs/docs/index.mdx
+++ b/docs/docs/index.mdx
@@ -59,6 +59,7 @@ You have complete control over what goes into your resume, how it looks, what co
- Spanish (Español)
- Tamil (தமிழ்)
- Turkish (Türkçe)
+- Vietnamese (Tiếng Việt)
Help by [translating Reactive Resume](https://translate.rxresu.me) to your language!