Android remove localizations

2019-02-22 12:18发布

问题:

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"
    }
}