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.

64 lines
3.1 KiB

3 weeks ago
//! moment.js locale configuration
//! locale : thai (th)
//! author : Kridsada Thanabulpong : https://github.com/sirn
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['moment'], factory) :
factory(global.moment)
}(this, function (moment) { 'use strict';
var th = moment.defineLocale('th', {
months : '___________'.split('_'),
monthsShort : '___________'.split('_'),
weekdays : '______'.split('_'),
weekdaysShort : '______'.split('_'), // yes, three characters difference
weekdaysMin : '._._._._._._.'.split('_'),
longDateFormat : {
LT : 'H m ',
LTS : 'H m s ',
L : 'YYYY/MM/DD',
LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY H m ',
LLLL : 'ddddท D MMMM YYYY H m '
},
meridiemParse: /|/,
isPM: function (input) {
return input === '';
},
meridiem : function (hour, minute, isLower) {
if (hour < 12) {
return '';
} else {
return '';
}
},
calendar : {
sameDay : '[ ] LT',
nextDay : '[ ] LT',
nextWeek : 'dddd[ ] LT',
lastDay : '[ ] LT',
lastWeek : '[]dddd[ ] LT',
sameElse : 'L'
},
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 '
}
});
return th;
}));