select2 icon indicating copy to clipboard operation
select2 copied to clipboard

user i18n with requeirJs

Open aricyu opened this issue 10 years ago • 1 comments

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" errorPic

How should I do?Thanks!

aricyu avatar Mar 31 '16 02:03 aricyu

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.

kevin-brown avatar Apr 01 '16 20:04 kevin-brown