Fix dynamic default locale routing

This commit is contained in:
MOH
2026-03-15 04:41:08 +01:00
parent 50c3f5cce9
commit 364f761420
13 changed files with 73 additions and 32 deletions
+5 -2
View File
@@ -35,7 +35,10 @@ export default async function ComingSoonPage({
}: ComingSoonPageProps) {
const { locale } = await params;
const localeKey = resolveLocale(locale);
const t = await getTranslations({ locale: localeKey, namespace: "comingSoon" });
const [t, siteSettings] = await Promise.all([
getTranslations({ locale: localeKey, namespace: "comingSoon" }),
getSiteSettings(),
]);
const isArabic = localeKey === "ar";
const lines = [
{
@@ -57,7 +60,7 @@ export default async function ComingSoonPage({
return (
<div className="relative min-h-screen overflow-hidden">
<FloatingPreferences locale={localeKey} />
<FloatingPreferences locale={localeKey} defaultLocale={siteSettings.defaultLocale} />
<HeroShell className="min-h-screen" showBridges>
<MotionFade className="relative z-10 w-full">