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
| Name | Type | Required |
|---|---|---|
currentLocale | TLocale | Yes |
description | string | Yes |
reason | "accept-language" | "host" | Yes |
recommendedLocale | TLocale | Yes |
recommendedUrl | string | Yes |
Last updated: November 10, 2026