Android remove localizations

无人久伴 提交于 2019-12-19 19:56:29

问题


My app at Play Store does not have any localizations other than the default: English (United States). This time I created a new apk to update it. And it uses android-support-v7-appcompat library. So when I uploaded the new apk and in the apk details it says 'added 72 new localizations'. These are coming from the values folders in android-support-v7-appcompat (values-af, values-am,...etc).

Is this okay or if not, how do I remove the localizations? My app has just one values folder and I do not want to add localizations.


回答1:


Don't worry about it: the message is only seen to you as a developer and not seen by any user. The only clue that you'd support a different language is if you translated your Google Play store listing. AppCompat strings are solely used for content descriptions used for accessibility systems such as Talkback so they won't be visible to the vast majority of users of your app.




回答2:


In build.gradle, add resConfigs to limit the languages:

android {
    defaultConfig {
        // other configuration here
        resConfigs "en"
    }
}


来源:https://stackoverflow.com/questions/26535314/android-remove-localizations

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