Enebale I18n for embedded maps
This commit is contained in:
parent
151a48d7f3
commit
544ed36247
1 changed files with 7 additions and 0 deletions
|
@ -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 = {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue