LaravelTest
102 строки · 3.1 Кб
1//! moment.js locale configuration
2//! locale : Turkmen [tk]
3//! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy
4
5;(function (global, factory) {6typeof exports === 'object' && typeof module !== 'undefined'7&& typeof require === 'function' ? factory(require('../moment')) :8typeof define === 'function' && define.amd ? define(['../moment'], factory) :9factory(global.moment)10}(this, (function (moment) { 'use strict';11
12//! moment.js locale configuration13
14var suffixes = {151: "'inji",165: "'inji",178: "'inji",1870: "'inji",1980: "'inji",202: "'nji",217: "'nji",2220: "'nji",2350: "'nji",243: "'ünji",254: "'ünji",26100: "'ünji",276: "'njy",289: "'unjy",2910: "'unjy",3030: "'unjy",3160: "'ynjy",3290: "'ynjy",33};34
35var tk = moment.defineLocale('tk', {36months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(37'_'38),39monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),40weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(41'_'42),43weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),44weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),45longDateFormat: {46LT: 'HH:mm',47LTS: 'HH:mm:ss',48L: 'DD.MM.YYYY',49LL: 'D MMMM YYYY',50LLL: 'D MMMM YYYY HH:mm',51LLLL: 'dddd, D MMMM YYYY HH:mm',52},53calendar: {54sameDay: '[bugün sagat] LT',55nextDay: '[ertir sagat] LT',56nextWeek: '[indiki] dddd [sagat] LT',57lastDay: '[düýn] LT',58lastWeek: '[geçen] dddd [sagat] LT',59sameElse: 'L',60},61relativeTime: {62future: '%s soň',63past: '%s öň',64s: 'birnäçe sekunt',65m: 'bir minut',66mm: '%d minut',67h: 'bir sagat',68hh: '%d sagat',69d: 'bir gün',70dd: '%d gün',71M: 'bir aý',72MM: '%d aý',73y: 'bir ýyl',74yy: '%d ýyl',75},76ordinal: function (number, period) {77switch (period) {78case 'd':79case 'D':80case 'Do':81case 'DD':82return number;83default:84if (number === 0) {85// special case for zero86return number + "'unjy";87}88var a = number % 10,89b = (number % 100) - a,90c = number >= 100 ? 100 : null;91return number + (suffixes[a] || suffixes[b] || suffixes[c]);92}93},94week: {95dow: 1, // Monday is the first day of the week.96doy: 7, // The week that contains Jan 7th is the first week of the year.97},98});99
100return tk;101
102})));103