locale

fun locale(pr: PluralRule): Locale

The Locale for this plural rule.

This may not be the same Locale as supplied to the PluralRule.create supplied Locale. For example, both "en-US" and "en-GB" will return a Locale with only the language "en" specified, since the region (in the case of English) is not relevant to plural selection.

Return

Locale for this Plural rule. Never null.

Parameters

pr

PluralRule for which we should determine the Locale. Null not allowed.