refactor(dashboard): apply new i18n resolver to dashboard shell and localized fields

This commit is contained in:
poyrazavsever
2026-07-20 10:25:40 +03:00
parent 7a4f2bf2ea
commit 763c243962
5 changed files with 24 additions and 9 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import {
} from "@/lib/color-mode";
import { Toaster } from "poyraz-ui/molecules";
import { getPublicBranding } from "@/server/branding/runtime";
import { resolveRequestLocale } from "@/server/i18n/resolver";
import { resolveRootLocale } from "@/server/i18n/resolver";
const colorModeScript = `(() => {
const root = document.documentElement;
@@ -53,7 +53,7 @@ export default async function RootLayout({
const colorMode = isColorMode(cookieColorMode)
? cookieColorMode
: branding.defaultColorMode;
const locale = await resolveRequestLocale();
const locale = await resolveRootLocale();
return (
<html