Expand description
The closed set of locales the pattern catalogue carries detectors for.
A locale is strict: setting one suppresses patterns belonging to any other
locale. That strictness is right for a tag the catalogue knows, and wrong for
one it does not — an unrecognised tag used to be accepted and behave as
“suppress every locale-specific pattern”, so locale="it-IT" returned no
patterns where locale="IT" returned a confident match, with nothing in the
report saying the tag was not understood. Parsing a tag into Locale
before it can be stored keeps that failure out of the type: the common
spellings normalise, and anything left over is an error naming the set.
Enums§
- Locale
- A locale the pattern catalogue carries locale-specific detectors for.