javascript - How to change the language for alerts in chosen.js? -
when type in unavailable option in multiple select box in chosen.js, generate output 'no results match "query"'. there way change output language?
you can set default message -
// jquery version: https://github.com/harvesthq/chosen/blob/master/example.jquery.html $(".chzn-select").chosen({no_results_text: "translated no results matched"}); // prototype version: https://github.com/harvesthq/chosen/blob/master/example.proto.html new chosen($$(".chzn-select")[element_index],{no_results_text: "translated no results matched"});
except this, there doesn't seem i18n support.
Comments
Post a Comment