Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android remove localizations

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.

like image 513
Frozen Crayon Avatar asked Oct 23 '14 18:10

Frozen Crayon


People also ask

What is i18n in Android?

Internationalization (i18n) is the engineering effort to make a product — an app in our case — ready for localization, i.e. adaptation to different regions. It includes important simplifications in the source code needed to avoid individual changes when entering foreign markets.

What is Localisation Android?

In order to make your application more interactive, your application should handle text,numbers,files e.t.c in ways appropriate to the locales where your application will be used. The way of changing string into different languages is called as localization.

How do I change the default language in Android Studio?

In the Preferences menu -> Editor -> Spelling : You can add a custom dictionary. Your language.


1 Answers

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

android {
    defaultConfig {
        // other configuration here
        resConfigs "en"
    }
}
like image 89
Ashok Varma Avatar answered Sep 22 '22 13:09

Ashok Varma