I am using Google Maps in my Android app. I have implemented language localisation throughout my app. Therefore I want that whenever the user changes the app language Google Maps language also gets changed to Hindi. I tried the following method to change the language of Google Maps in my app.
String languageToLoad = "hi";
Locale locale = new Locale(languageToLoad);
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getResources().updateConfiguration(config, getResources().getDisplayMetrics());
I am doing this before Maps gets loaded, but the language does not change to Hindi. I have tried changing the language of maps to Chinese and Korean, it works well but I am not getting success with Hindi.
Can anyone please suggest me the right way?