Inspectopedia Help

Wrong locale name

Wrong locale name

From the java.util.Locale documentation:

"Note that Java uses several deprecated two-letter codes. The Hebrew ("he") language code is rewritten as "iw", Indonesian ("id") as "in", and Yiddish ("yi") as "ji". This rewriting happens even if you construct your own Locale object, not just for instances returned by the various lookup methods.

Because of this, if you add your localized resources in for example values-he they will not be used, since the system will look for values-iw instead.

To work around this, place your resources in a values folder using the deprecated language code instead.

Issue id: LocaleFolder

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3


Android, 2022.3.1 Beta 2

Last modified: 13 July 2023