How can I change Google Maps language to Hindi in my app?
Asked Answered
M

1

2

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?

Mcclimans answered 19/2, 2018 at 9:2 Comment(1)
There is a bug report for this: issuetracker.google.com/issues/36823099.Devito
A
0

At the moment, Hindi language ("hi_IN") can only be served using the v3.1.0 Beta Maps SDK for Android client library.

Follow the migration guide https://goo.gle/v3-migration-guide

This is a beta release, give your feedback in the new component of the Issue Tracker [https://goo.gle/gmp-android-sdk-beta-issues] to help exit beta as quickly as possible.

Assay answered 16/9, 2020 at 10:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.