Home >Java >javaTutorial >What is Common Locale Data Repository (CLDR) in Java 9?
Internationalization for Java 9 Enhancements include default enabledCLDRlocale data . p>
There are four different sources of locale data identified using the following keywords:
In Java 8 and earlier versions, JRE is the default locale data. Java 9 sets CLDR to the highest priority by default. We use the java.locale.providers system properties to select the locale data sources in order of preference. If a provider fails to request locale data, the next provider can be processed.
<strong>java.locale.providers=COMPAT,CLDR,HOST,SPI</strong>
If we don’t set this property, the default behavior is:
<strong>java.locale.providers=CLDR,COMPAT,SPI </strong>
For Compatible with Java 8, keep COMPAT before CLDR.
<strong>java.locale.providers=COMPAT,CLDR</strong>
The above is the detailed content of What is Common Locale Data Repository (CLDR) in Java 9?. For more information, please follow other related articles on the PHP Chinese website!