You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.3 KiB
58 lines
2.3 KiB
!(function (_, e) {
|
|
if ('object' == typeof exports && 'undefined' != typeof module) {
|
|
module.exports = e(require('dayjs'));
|
|
} else {
|
|
if ('function' == typeof define && define.amd) {
|
|
define(['dayjs'], e);
|
|
} else {
|
|
(_ = 'undefined' != typeof globalThis ? globalThis : _ || self).dayjs_locale_th = e(_.dayjs);
|
|
}
|
|
}
|
|
})(this, function (_) {
|
|
'use strict';
|
|
|
|
function e(_) {
|
|
return _ && 'object' == typeof _ && 'default' in _
|
|
? _
|
|
: {
|
|
default: _
|
|
};
|
|
}
|
|
var t = e(_);
|
|
var d = {
|
|
name: 'th',
|
|
weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
|
|
weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'),
|
|
weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
|
|
months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
|
|
monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
|
|
formats: {
|
|
LT: 'H:mm',
|
|
LTS: 'H:mm:ss',
|
|
L: 'DD/MM/YYYY',
|
|
LL: 'D MMMM YYYY',
|
|
LLL: 'D MMMM YYYY เวลา H:mm',
|
|
LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm'
|
|
},
|
|
relativeTime: {
|
|
future: 'อีก %s',
|
|
past: '%sที่แล้ว',
|
|
s: 'ไม่กี่วินาที',
|
|
m: '1 นาที',
|
|
mm: '%d นาที',
|
|
h: '1 ชั่วโมง',
|
|
hh: '%d ชั่วโมง',
|
|
d: '1 วัน',
|
|
dd: '%d วัน',
|
|
M: '1 เดือน',
|
|
MM: '%d เดือน',
|
|
y: '1 ปี',
|
|
yy: '%d ปี'
|
|
},
|
|
ordinal: function (_) {
|
|
return _ + '.';
|
|
}
|
|
};
|
|
t.default.locale(d, null, true);
|
|
return d;
|
|
});
|
|
|