Skip to content

Core / locale: LocaleSeoLink

Functions, types, and exports for Core / locale: LocaleSeoLink.

Framework-neutral link descriptors suitable for document heads and sitemaps.

import type { LocaleSeoLink } from "@palamedes/core/locale"

type LocaleSeoLink<TLocale extends string = string> = {
    href: string;
    rel: "canonical";
    hrefLang?: never;
} | {
    href: string;
    rel: "alternate";
    hrefLang: TLocale | "x-default";
};

Source entry on GitHub

Last updated: November 10, 2026