Er.nishka
Er.nishka

Reputation: 199

android Google Map language as Locale language

enter image description hereAs Google-Map App in our phone shows the different languages as per region with English. I want to implement same in my app also. But i can not do this in android. can you please help me to get out of it.

Set Google Map language as Locale language

https://developers.google.com/maps/documentation/javascript/basics?csw=1#Localization

https://developers.google.com/maps/documentation/javascript/localization

Upvotes: -1

Views: 2173

Answers (1)

Abhinav Suman
Abhinav Suman

Reputation: 992

Please check this link What is the list of supported languages/locales on Android? for supported language.
& you can do this by simply changing the Locale of your application like this in your Splash or where you loading the maps.

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

Hope this may help you.

Upvotes: 3

Related Questions