Home > Software design >  how to translate the result not found message of a select2 with laravel
how to translate the result not found message of a select2 with laravel

Time:07-19

I have a problem with the translation of select2 which is filled via an ajax call. I would like to translate the text result not found. If someone can help me it will be really nice. enter image description here

CodePudding user response:

You can customize not found text using property noResults

Example of code

   {
     "language": {
       "noResults": function(){
           return "My custom No Results Found";
       }
   },
  • Related