<select data-placeholder="Select or type" data-minlength="2" multiple = "multiple" name='arrAval' id='listAval' class="js-basic-multiple form-control" required>
So here is the issue:
As the documentation says I should be able to set language for this component:
$(".js-basic-multiple").select2({
language: "language-wanted"
});
It's returning "no results found" no matter which language I set. Just to be clear, as in https://select2.github.io/examples.html#matcher it returns "No se encontraron resultados" for 'language:"es"'
<script src="libs/select2-4.0.2-rc.1/dist/js/i18n/<here-goes-language>.js"></script>
The include above was missing as Keving Brown said. As the example quoted in the question the file for spanish would be "es.js"