search

Home  >  Q&A  >  body text

i18n - android app cannot display default language as English

The recently developed app needs the default language to be English, and then the user can manually switch the language.
I wrote the contents of string.xml into English, and then also created a Chinese strings.xml folder. As shown below:

Then I set the system language to English, but when I run it, it always displays Chinese. Why is this?
I think if the system language is English when the user first installs this app, then my text should be in English. If the system is in Chinese, the text should be in Chinese.
But now I know that the system language is English, but when I first installed it, it still displayed Chinese.

给我你的怀抱给我你的怀抱2734 days ago821

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-24 11:40:11

    You seem to have written the folder name wrong

    If the system is not Chinese, he will first look for it in the values ​​folder, and then look for the string in other folders. I think your en folder is redundant

    reply
    0
  • Cancelreply