En_EN is the valid language
In the example for internationalization in JavaFX 2 and internationalization, the passed locale is resolved as en_EN. Is it even a valid language?
+3
source to share
1 answer
See Enabled Locales for java.util and java.text Functionality for a list of all supported Oracle JDK 8 and JRE 8 locales.
en-EN
No language tag specified.
This is because the string specified for the country code ("EN") is not the assigned ISO 3166 alpha-2 country code (see Locale , "country (region)").
A list of all the two-letter country codes defined in ISO 3166 can be obtained using Locale.getISOCountries()
.
+1
source to share