mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
enable Hindi translation
This commit is contained in:
@@ -21,6 +21,8 @@ const localeText = (locale: string): string => {
|
||||
return '🇬🇧 English'
|
||||
case 'zh-CN':
|
||||
return '🇨🇳 简体中文'
|
||||
case 'hi':
|
||||
return '🇮🇳 हिन्दी'
|
||||
default:
|
||||
return '🇬🇧 English'
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user