Android wrong locale resolution for ES-EC language

ⅰ亾dé卋堺 提交于 2020-06-17 09:07:30

问题


I have the next localization in my app:

values
values-es
values-es-rMX

When I have locale of the device set to es_EC (Ecuador), I see strings from MX folder! But accordingly to this tutorial, I should see strings from base ES folder (actually, this is the goal).

Why is it happening and how can I get correct app behavior?
I'm using an emulator with API level 28.


回答1:


Okay, the answer is on another StackOverflow question, the reason is the same, this is intended behavior for Android system.



来源:https://stackoverflow.com/questions/61544679/android-wrong-locale-resolution-for-es-ec-language

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!