Skip to content

Commit edddf96

Browse files
committed
Add Japanese translation
1 parent 7047b81 commit edddf96

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

select2_locale_ja.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Select2 Japanese translation.
3+
*/
4+
(function ($) {
5+
"use strict";
6+
7+
$.extend($.fn.select2.defaults, {
8+
formatNoMatches: function () { return "該当項目なし"; },
9+
formatInputTooShort: function (input, min) { var n = min - input.length; return "後" + n + "文字入れてください"; },
10+
formatInputTooLong: function (input, max) { var n = input.length - max; return "検索文字列が" + n + "文字長すぎます"; },
11+
formatSelectionTooBig: function (limit) { return "最多で" + limit + "項目までしか選択できません"; },
12+
formatLoadMore: function (pageNumber) { return "読込中・・・"; },
13+
formatSearching: function () { return "検索中・・・"; }
14+
});
15+
})(jQuery);

0 commit comments

Comments
 (0)