Not the answer to the original question, but the solution for the corresponding problem, and this is the likely destination if you are looking for a solution to this problem (this was for me).
In our project, we created resource directories, but for some reason the localized strings were ignored.
The problem was Androids support for generating pseudo-localization resources. In older versions of Android, you did this using this magic in the build.gradle file:
android.applicationVariants.all { variant -> // see http://blog.danlew.net/2014/04/16/android-localization-tips/ if (variant.buildType.isDebuggable()) { variant.mergedFlavor.addResourceConfiguration("zz_ZZ") } }
This has changed in later versions of Android, and if you use it, then you will not get any localization. New way:
buildTypes { debug { pseudoLocalesEnabled true } }
user486646
source share