forLocale

The pack for locale's language.

Matched on the ISO language code alone (it, es, de, fr, en), so Locale("it", "CH") and Locale.ITALIAN both resolve to ITALIAN.

Throws

if no pack ships for the language. The message lists the supported codes; pass a GuardVocabulary to MatchGuards.standard directly to use your own.