How to change language Google Map V2 android

You can change location for Google Maps that use the Google Map API V2 by using a Locale Object. The language needs to be supported on the device being used though.

Here is the full list of supported languages.

With this code below I was able to change the language on the map to Chinese:

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    String languageToLoad = "zh_CN";
    Locale locale = new Locale(languageToLoad);
    Locale.setDefault(locale);
    Configuration config = new Configuration();
    config.locale = locale;
    getBaseContext().getResources().updateConfiguration(config,
            getBaseContext().getResources().getDisplayMetrics());

    setContentView(R.layout.activity_maps);

    setUpMapIfNeeded();

}

Result, language set to Chinese in the code (no manual changes) on a U.S. based phone:

Chinese Map

I was also able to get it to show Korean, use this Locale code:

 String languageToLoad = "ko_KR";

Result:

Korean Map

NOTE

It looks like the supported languages for Google Maps are listed here:
https://developers.google.com/maps/faq#languagesupport

Leave a Comment