//#region src/hreflang.ts
const LOCALE_BCP47 = {
	en: "en",
	he: "he-IL",
	ar: "ar",
	ru: "ru",
	fr: "fr-FR",
	de: "de-DE"
};
function buildHrefLangs(locales, current, urlFn) {
	const links = locales.map((locale) => ({
		hreflang: LOCALE_BCP47[locale] ?? locale,
		href: urlFn(locale)
	}));
	const defaultLocale = locales.includes(current) ? current : locales[0];
	if (defaultLocale) links.push({
		hreflang: "x-default",
		href: urlFn(defaultLocale)
	});
	return links;
}
//#endregion
export { LOCALE_BCP47, buildHrefLangs };
