diff --git a/app/assets/javascripts/new_design/application.js b/app/assets/javascripts/new_design/application.js index 56b132233..e5d95ac00 100644 --- a/app/assets/javascripts/new_design/application.js +++ b/app/assets/javascripts/new_design/application.js @@ -18,5 +18,6 @@ //= require highcharts //= require chartkick //= require select2 +//= require select2_locale_fr //= require typeahead.bundle //= require_tree . diff --git a/app/assets/javascripts/new_design/champs/multiple_drop_down_list.js b/app/assets/javascripts/new_design/champs/multiple_drop_down_list.js index 3334a1790..02125aeae 100644 --- a/app/assets/javascripts/new_design/champs/multiple_drop_down_list.js +++ b/app/assets/javascripts/new_design/champs/multiple_drop_down_list.js @@ -1,7 +1,10 @@ document.addEventListener('turbolinks:load', function() { - $('select.select2').select2(); + $('select.select2').select2({ + 'language': 'fr' + }); $('select.select2-limited').select2({ + 'language': 'fr', 'placeholder': 'Sélectionnez des colonnes', 'maximumSelectionLength': '5', 'width': '300px'