[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
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 13 var th = moment.defineLocale('th', { 14 months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'), 15 monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'), 16 monthsParseExact: true, 17 weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), 18 weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference 19 weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), 20 weekdaysParseExact : true, 21 longDateFormat : { 22 LT : 'H:mm', 23 LTS : 'H:mm:ss', 24 L : 'YYYY/MM/DD', 25 LL : 'D MMMM YYYY', 26 LLL : 'D MMMM YYYY เวลา H:mm', 27 LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm' 28 }, 29 meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, 30 isPM: function (input) { 31 return input === 'หลังเที่ยง'; 32 }, 33 meridiem : function (hour, minute, isLower) { 34 if (hour < 12) { 35 return 'ก่อนเที่ยง'; 36 } else { 37 return 'หลังเที่ยง'; 38 } 39 }, 40 calendar : { 41 sameDay : '[วันนี้ เวลา] LT', 42 nextDay : '[พรุ่งนี้ เวลา] LT', 43 nextWeek : 'dddd[หน้า เวลา] LT', 44 lastDay : '[เมื่อวานนี้ เวลา] LT', 45 lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT', 46 sameElse : 'L' 47 }, 48 relativeTime : { 49 future : 'อีก %s', 50 past : '%sที่แล้ว', 51 s : 'ไม่กี่วินาที', 52 m : '1 นาที', 53 mm : '%d นาที', 54 h : '1 ชั่วโมง', 55 hh : '%d ชั่วโมง', 56 d : '1 วัน', 57 dd : '%d วัน', 58 M : '1 เดือน', 59 MM : '%d เดือน', 60 y : '1 ปี', 61 yy : '%d ปี' 62 } 63 }); 64 65 return th; 66 67 }));
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 24 01:01:27 2023 | Cross-referenced by PHPXref 0.7.1 |