fix(lang): add hi, de to next-i18next
This commit is contained in:
parent
63f900870b
commit
3a524f9c9c
|
@ -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 (தமிழ்)
|
||||
|
||||
|
|
|
@ -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) => ({
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue