Fix dynamic locale fallback resolution
CI / quality (push) Waiting to run

This commit is contained in:
MOH
2026-03-15 05:27:19 +01:00
parent 27df4ad2fe
commit 060d48f9c4
3 changed files with 8 additions and 10 deletions
+2 -4
View File
@@ -84,10 +84,8 @@ export default async function RootLayout({
}>) {
noStore();
const [locale, siteSettings] = await Promise.all([
getLocale().catch(() => "de"),
getSiteSettings(),
]);
const siteSettings = await getSiteSettings();
const locale = await getLocale().catch(() => siteSettings.defaultLocale);
return (
<html lang={locale} dir={getDirection(locale)} suppressHydrationWarning>