]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/query.js
Merge remote-tracking branch 'upstream/pull/4126'
[rails.git] / app / assets / javascripts / index / query.js
index e44db9fdf0d012b4b8a3bd1f237c160e283cbabc..59c3a8b495c29638e57cd25ca677b064009f9b98 100644 (file)
@@ -125,7 +125,7 @@ OSM.Query = function (map) {
 
   function featureName(feature) {
     var tags = feature.tags,
-        locales = I18n.locales.get();
+        locales = OSM.preferred_languages;
 
     for (var i = 0; i < locales.length; i++) {
       if (tags["name:" + locales[i]]) {