5

I know we can change the language in map by using

String languageToLoad  = "hi"; // your language
    Locale locale = new Locale(languageToLoad); 
    Locale.setDefault(locale);
    Configuration config = new Configuration();
    config.locale = locale;
    getBaseContext().getResources().updateConfiguration(config, 
      getBaseContext().getResources().getDisplayMetrics());

But, this changes the whole map language in "Hindi". How can we change the language based on region language like google maps doesenter image description here for every state or country there is different language. Is there any google api for it or we have add some code at run time?

Kapil Parmar
  • 881
  • 8
  • 19

0 Answers0