Skip to content

Core / locale: LocaleSuggestion

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

Page outline

A UI-agnostic suggestion that the rendered locale differs from the intent.

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

type LocaleSuggestion<TLocale extends string> = {
    currentLocale: TLocale;
    description: string;
    reason: "accept-language" | "host";
    recommendedLocale: TLocale;
    recommendedUrl: string;
};

Properties

NameTypeRequired
currentLocaleTLocaleYes
descriptionstringYes
reason"accept-language" | "host"Yes
recommendedLocaleTLocaleYes
recommendedUrlstringYes

Source entry on GitHub

Last updated: November 10, 2026