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.
 
 
 

38 lines
1.6 KiB

// Thai [th]
import dayjs from '../index';
var locale = {
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 ordinal(n) {
return n + ".";
}
};
dayjs.locale(locale, null, true);
export default locale;