select2
select2 copied to clipboard
user i18n with requeirJs
I want to use language with requeirJs,
define(['jquery', 'lib/select2/select2.full', 'lib/select2/i18n/zh-CN', 'css!lib/select2/select2.css'], function ($) {
$.fn.select2.defaults.set('language', 'zh-CN');
});
but there is a error message:"TypeError: e is undefined"

How should I do?Thanks!
It sounds like you are including the translation file before the select2.js file.
This appears to be more of a usage question than a bug report or common feature request. As we continue to keep the Select2 issue tracker geared towards these two areas, bug reports and common feature requests, we are redirecting usage questions to other communities such as the mailing list, IRC, or Stack Overflow.