Select2: fr localization
This commit is contained in:
parent
313ce17d6f
commit
d40c0d3b06
2 changed files with 5 additions and 1 deletions
|
@ -18,5 +18,6 @@
|
|||
//= require highcharts
|
||||
//= require chartkick
|
||||
//= require select2
|
||||
//= require select2_locale_fr
|
||||
//= require typeahead.bundle
|
||||
//= require_tree .
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue