Construct a locale from a language code.
This constructor normalizes the language value to lowercase.
Note:
- ISO 639 is not a stable standard; some of the language codes it defines
(specifically "iw", "ji", and "in") have changed. This constructor accepts both the
old codes ("iw", "ji", and "in") and the new codes ("he", "yi", and "id"), but all other
API on Locale will return only the OLD codes.
- For backward compatibility reasons, this constructor does not make
any syntactic checks on the input.
Parameters:
language | | An ISO 639 alpha-2 or alpha-3 language code, or a language subtag
up to 8 characters in length. See the Locale class description about
valid language values. |
Exceptions:
NullPointerException | | thrown if argument is null. |
Since: 1.4