select language is not working when switch to traditional chinese
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user