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