select language is not working when switch to traditional chinese

This commit is contained in:
Indigo Tang 2025-06-09 03:28:32 +00:00
parent 4698d67c38
commit 5bcc1bb2e8
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
// This layout wraps specific locale pages and sets up providers.
import type { Metadata } from 'next'; // Keep for potential locale-specific metadata
import '../globals.css'; // Ensure global styles are still imported
@ -26,7 +27,7 @@ export default async function LocaleLayout({
params: { locale: string };
}>) {
return (
<I18nProviderClient locale={locale}>
<I18nProviderClient locale={locale} key={locale}>
<ThemeProvider
attribute="class"
defaultTheme="system"