refactor(portal): update portal layouts and pages for i18n v2

This commit is contained in:
poyrazavsever
2026-07-20 10:25:40 +03:00
parent 27c41a497d
commit 21338ff1b1
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { PortalShell } from "@/components/layout/portal-shell";
import { getPublicBranding } from "@/server/branding/runtime";
import { resolveRequestLocale } from "@/server/i18n/resolver";
import { resolvePortalLocale } from "@/server/i18n/resolver";
import { createTranslator, getClientI18nPayload } from "@/server/i18n/translator";
import { getUserPreferences } from "@/server/settings/preferences";
import { requirePortalBackend } from "@/server/web/portal";
@@ -11,7 +11,7 @@ export default async function PortalLayout({
children: React.ReactNode;
}>) {
const { context, actor, service } = await requirePortalBackend();
const resolvedLocale = await resolveRequestLocale();
const resolvedLocale = await resolvePortalLocale(context);
const t = createTranslator(resolvedLocale.locale, ["navigation", "portal", "common"]).t;
const { user, profile } = context;
const branding = getPublicBranding();