diff --git a/app/assets/javascripts/index/query.js b/app/assets/javascripts/index/query.js index d5b9fb2c1..12bb49efc 100644 --- a/app/assets/javascripts/index/query.js +++ b/app/assets/javascripts/index/query.js @@ -112,7 +112,14 @@ OSM.Query = function(map) { } function featureName(feature) { - var tags = feature.tags; + var tags = feature.tags, + locales = I18n.locales.get(); + + for (var i = 0; i < locales.length; i++) { + if (tags["name:" + locales[i]]) { + return tags["name:" + locales[i]]; + } + } if (tags["name"]) { return tags["name"];