Thai translation for DataTables
- Author: Thanva Thonglor
- Author: Gumpanat Keardkeawfa
- Author: William Mcmahon
- Author: Christmas
- Author: aeey
- Author: parisasant
- Author: PeterGamez
Use
There are a number of ways to make use of this translation in your DataTables.
Browser loading / CDN
Loading DataTables' language information directly in the browser is done with the .json
file:
You DataTables initialisation might look like this:
var table = new DataTable('#myTable', {
language: {
url: '//cdn.datatables.net/plug-ins/2.3.2/i18n/th.json',
},
});
ES modules
If you are using ES modules (e.g. with Vite or similar bundler), then can use the datatables.net-plugins
package (.mjs
files), which this translation is available in. In such a case your initialisation code might look like:
import DataTable from 'datatables.net';
import language from 'datatables.net-plugins/i18n/th.mjs';
var table = new DataTable('#myTable', {
language,
});
CommonJS
If you are using CommonJS (i.e. in an older version of Node or Webpack), the translation files can be loaded in from the .js
files which will return the JSON structure for the translation (note that unlike the other DataTables plug-ins it does not return a function to be executed - just a JSON object):
var $ = require('jquery');
var DataTable = require('datatables.net')(window, $);
var language = require('datatables.net-plugins/i18n/th.js');
var table = new DataTable('#myTable', {
language: language,
});
Plug-in code
{
"aria": {
"sortAscending": ": เปิดใช้งานการเรียงข้อมูลจากน้อยไปมาก",
"sortDescending": ": เปิดใช้งานการเรียงข้อมูลจากมากไปน้อย"
},
"autoFill": {
"cancel": "ยกเลิก",
"fill": "กรอกทุกช่องด้วย",
"fillHorizontal": "กรอกตามแนวนอน",
"fillVertical": "กรอกตามแนวตั้ง",
"info": ""
},
"buttons": {
"collection": "ชุดข้อมูล",
"colvis": "การมองเห็นคอลัมน์",
"colvisRestore": "เรียกคืนการมองเห็น",
"copy": "คัดลอก",
"copyKeys": "กดปุ่ม Ctrl หรือ Command + C เพื่อคัดลอกข้อมูลบนตารางไปยัง Clipboard ที่เครื่องของคุณ",
"copySuccess": {
"_": "คัดลอกช้อมูลแล้ว จำนวน %ds แถว",
"1": "คัดลอกข้อมูลแล้ว จำนวน 1 แถว"
},
"copyTitle": "คัดลอกไปยังคลิปบอร์ด",
"createState": "สร้างสถานะ",
"csv": "CSV",
"excel": "Excel",
"pageLength": {
"_": "แสดงข้อมูล %d แถว",
"-1": "แสดงข้อมูลทั้งหมด"
},
"pdf": "PDF",
"print": "สั่งพิมพ์",
"removeAllStates": "ลบสถานะทั้งหมด",
"removeState": "ลบสถานะ",
"renameState": "เปลี่ยนชื่อสถานะ",
"savedStates": "บันทึกสถานะ",
"stateRestore": "คืนค่าสถานะ",
"updateState": "แก้ไขสถานะ"
},
"datetime": {
"amPm": {
"0": "เที่ยงวัน",
"1": "เที่ยงคืน"
},
"hours": "ชั่วโมง",
"minutes": "นาที",
"months": {
"0": "มกราคม",
"1": "กุมภาพันธ์",
"10": "พฤศจิกายน",
"11": "ธันวาคม",
"2": "มีนาคม",
"3": "เมษายน",
"4": "พฤษภาคม",
"5": "มิถุนายน",
"6": "กรกฎาคม",
"7": "สิงหาคม",
"8": "กันยายน",
"9": "ตุลาคม"
},
"next": "ถัดไป",
"previous": "ก่อนหน้า",
"seconds": "วินาที",
"unknown": "ไม่ทราบ",
"weekdays": {
"0": "วันอาทิตย์",
"1": "วันจันทร์",
"2": "วันอังคาร",
"3": "วันพุธ",
"4": "วันพฤหัส",
"5": "วันศุกร์",
"6": "วันเสาร์"
}
},
"decimal": "",
"editor": {
"close": "ปิด",
"create": {
"button": "สร้าง",
"submit": "สร้างข้อมูล",
"title": "สร้างข้อมูลใหม่"
},
"edit": {
"button": "แก้ไข",
"submit": "บันทึก",
"title": "แก้ไขข้อมูล"
},
"error": {
"system": "เกิดข้อผิดพลาดของระบบ (<a target=\"\\\" rel=\"nofollow\" href=\"\\\">ดูข้อมูลเพิ่มเติม)."
},
"multi": {
"info": "รายการที่เลือกมีค่าที่แตกต่างกันสำหรับอินพุตนี้ หากต้องการแก้ไขและตั้งค่ารายการทั้งหมดสำหรับการป้อนข้อมูลนี้เป็นค่าเดียวกัน ให้คลิกหรือแตะที่นี่ มิฉะนั้น รายการเหล่านั้นจะคงค่าแต่ละรายการไว้",
"noMulti": "อินพุตนี้สามารถแก้ไขทีละรายการได้ แต่ไม่สามารถแก้ไขเป็นส่วนหนึ่งของกลุ่มได้",
"restore": "ยกเลิกการแก้ไข",
"title": "หลายค่า"
},
"remove": {
"button": "ลบ",
"confirm": {
"_": "คุณแน่ใจที่จะลบข้อมูล %d รายการนี้ หรือไม่?",
"1": "คุณแน่ใจที่จะลบข้อมูลรายการนี้ หรือไม่?"
},
"submit": "ลบข้อมูล",
"title": "ลบข้อมูล"
}
},
"emptyTable": "ไม่มีข้อมูลในตาราง",
"info": "แสดง _START_ ถึง _END_ จาก _TOTAL_ แถว",
"infoEmpty": "แสดงทั้งหมด 0 to 0 of 0 รายการ",
"infoFiltered": "(กรองข้อมูล _MAX_ ทุกแถว)",
"infoPostFix": "",
"infoThousands": ",",
"lengthMenu": "แสดง _MENU_ แถว",
"loadingRecords": "กำลังโหลดข้อมูล...",
"paginate": {
"first": "หน้าแรก",
"last": "หน้าสุดท้าย",
"next": "ถัดไป",
"previous": "ก่อนหน้า"
},
"processing": "กำลังดำเนินการ...",
"search": "ค้นหา:",
"searchBuilder": {
"add": "เพิ่มเงื่อนไข",
"button": {
"_": "ตัวสร้างการค้นหา (%d)",
"0": "สร้างการค้นหา"
},
"clearAll": "ยกเลิกทั้งหมด",
"condition": "เงื่อนไข",
"conditions": {
"array": {
"contains": "เงื้อนไข",
"empty": "ค่าว่าง",
"equals": "เท่ากับ",
"not": "ไม่",
"notEmpty": "ไม่ใช่ค่าว่าง",
"without": "ไม่มี"
},
"date": {
"after": "ก่อน",
"before": "ก่อน",
"between": "ระหว่าง",
"empty": "ค่าว่าง",
"equals": "เท่ากับ",
"not": "ไม่",
"notBetween": "ไม่ใช่ระหว่าง",
"notEmpty": "ไม่ใช่ค่าว่าง"
},
"number": {
"between": "ระหว่าง",
"empty": "ค่าว่าง",
"equals": "เท่ากับ",
"gt": "มากกว่า",
"gte": "มากกว่าเท่ากับ",
"lt": "น้อยกว่า",
"lte": "น้อยกว่าเท่ากับ",
"not": "ไม่",
"notBetween": "ไม่ใช่ระหว่าง",
"notEmpty": "ไม่ใช่ค่าว่าง"
},
"string": {
"contains": "ประกอบด้วย",
"empty": "ค่าว่าง",
"endsWith": "ลงท้ายด้วย",
"equals": "เท่ากับ",
"not": "ไม่",
"notContains": "ไม่มี",
"notEmpty": "ไม่ใช่ค่าว่าง",
"notEndsWith": "ไม่ลงท้ายด้วย",
"notStartsWith": "ไม่เริ่มต้นด้วย",
"startsWith": "เริ่มต้นด้วย"
}
},
"data": "ข้อมูล",
"deleteTitle": "ลบเงื่อนไขการกรอง",
"logicAnd": "และ",
"logicOr": "หรือ",
"title": {
"_": "ตัวสร้างการค้นหา (%d)",
"0": "สร้างการค้นหา"
},
"value": "ค่า"
},
"searchPlaceholder": "",
"select": {
"cells": {
"_": "เลือก %d cells",
"0": "",
"1": "เลือก 1 cell"
},
"columns": {
"_": "เลือก %d columns",
"0": "",
"1": "เลือก 1 column"
},
"rows": {
"0": ""
}
},
"stateRestore": {
"creationModal": {
"button": "สร้าง",
"name": "ชื่อ:"
},
"duplicateError": "มีข้อมูลที่ใช้ชื่อนี้แล้ว",
"emptyError": "ชื่อต้องไม่เป็นค่าว่าง",
"emptyStates": "ไม่มีสถานะที่บันทึกไว้",
"removeConfirm": "คุณแน่ใจหรือไม่ว่าต้องการลบ %s",
"removeError": "ไม่สามารถลบสถานะ",
"removeJoiner": "และ",
"removeSubmit": "ลบ",
"removeTitle": "ลบสถานะ",
"renameButton": "เปลี่ยนชื่อ",
"renameLabel": "ชื่อใหม่สำหรับ %s:",
"renameTitle": "เปลี่ยนชื่อสถานะ"
},
"thousands": ",",
"zeroRecords": "ไม่พบข้อมูล"
}
Contributing
If you have any ideas for how this plug-in can be improved please go to the translations plug-ins page and click the Contribute button to submit corrections and additions.