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

This commit is contained in:
Amruth Pillai 2022-03-11 20:21:35 +01:00
parent 63f900870b
commit 3a524f9c9c
No known key found for this signature in database
GPG Key ID: E3C57DF9B80855AD
5 changed files with 15 additions and 8 deletions

View File

@ -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 (தமிழ்)

View File

@ -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) => ({

View File

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

View File

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

View File

@ -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",