My website supports two languages: en, de. The currently selected language is set in the <html lang> attribute. The user may choose the language they want out of these two. The map should follow that as well.
Without this plugin, my maps are always in German, no matter what I do.
With this plugin, the map follows the browser's first language (if supported, see #4) but not the page content's language from the above attribute.
I saw that there is a setLanguage method but it requires a parameter style which is not documented. I have no idea what I should pass to it. So I cannot consider that method. And then there's nothing left. The plugin cannot set the map language to the page language.
My website supports two languages: en, de. The currently selected language is set in the
<html lang>attribute. The user may choose the language they want out of these two. The map should follow that as well.Without this plugin, my maps are always in German, no matter what I do.
With this plugin, the map follows the browser's first language (if supported, see #4) but not the page content's language from the above attribute.
I saw that there is a
setLanguagemethod but it requires a parameterstylewhich is not documented. I have no idea what I should pass to it. So I cannot consider that method. And then there's nothing left. The plugin cannot set the map language to the page language.