Skip to main content

Function: intlLocaleFor()

function intlLocaleFor(config): string;

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

The BCP-47 tag to hand Intl, with the form's digit and calendar choices attached as Unicode extensions (docs/04 §4.1, docs/13 §5).

createLocaleConfig has always computed numbering, numberingSystem and calendar — honouring settings.localeMeta — and every renderer then constructed Intl from the bare locale and threw all three away. So a form declaring numbering: "native" still printed 3 of 7 in Latin digits, and one declaring calendar: "islamic-umalqura" printed Gregorian dates: two settings the schema defines, the validator accepts and the example corpus uses, with no effect anywhere.

latn is not appended even when explicit — it is Intl's default for the locales this ships with, and an unnecessary extension only makes the tag harder to read in a diagnostic.

Parameters

ParameterType
configLocaleConfig

Returns

string