Languages
src/language.ts
Type declaration
Built-in list of compatible languages as shorthands to ISO language codes used to define de map labels language. The language generally depends on the style.
Built-in support for right-to-left languages. Languages that are written right-to-left such as arabic and hebrew are fully supported by default. No need to install any plugin!
The list of supported languages is built-in and can be found here. In addition, there are special language cases:
Language.AUTO
: uses the default language of the browserLanguage.LATIN
: uses the default fallback language in the latin chaserLanguage.NON_LATIN
: uses the default fallback language in the non latin chasetLanguage.LOCAL
: uses the local language for each countryLanguage.STYLE_LOCK
: to force keep the language from the style and prevent any further update
Related examples
An extension of MapLibre GL JS