Answer the question
In order to leave comments, you need to log in
Select2 language file not seeing jQuery?
I use Babel. I created a JS file, wrote the code, imported select2 and the language file from above:
import {$, jQuery} from 'jquery'
import 'select2'
import 'select2/dist/js/i18n/ru'
$('#select').select2({
language: 'ru'
})
Select2 supports multiple languages by simply including the right language JS file (dist/js/i18n/it.js, dist/js/i18n/nl.js, etc.) after dist/js/select2.js.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question