You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 12, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 12, 2019. It is now read-only.
It was extreme pain to pack latest Select2(4.0.10) with transtions throught Webpack because of minimal information on the internet and in the documentation.
This example code should work for users that use Symfony Webpack Encore: const $ = require('jquery'); require('select2'); const Slovak = require('select2/src/js/select2/i18n/sk');
$.fn.select2.defaults.set('debug', true); // This will help you debug problem with translations $.fn.select2.defaults.set('language', Slovak); $('form').select2()
Activity
BPavol commentedon Sep 5, 2019
It was extreme pain to pack latest Select2(4.0.10) with transtions throught Webpack because of minimal information on the internet and in the documentation.
This example code should work for users that use Symfony Webpack Encore:
const $ = require('jquery');require('select2');const Slovak = require('select2/src/js/select2/i18n/sk');$.fn.select2.defaults.set('debug', true); // This will help you debug problem with translations$.fn.select2.defaults.set('language', Slovak);$('form').select2()