X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/121ef82e2c8ad79bfc8dc06249e162c8a2f4e857..e2e61692ea04fc156221082aeddc21ea18facdec:/app/assets/javascripts/index/query.js diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index dfe0adfe2..790057400 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -69,13 +69,13 @@ OSM.Query = function (map) { let prefix = ""; if (tags.boundary === "administrative" && (tags.border_type || tags.admin_level)) { - prefix = I18n.t("geocoder.search_osm_nominatim.border_types." + tags.border_type, { - defaultValue: I18n.t("geocoder.search_osm_nominatim.admin_levels.level" + tags.admin_level, { - defaultValue: I18n.t("geocoder.search_osm_nominatim.prefix.boundary.administrative") + prefix = OSM.i18n.t("geocoder.search_osm_nominatim.border_types." + tags.border_type, { + defaultValue: OSM.i18n.t("geocoder.search_osm_nominatim.admin_levels.level" + tags.admin_level, { + defaultValue: OSM.i18n.t("geocoder.search_osm_nominatim.prefix.boundary.administrative") }) }); } else { - const prefixes = I18n.t("geocoder.search_osm_nominatim.prefix"); + const prefixes = OSM.i18n.t("geocoder.search_osm_nominatim.prefix"); for (const key in tags) { const value = tags[key]; @@ -100,7 +100,7 @@ OSM.Query = function (map) { } if (!prefix) { - prefix = I18n.t("javascripts.query." + feature.type); + prefix = OSM.i18n.t("javascripts.query." + feature.type); } return prefix; @@ -213,14 +213,14 @@ OSM.Query = function (map) { if (results.remark) { $("