feat: homepage animations; Arabic as default locale
This commit is contained in:
@@ -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)),
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user