Enebale I18n for embedded maps

This commit is contained in:
Tom Hughes 2016-03-09 19:26:31 +00:00
parent 151a48d7f3
commit 544ed36247

View file

@ -1,7 +1,14 @@
//= require leaflet
//= require leaflet.osm
//= require i18n/translations
window.onload = function () {
if (navigator.languages) {
I18n.locale = navigator.languages[0];
} else if (navigator.language) {
I18n.locale = navigator.language;
}
var query = (window.location.search || '?').substr(1),
args = {};