]> git.openstreetmap.org Git - rails.git/commitdiff
Pass I18n argument correctly
authorTom Hughes <tom@compton.nu>
Fri, 20 Mar 2020 14:58:45 +0000 (14:58 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 20 Mar 2020 14:58:45 +0000 (14:58 +0000)
app/assets/javascripts/user.js

index b9518f10de451cca7f76cccd20c257dad91f663c..377efb315b290eaf48a1c186f44aa648b56fe153 100644 (file)
@@ -19,7 +19,7 @@ $(document).ready(function () {
       strings: {
         title: I18n.t("javascripts.map.locate.title"),
         popup: function (options) {
-          return I18n.t("javascripts.map.locate." + options.unit + "Popup", :count => options.distance);
+          return I18n.t("javascripts.map.locate." + options.unit + "Popup", { count: options.distance });
         }
       }
     }).addTo(map);