feat: implement initial language resolution for SSR and local storage support
- Added a function to determine the initial language based on server-side rendering and local storage. - Updated i18n initialization to use the resolved initial language instead of the default.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { PlayerMobileViewport } from "@/components/layout/player-mobile-viewport";
|
||||
|
||||
export default function PlayerRootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return children;
|
||||
return <PlayerMobileViewport>{children}</PlayerMobileViewport>;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,11 @@ export const metadata: Metadata = {
|
||||
description: "Lottery player",
|
||||
};
|
||||
|
||||
export const viewport = {
|
||||
width: "device-width",
|
||||
initialScale: 1,
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
|
||||
Reference in New Issue
Block a user