cscg24-guacamole

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

tk.js (3168B)


      1//! moment.js locale configuration
      2//! locale : Turkmen [tk]
      3//! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy
      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 suffixes = {
     15        1: "'inji",
     16        5: "'inji",
     17        8: "'inji",
     18        70: "'inji",
     19        80: "'inji",
     20        2: "'nji",
     21        7: "'nji",
     22        20: "'nji",
     23        50: "'nji",
     24        3: "'ünji",
     25        4: "'ünji",
     26        100: "'ünji",
     27        6: "'njy",
     28        9: "'unjy",
     29        10: "'unjy",
     30        30: "'unjy",
     31        60: "'ynjy",
     32        90: "'ynjy",
     33    };
     34
     35    var tk = moment.defineLocale('tk', {
     36        months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
     37            '_'
     38        ),
     39        monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
     40        weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
     41            '_'
     42        ),
     43        weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
     44        weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
     45        longDateFormat: {
     46            LT: 'HH:mm',
     47            LTS: 'HH:mm:ss',
     48            L: 'DD.MM.YYYY',
     49            LL: 'D MMMM YYYY',
     50            LLL: 'D MMMM YYYY HH:mm',
     51            LLLL: 'dddd, D MMMM YYYY HH:mm',
     52        },
     53        calendar: {
     54            sameDay: '[bugün sagat] LT',
     55            nextDay: '[ertir sagat] LT',
     56            nextWeek: '[indiki] dddd [sagat] LT',
     57            lastDay: '[düýn] LT',
     58            lastWeek: '[geçen] dddd [sagat] LT',
     59            sameElse: 'L',
     60        },
     61        relativeTime: {
     62            future: '%s soň',
     63            past: '%s öň',
     64            s: 'birnäçe sekunt',
     65            m: 'bir minut',
     66            mm: '%d minut',
     67            h: 'bir sagat',
     68            hh: '%d sagat',
     69            d: 'bir gün',
     70            dd: '%d gün',
     71            M: 'bir aý',
     72            MM: '%d aý',
     73            y: 'bir ýyl',
     74            yy: '%d ýyl',
     75        },
     76        ordinal: function (number, period) {
     77            switch (period) {
     78                case 'd':
     79                case 'D':
     80                case 'Do':
     81                case 'DD':
     82                    return number;
     83                default:
     84                    if (number === 0) {
     85                        // special case for zero
     86                        return number + "'unjy";
     87                    }
     88                    var a = number % 10,
     89                        b = (number % 100) - a,
     90                        c = number >= 100 ? 100 : null;
     91                    return number + (suffixes[a] || suffixes[b] || suffixes[c]);
     92            }
     93        },
     94        week: {
     95            dow: 1, // Monday is the first day of the week.
     96            doy: 7, // The week that contains Jan 7th is the first week of the year.
     97        },
     98    });
     99
    100    return tk;
    101
    102})));