Fix dynamic default locale routing
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user