Commit 982fe67c authored by Pierre Arnaud's avatar Pierre Arnaud

Fix select2 detection language

parent 78068152
......@@ -27,7 +27,7 @@ UrbanTransportsPerimeterOfFrance
$("#label-state-geolocalisation").hide();
$("#term").select2({
//theme: "classic",
// language: navigator.languages[0].split('-')[0],
language: language,
ajax: {
url: territoria_api +
"autocomplete-territory?" +
......
......@@ -74,6 +74,7 @@ from passim.resources import UsersResource
<script>
var territoria_api = '${request.registry.settings['territoria_api']}';
var petitpois_api = '${request.registry.settings['petitpois_api']}';
var language = '${request.localizer.locale_name}';
</script>
${self.head()}
</head>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment