cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

th.js (3316B)


      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:
     19            'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
     20                '_'
     21            ),
     22        monthsParseExact: true,
     23        weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
     24        weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
     25        weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
     26        weekdaysParseExact: true,
     27        longDateFormat: {
     28            LT: 'H:mm',
     29            LTS: 'H:mm:ss',
     30            L: 'DD/MM/YYYY',
     31            LL: 'D MMMM YYYY',
     32            LLL: 'D MMMM YYYY เวลา H:mm',
     33            LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
     34        },
     35        meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
     36        isPM: function (input) {
     37            return input === 'หลังเที่ยง';
     38        },
     39        meridiem: function (hour, minute, isLower) {
     40            if (hour < 12) {
     41                return 'ก่อนเที่ยง';
     42            } else {
     43                return 'หลังเที่ยง';
     44            }
     45        },
     46        calendar: {
     47            sameDay: '[วันนี้ เวลา] LT',
     48            nextDay: '[พรุ่งนี้ เวลา] LT',
     49            nextWeek: 'dddd[หน้า เวลา] LT',
     50            lastDay: '[เมื่อวานนี้ เวลา] LT',
     51            lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
     52            sameElse: 'L',
     53        },
     54        relativeTime: {
     55            future: 'อีก %s',
     56            past: '%sที่แล้ว',
     57            s: 'ไม่กี่วินาที',
     58            ss: '%d วินาที',
     59            m: '1 นาที',
     60            mm: '%d นาที',
     61            h: '1 ชั่วโมง',
     62            hh: '%d ชั่วโมง',
     63            d: '1 วัน',
     64            dd: '%d วัน',
     65            w: '1 สัปดาห์',
     66            ww: '%d สัปดาห์',
     67            M: '1 เดือน',
     68            MM: '%d เดือน',
     69            y: '1 ปี',
     70            yy: '%d ปี',
     71        },
     72    });
     73
     74    return th;
     75
     76})));