Languages 
The MapTiler SDK JS has a built-in list of compatible languages, which can be used as shorthand for the ISO language codes used to define the language of the map labels. The language generally depends on the map’s style.
The MapTiler SDK JS also provides seamless support for right-to-left languages. Arabic, Hebrew, and other right-to-left languages are fully supported by default. No extra plugins are needed.
Check out the complete list of supported languages. In addition to the built-in ISO languages, there are these special cases for supported languages:
Language.AUTO: uses the default language of the browserLanguage.LATIN: uses the default fallback language in the Latin charsetLanguage.LOCAL: uses the local language for each countryLanguage.NON_LATIN: uses the default fallback language in the non-Latin charset-
Language.STYLE: uses the language defined by the styleWarning
Language.STYLEis the default state. Once you switch the language fromSTYLE, you cannot switch it back. -
Language.STYLE_LOCK: keep the language from the style and prevent any further updatesWarning
Language.STYLE_LOCKshould only be used in the constructor. Language.VISITOR: uses the preferred language from the user settings and the “default name”. This mode is useful when a user needs to access both local names and English names, for example, when traveling abroad where signs are likely to be available only in the local language.Language.VISITOR_ENGLISH: uses English and the “default name”. This mode is useful when a user needs to access both local names and English names, for example, when traveling abroad where signs are likely to be available only in the local language.
Info
The “default name” is equivalent to OSM’s {name}, which is either the most globally recognized name or the local name.
Related examples
- How to change the default map labels language
- How to change the map labels language based on visitor’s location
- Change a map’s language
- Display and style rich text labels