From 92fae96d41647d7b51b49b2bd39f6fba89558df6 Mon Sep 17 00:00:00 2001 From: hailin Date: Thu, 17 Apr 2025 11:13:32 +0800 Subject: [PATCH] . --- components/ui/language-switcher.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ui/language-switcher.tsx b/components/ui/language-switcher.tsx index 088b03c..be7d5e4 100644 --- a/components/ui/language-switcher.tsx +++ b/components/ui/language-switcher.tsx @@ -33,7 +33,7 @@ export function LanguageSwitcher() { const segments = pathname.split('/') // 如果路径前缀是语言码,则替换 - const isLocaleInPath = (i18nConfig.locales as string[]).includes(segments[1]) + onst isLocaleInPath = (i18nConfig.locales as unknown as string[]).includes(segments[1]) if (isLocaleInPath) { segments[1] = newLocale } else {