feat(i18n): add Vietnamese language to i18n locales

This commit is contained in:
Amruth Pillai 2022-03-18 10:52:06 +01:00
parent 8f5632c5ad
commit 4390bccfb9
No known key found for this signature in database
GPG Key ID: E3C57DF9B80855AD
5 changed files with 5 additions and 1 deletions

View File

@ -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!

View File

@ -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));

View File

@ -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'),

View File

@ -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);

View File

@ -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!