select language is not working when switch to traditional chinese
This commit is contained in:
parent
4698d67c38
commit
5bcc1bb2e8
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue