In the example for internationalization at JavaFX 2 and Internationalization the locale passed is resolved as en_EN. Is it even a valid locale?
See Enabled Locales for java.util and java.text Functionality for a list of all supported locales by Oracle's JDK 8 and the JRE 8.
The language tag en-EN
is not listed.
That's because the string given as the country code ("EN") is not an assigned ISO 3166 alpha-2 country code (see Locale, "country (region)").
A list of all 2-letter country codes defined in ISO 3166 can be retrieved with Locale.getISOCountries()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With