Type Alias LanguageInfo

type LanguageInfo = {
    code: string | null;
    flag: string;
    geocoding: boolean;
    isMode: boolean;
    latin: boolean;
    name: string;
}
Index

Properties

code: string | null

Two-letter ISO code, such as "en" for English language. Can be null if the language is a flag to be evaluated at runtime, as it is the case for some "modes".

flag: string

The full OSM language flag, such as "name:en" for the English language. Can also be a non-OSM flag if the language needs to be evaluated at runtime, such as "auto", as it is the case for some "modes".

geocoding: boolean

Whether the language is compatible with the geocoding API

isMode: boolean

Some language descriptions corresponds to "modes" rather than to actual languages. For instance the "visitor" mode consists in displaying bilingual labels.

latin: boolean

Whether the language leverages only the latin charsets.

name: string

English name of the language.

Was this helpful?

Client JS
Reference
LanguageInfo