языки, такие как персидские (также называемые фарси). />
Western Numerals: 0 1 2 3 4 5 6 7 8 9 < /p>
Например: < /p>
Код: Выделить всё
Locale myLocale = Locale.forLanguageTag("fa");
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy", myLocale);
formatter.format(LocalDate.now()); // should return "۲۰۲۰" but returns "2020"
Подробнее здесь: https://stackoverflow.com/questions/624 ... eformatter