X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5ff4e4e331e8e8e117bbbfeefe045c66d1349d29..bf9dd8f350ca1b54afb79dda79506d980ccb5738:/app/assets/javascripts/user.js diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index 3839a18c2..377efb315 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -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);