]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/user.js
Update bundle
[rails.git] / app / assets / javascripts / user.js
index 3839a18c24c10a5d16c776b934a16b5bd673d6e0..377efb315b290eaf48a1c186f44aa648b56fe153 100644 (file)
@@ -18,9 +18,9 @@ $(document).ready(function () {
       iconLoading: "icon geolocate",
       strings: {
         title: I18n.t("javascripts.map.locate.title"),
-        metersUnit: I18n.t("javascripts.map.locate.metersUnit"),
-        feetUnit: I18n.t("javascripts.map.locate.feetUnit"),
-        popup: I18n.t("javascripts.map.locate.popup")
+        popup: function (options) {
+          return I18n.t("javascripts.map.locate." + options.unit + "Popup", { count: options.distance });
+        }
       }
     }).addTo(map);