Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lujjjh committed Oct 27, 2024
1 parent e23f600 commit 47e52ef
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions i18n.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
const { isMainlandChinaCluster } = require('./utils/config')

let locales = [
'af-ZA',
'ar-SA',
'ca-ES',
'cs-CZ',
'da-DK',
'de-DE',
'el-GR',
'en',
'es-ES',
'fi-FI',
'fr-FR',
'he-IL',
'hu-HU',
'it-IT',
'ja-JP',
'ko-KR',
'my-MM',
'nb-NO',
'nl-NL',
'no-NO',
'pl-PL',
'pt-BR',
'pt-PT',
'ro-RO',
'ru-RU',
'sk-SK',
'sr-SP',
'sv-SE',
'tr-TR',
'uk-UA',
'vi-VN',
'zh-CN',
'zh-HK',
'zh-TW'
]

let defaultLocale = 'en'

if (isMainlandChinaCluster) {
Expand All @@ -9,6 +46,7 @@ if (isMainlandChinaCluster) {

module.exports = {
defaultLocale,
locales,
pages: {
'*': ['common'],
'/': ['index']
Expand Down

0 comments on commit 47e52ef

Please sign in to comment.