From 4176b78edf3c475495cf1d956ac492b97b8d6464 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 20 Mar 2020 14:58:45 +0000 Subject: [PATCH 1/1] Pass I18n argument correctly --- app/assets/javascripts/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index b9518f10d..377efb315 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -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); -- 2.39.5