From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +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