Select2: fr localization

This commit is contained in:
Simon Lehericey 2017-10-27 17:15:21 +02:00
parent 313ce17d6f
commit d40c0d3b06
2 changed files with 5 additions and 1 deletions

View file

@ -18,5 +18,6 @@
//= require highcharts
//= require chartkick
//= require select2
//= require select2_locale_fr
//= require typeahead.bundle
//= require_tree .

View file

@ -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'