Display Language

Last updated:

The language of MapsIndoors is independent of the chosen language on the device on which the app is used. This means that you need to explicitly tell MapsIndoors which language to use.

If you do not specify a language, MapsIndoors will show information in the default language defined in the MapsIndoors CMS. Likewise, if you specify a language that is not supported, MapsIndoors will also show information in the default language.

Use Fixed Language

The MapsIndoors language can be fixed to a specific language by supplying an ISO 639-1 language code, for example French:

MapsIndoors.setLanguage("fr");
MapsIndoors.setLanguage("fr")

Use Device Language

The MapsIndoors language can be aligned with the device language by supplying the current language code of the device:

String languageCode = getResources().getConfiguration().getLocales().get(0).getLanguage();
MapsIndoors.setLanguage(languageCode);
val lang = resources.configuration.locales[0].language
MapsIndoors.setLanguage(lang)