contents: fix i18n issues

This commit is contained in:
Yangshun 2024-09-24 20:06:08 +08:00
parent 2d89be081b
commit 92a7cb28d2
9 changed files with 17 additions and 4 deletions

View File

@ -241,9 +241,21 @@ module.exports = {
scripts: [],
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh', 'es', 'jp', 'kr', 'pl', 'pr', 'ru', 'tl', 'bn'],
locales: [
'en',
'zh-CN',
'es',
'ja-JP',
'kr',
'pl',
'pt-BR',
'ru',
'tl',
'bn',
],
localeConfigs: {
zh: {
'zh-CN': {
htmlLang: 'zh-CN',
label: '简体中文',
direction: 'ltr',
},
@ -251,7 +263,7 @@ module.exports = {
label: 'Español',
direction: 'ltr',
},
jp: {
'ja-JP': {
label: '日本語',
direction: 'ltr',
},
@ -263,7 +275,8 @@ module.exports = {
label: 'Polski',
direction: 'ltr',
},
pr: {
'pt-BR': {
htmlLang: 'pt-BR',
label: 'Português',
direction: 'ltr',
},