diff --git a/package-lock.json b/package-lock.json index a7b9748..81afa2f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11433,11 +11433,8 @@ "@types/react": "^19.2.8", "@types/react-dom": "^19.2.1", "@vitejs/plugin-react-swc": "^4.1.0", - "i18next": "^25.7.4", - "i18next-browser-languagedetector": "^8.2.0", "react": "^19.2.4", "react-dom": "^19.2.4", - "react-i18next": "^16.5.3", "tailwindcss": "^4.1.14", "tw-animate-css": "^1.4.0", "wouter": "^3.9.0" diff --git a/packages/website/package.json b/packages/website/package.json index 944a6f0..1c59a87 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -14,11 +14,8 @@ "@types/react": "^19.2.8", "@types/react-dom": "^19.2.1", "@vitejs/plugin-react-swc": "^4.1.0", - "i18next": "^25.7.4", - "i18next-browser-languagedetector": "^8.2.0", "react": "^19.2.4", "react-dom": "^19.2.4", - "react-i18next": "^16.5.3", "tailwindcss": "^4.1.14", "tw-animate-css": "^1.4.0", "wouter": "^3.9.0" diff --git a/packages/website/src/components/BetaNotice.tsx b/packages/website/src/components/BetaNotice.tsx index c4005a1..53087b5 100644 --- a/packages/website/src/components/BetaNotice.tsx +++ b/packages/website/src/components/BetaNotice.tsx @@ -1,7 +1,7 @@ -import { useTranslation } from 'react-i18next' +import { useLanguage } from '@/i18n/context' export default function BetaNotice() { - const { t } = useTranslation('common') + const { isZh } = useLanguage() return (
@@ -11,9 +11,13 @@ export default function BetaNotice() {

- {t('beta_notice.title')} + {isZh ? 'Beta 阶段' : 'Beta Stage'}

-

{t('beta_notice.content')}

+

+ {isZh + ? '当前功能未完成,接口可能随时变更。正式版本发布前请勿用于生产环境。' + : 'Current features are incomplete and the API may change at any time. Please do not use in production environments before the official release.'} +

diff --git a/packages/website/src/components/Footer.tsx b/packages/website/src/components/Footer.tsx index 1b78952..3f586fa 100644 --- a/packages/website/src/components/Footer.tsx +++ b/packages/website/src/components/Footer.tsx @@ -1,8 +1,9 @@ -import { useTranslation } from 'react-i18next' import { siGithub } from 'simple-icons' +import { useLanguage } from '@/i18n/context' + export default function Footer() { - const { t } = useTranslation('common') + const { isZh } = useLanguage() return (