feat: homepage animations; Arabic as default locale

This commit is contained in:
2026-09-24 00:22:40 +02:00
parent 2ff5cf47cf
commit 1879a206ad
14 changed files with 268 additions and 56 deletions
+5 -4
View File
@@ -14,6 +14,7 @@
import type { MetaDescriptor } from "react-router";
import {
DEFAULT_LOCALE,
INTL_LOCALE,
OG_LOCALE,
SUPPORTED_LOCALES,
@@ -103,8 +104,8 @@ export interface LocaleAlternate {
/**
* The hreflang set for a page: one entry per locale plus `x-default`, which
* points at the English URL because English is the default locale that bare
* "/" negotiates towards.
* points at the default-locale URL because that is what a bare "/" resolves
* to when no locale can be negotiated.
*/
export function alternateUrls(
siteUrl: string,
@@ -121,9 +122,9 @@ export function alternateUrls(
return [
...alternates,
{
locale: "en",
locale: DEFAULT_LOCALE,
hrefLang: "x-default",
href: canonicalUrl(siteUrl, localizedPath(unprefixed, "en")),
href: canonicalUrl(siteUrl, localizedPath(unprefixed, DEFAULT_LOCALE)),
},
];
}