enable Hindi translation

This commit is contained in:
myl7
2022-07-15 18:05:23 +08:00
parent d1c0f7bf30
commit afbbcb0142
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -21,6 +21,8 @@ const localeText = (locale: string): string => {
return '🇬🇧 English'
case 'zh-CN':
return '🇨🇳 简体中文'
case 'hi':
return '🇮🇳 हिन्दी'
default:
return '🇬🇧 English'
}
+1 -1
View File
@@ -3,7 +3,7 @@ const path = require('path')
module.exports = {
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh-CN']
locales: ['en', 'zh-CN', 'hi']
},
localePath: path.resolve('public/locales'),
reloadOnPrerender: process.env.NODE_ENV === 'development',