LaravelTest
121 строка · 4.5 Кб
1//! moment.js locale configuration
2//! locale : Uyghur (China) [ug-cn]
3//! author: boyaq : https://github.com/boyaq
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 ugCn = moment.defineLocale('ug-cn', {15months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(16'_'17),18monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(19'_'20),21weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(22'_'23),24weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),25weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),26longDateFormat: {27LT: 'HH:mm',28LTS: 'HH:mm:ss',29L: 'YYYY-MM-DD',30LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',31LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',32LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',33},34meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,35meridiemHour: function (hour, meridiem) {36if (hour === 12) {37hour = 0;38}39if (40meridiem === 'يېرىم كېچە' ||41meridiem === 'سەھەر' ||42meridiem === 'چۈشتىن بۇرۇن'43) {44return hour;45} else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {46return hour + 12;47} else {48return hour >= 11 ? hour : hour + 12;49}50},51meridiem: function (hour, minute, isLower) {52var hm = hour * 100 + minute;53if (hm < 600) {54return 'يېرىم كېچە';55} else if (hm < 900) {56return 'سەھەر';57} else if (hm < 1130) {58return 'چۈشتىن بۇرۇن';59} else if (hm < 1230) {60return 'چۈش';61} else if (hm < 1800) {62return 'چۈشتىن كېيىن';63} else {64return 'كەچ';65}66},67calendar: {68sameDay: '[بۈگۈن سائەت] LT',69nextDay: '[ئەتە سائەت] LT',70nextWeek: '[كېلەركى] dddd [سائەت] LT',71lastDay: '[تۆنۈگۈن] LT',72lastWeek: '[ئالدىنقى] dddd [سائەت] LT',73sameElse: 'L',74},75relativeTime: {76future: '%s كېيىن',77past: '%s بۇرۇن',78s: 'نەچچە سېكونت',79ss: '%d سېكونت',80m: 'بىر مىنۇت',81mm: '%d مىنۇت',82h: 'بىر سائەت',83hh: '%d سائەت',84d: 'بىر كۈن',85dd: '%d كۈن',86M: 'بىر ئاي',87MM: '%d ئاي',88y: 'بىر يىل',89yy: '%d يىل',90},91
92dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,93ordinal: function (number, period) {94switch (period) {95case 'd':96case 'D':97case 'DDD':98return number + '-كۈنى';99case 'w':100case 'W':101return number + '-ھەپتە';102default:103return number;104}105},106preparse: function (string) {107return string.replace(/،/g, ',');108},109postformat: function (string) {110return string.replace(/,/g, '،');111},112week: {113// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效114dow: 1, // Monday is the first day of the week.115doy: 7, // The week that contains Jan 1st is the first week of the year.116},117});118
119return ugCn;120
121})));122