mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-12 15:52:56 +10:00
fix(lang): add hi, de to next-i18next
This commit is contained in:
@ -37,6 +37,7 @@ You have complete control over what goes into your resume, how it looks, what co
|
|||||||
|
|
||||||
- English
|
- English
|
||||||
- German (Deutsch)
|
- German (Deutsch)
|
||||||
|
- Hindi (हिन्दी)
|
||||||
- Kannada (ಕನ್ನಡ) (@aksh1251)
|
- Kannada (ಕನ್ನಡ) (@aksh1251)
|
||||||
- Tamil (தமிழ்)
|
- Tamil (தமிழ்)
|
||||||
|
|
||||||
|
|||||||
@ -9,6 +9,16 @@ export const languages: Language[] = [
|
|||||||
code: 'en',
|
code: 'en',
|
||||||
name: 'English',
|
name: 'English',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
code: 'de',
|
||||||
|
name: 'German',
|
||||||
|
localName: 'Deutsch',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
code: 'hi',
|
||||||
|
name: 'Hindi',
|
||||||
|
localName: 'हिन्दी',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
code: 'kn',
|
code: 'kn',
|
||||||
name: 'Kannada',
|
name: 'Kannada',
|
||||||
@ -19,12 +29,7 @@ export const languages: Language[] = [
|
|||||||
name: 'Tamil',
|
name: 'Tamil',
|
||||||
localName: 'தமிழ்',
|
localName: 'தமிழ்',
|
||||||
},
|
},
|
||||||
{
|
].sort((a, b) => a.name.localeCompare(b.name));
|
||||||
code: 'de',
|
|
||||||
name: 'German',
|
|
||||||
localName: 'Deutsch',
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
export const languageMap: Record<string, Language> = languages.reduce(
|
export const languageMap: Record<string, Language> = languages.reduce(
|
||||||
(acc, lang) => ({
|
(acc, lang) => ({
|
||||||
|
|||||||
@ -3,7 +3,7 @@ const path = require('path');
|
|||||||
const i18nConfig = {
|
const i18nConfig = {
|
||||||
i18n: {
|
i18n: {
|
||||||
defaultLocale: 'en',
|
defaultLocale: 'en',
|
||||||
locales: ['en', 'kn'],
|
locales: ['de', 'en', 'kn', 'ta', 'hi'],
|
||||||
},
|
},
|
||||||
nsSeparator: '.',
|
nsSeparator: '.',
|
||||||
localePath: path.resolve('./public/locales'),
|
localePath: path.resolve('./public/locales'),
|
||||||
|
|||||||
@ -11,6 +11,7 @@ const DateWrapper: React.FC = ({ children }) => {
|
|||||||
|
|
||||||
// Locales
|
// Locales
|
||||||
require('dayjs/locale/de');
|
require('dayjs/locale/de');
|
||||||
|
require('dayjs/locale/hi');
|
||||||
require('dayjs/locale/kn');
|
require('dayjs/locale/kn');
|
||||||
require('dayjs/locale/ta');
|
require('dayjs/locale/ta');
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "@reactive-resume/docs",
|
"name": "@reactive-resume/docs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"docusaurus": "docusaurus",
|
"docusaurus": "docusaurus",
|
||||||
"start": "docusaurus start --port 3200",
|
"start": "docusaurus start --port 3200 --no-open",
|
||||||
"build": "docusaurus build",
|
"build": "docusaurus build",
|
||||||
"swizzle": "docusaurus swizzle",
|
"swizzle": "docusaurus swizzle",
|
||||||
"deploy": "docusaurus deploy",
|
"deploy": "docusaurus deploy",
|
||||||
|
|||||||
Reference in New Issue
Block a user