@CommanderStorm commented on this pull request.


> @@ -5,3 +5,26 @@ OSM.MapLibre.Locale = {
   "NavigationControl.ZoomOut": OSM.i18n.t("javascripts.map.zoom.out"),
   "Popup.Close": OSM.i18n.t("javascripts.map.popup.close")
 };
+
+OSM.MapLibre.setMapLanguage = function (map) {
+  if (!map.style.loaded()) {
+    map.once("load", () => OSM.MapLibre.setMapLanguage(map));
+    return;
+  }
+
+  const supportedLanguages = map.style.getLanguage();

🤔 on second thought, I think this needs to be renamed.
This is is not "getting setting the language". This is specifically a OMT-hack 
that won't work with shortbread.

I think this is because we have `maptiler/maplibre-gl-omt-language` installed 
and this writes their variabltes into our prototype.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6683#discussion_r2702723173
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/pull/6683/review/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to