From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
i18n/language.ts | 20 +-------------------
1 files changed, 1 insertions(+), 19 deletions(-)
diff --git a/i18n/language.ts b/i18n/language.ts
index 87027a7..cd77097 100644
--- a/i18n/language.ts
+++ b/i18n/language.ts
@@ -33,28 +33,10 @@
export const LanguagesSupported = languages.filter(item => item.supported).map(item => item.value)
export const getLanguage = (locale: string) => {
- if (['zh-Hans', 'ja-JP'].includes(locale))
+ if (locale === 'zh-Hans')
return locale.replace('-', '_')
return LanguagesSupported[0].replace('-', '_')
-}
-
-const DOC_LANGUAGE: Record<string, string> = {
- 'zh-Hans': 'zh-hans',
- 'ja-JP': 'ja-jp',
- 'en-US': 'en',
-}
-
-export const getDocLanguage = (locale: string) => {
- return DOC_LANGUAGE[locale] || 'en'
-}
-
-const PRICING_PAGE_LANGUAGE: Record<string, string> = {
- 'ja-JP': 'jp',
-}
-
-export const getPricingPageLanguage = (locale: string) => {
- return PRICING_PAGE_LANGUAGE[locale] || ''
}
export const NOTICE_I18N = {
--
Gitblit v1.8.0