Debian Codegraph @

resources/lib/moment/locale/th.js

raw symbols SCIP
1 //! moment.js locale configuration
2 //! locale : Thai [th]
3 //! author : Kridsada Thanabulpong : https://github.com/sirn
4
5 ;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9 factory(global.moment)
10 }(this, (function (moment) { 'use strict';
11
12 //! moment.js locale configuration
13
14 var th = moment.defineLocale('th', {
15 months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
16 '_'
17 ),
18 monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
19 '_'
20 ),
21 monthsParseExact: true,
22 weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
23 weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
24 weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
25 weekdaysParseExact: true,
26 longDateFormat: {
27 LT: 'H:mm',
28 LTS: 'H:mm:ss',
29 L: 'DD/MM/YYYY',
30 LL: 'D MMMM YYYY',
31 LLL: 'D MMMM YYYY เวลา H:mm',
32 LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
33 },
34 meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
35 isPM: function (input) {
36 return input === 'หลังเที่ยง';
37 },
38 meridiem: function (hour, minute, isLower) {
39 if (hour < 12) {
40 return 'ก่อนเที่ยง';
41 } else {
42 return 'หลังเที่ยง';
43 }
44 },
45 calendar: {
46 sameDay: '[วันนี้ เวลา] LT',
47 nextDay: '[พรุ่งนี้ เวลา] LT',
48 nextWeek: 'dddd[หน้า เวลา] LT',
49 lastDay: '[เมื่อวานนี้ เวลา] LT',
50 lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
51 sameElse: 'L',
52 },
53 relativeTime: {
54 future: 'อีก %s',
55 past: '%sที่แล้ว',
56 s: 'ไม่กี่วินาที',
57 ss: '%d วินาที',
58 m: '1 นาที',
59 mm: '%d นาที',
60 h: '1 ชั่วโมง',
61 hh: '%d ชั่วโมง',
62 d: '1 วัน',
63 dd: '%d วัน',
64 M: '1 เดือน',
65 MM: '%d เดือน',
66 y: '1 ปี',
67 yy: '%d ปี',
68 },
69 });
70
71 return th;
72
73 })));