Skip to content

Commit 396d594

Browse files
committed
Add Thai Translation
1 parent 24716bc commit 396d594

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Diff for: select2_locale_th.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Select2 Thai translation.
3+
*
4+
* Author: Atsawin Chaowanakritsanakul <[email protected]>
5+
*/
6+
(function ($) {
7+
"use strict";
8+
9+
$.extend($.fn.select2.defaults, {
10+
formatNoMatches: function () { return "ไม่พบข้อมูล"; },
11+
formatInputTooShort: function (input, min) { var n = min - input.length; return "โปรดพิมพ์เพิ่มอีก " + n + " ตัวอักษร"; },
12+
formatInputTooLong: function (input, max) { var n = input.length - max; return "โปรดลบออก " + n + " ตัวอักษร"; },
13+
formatSelectionTooBig: function (limit) { return "คุณสามารถเลือกได้ไม่เกิน " + limit + " รายการ"; },
14+
formatLoadMore: function (pageNumber) { return "กำลังค้นข้อมูลเพิ่ม..."; },
15+
formatSearching: function () { return "กำลังค้นข้อมูล..."; }
16+
});
17+
})(jQuery);

0 commit comments

Comments
 (0)