I would like to know how I could change the language of select2, at the moment when it does not find results it shows me this message.
https://select2.github.io/ ... this is the plugin page but at the moment I haven't found anything that shows me clearly how to do it. Thank you very much in advance
You can do it in two ways:
Pass the parameters you want directly to the function
select2
:or use the language library in your case in Spanish:
Remember that you have to put the language change function before you start
select2
After loading the spanish library you can put the pseudo tag lang="es"