feat(i18n): add Vietnamese language to i18n locales
This commit is contained in:
parent
8f5632c5ad
commit
4390bccfb9
|
@ -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!
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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!
|
||||
|
||||
|
|
Loading…
Reference in New Issue