Type Alias LanguageInfo
type LanguageInfo = {
code: string | null;
flag: string;
geocoding: boolean;
isMode: boolean;
latin: boolean;
name: string;
}
code: string | null;
flag: string;
geocoding: boolean;
isMode: boolean;
latin: boolean;
name: string;
}
Properties
code
code: string | null
flag
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
geocoding: boolean
Whether the language is compatible with the geocoding API
isMode
isMode: boolean
Some language descriptions corresponds to "modes" rather than to actual languages. For instance the "visitor" mode consists in displaying bilingual labels.
latin
latin: boolean
Whether the language leverages only the latin charsets.
name
name: string
English name of the language.
Two-letter ISO code, such as
"en"for English language. Can benullif the language is a flag to be evaluated at runtime, as it is the case for some "modes".