Skip to main content

Function: resolveLocalized()

function resolveLocalized(ls, cfg): ResolvedText;

Defined in: packages/core/src/i18n/locale.ts:374

docs/04 §11.1: exact tag → cfg.fallbacks in order → any locale that has a non-empty value → empty string.

A plain (non-map) LocalizedString carries no locale of its own; it is reported as the active locale and never flagged as a fallback, because nothing in LocaleConfig can tell us which language the author typed it in.

Parameters

ParameterType
lsLocalizedString | undefined
cfgLocaleConfig

Returns

ResolvedText