Contents

language

A language ID indicating the selected language.

Declaration

get language(): string;
set language(language: string);

Mentioned in

Discussion

The ID of the language you pass as an initialization option, or according to the user’s browser preference. You can change the language property dynamically, which no longer requires that you reload the containing page. If the language choice isn’t available, MapKit JS picks the best match.

For more information about language IDs, see Internationalization and Localization Guide.

See Also

Version and language