I install
java.util.Locale localeWithoutCountryCode = new Locale("fr_FR");
But when I return its value, it returns to me "fr_fr"(lowercase country), and this leads to the failure of my messages. I want him to keep the country's business as it is.
"fr_fr"
A constructor with one argument for Localeaccepts the ISO language as a parameter; you convey the language and option. Use instead new Locale("fr", "FR").
Locale
new Locale("fr", "FR")
If for some reason this is hardcoded, you can just use Locale.FRANCE.
Locale.FRANCE
Source: https://habr.com/ru/post/1679593/More articles:Внедрение разделения с одной точностью как умножение с двойной точностью - cCSS responsiveness and animation - javascript'ImportError: cannot import cbook name' when using PyCharm Profiler - pythonHow to convert String to locale in java - javaLaravel synchronizes many errors - phpОшибка Pycharm при импорте matplotlib.pyplot как plt - pythonMagento 2 - Create an order programmatically and add products with customizable parameters - magentoHow can I align the text right and right? - htmlIs `int` signed? - cМогу ли я применить CIFilter к каналу камеры ARkit? - ios11All Articles