In my app I support 2 languages: English and Hebrew. I created a file strings.xml inside the folder values/ and there are all the English strings. I also created a file strings.xml inside values-he/ folder with the hebrew translations. But when opening the app in a phone which locale is Israel/hebrew, the user doesn't receives the translation, but only the English texts.. Is there something I'm missing? Do I have to do another thing? Thanks!

有帮助吗?

解决方案

Not only you need the folder

values-he

You also need the folder

values-iw

Because some devices recognize he, some others iw.
So, put the very same files in both folders and you'll have no problems.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top