This commit is contained in:
@@ -8,7 +8,7 @@ import { MotionFade } from "@/components/motion-fade";
|
||||
import { HeroShell, HeroTitle } from "@/components/layout/site-hero";
|
||||
import { getSiteSettings } from "@/lib/app-config";
|
||||
import { buildLocalizedMetadata } from "@/lib/metadata";
|
||||
import { resolveLocale } from "@/lib/locale";
|
||||
import { FALLBACK_LOCALE, resolveLocale } from "@/lib/locale";
|
||||
|
||||
type ComingSoonPageProps = {
|
||||
params: Promise<{
|
||||
@@ -22,7 +22,7 @@ export const revalidate = 0;
|
||||
export async function generateMetadata({ params }: ComingSoonPageProps): Promise<Metadata> {
|
||||
noStore();
|
||||
const { locale } = await params;
|
||||
const localeKey = resolveLocale(locale);
|
||||
const localeKey = resolveLocale(locale, FALLBACK_LOCALE);
|
||||
const t = await getTranslations({ locale: localeKey, namespace: "comingSoon" });
|
||||
const siteSettings = await getSiteSettings();
|
||||
|
||||
@@ -40,7 +40,7 @@ export default async function ComingSoonPage({
|
||||
}: ComingSoonPageProps) {
|
||||
noStore();
|
||||
const { locale } = await params;
|
||||
const localeKey = resolveLocale(locale);
|
||||
const localeKey = resolveLocale(locale, FALLBACK_LOCALE);
|
||||
const [t, siteSettings] = await Promise.all([
|
||||
getTranslations({ locale: localeKey, namespace: "comingSoon" }),
|
||||
getSiteSettings(),
|
||||
|
||||
Reference in New Issue
Block a user