LaravelTest
100 строк · 3.7 Кб
1//! moment.js locale configuration
2//! locale : Talossan [tzl]
3//! author : Robin van der Vliet : https://github.com/robin0van0der0v
4//! author : Iustì Canun
5
6;(function (global, factory) {7typeof exports === 'object' && typeof module !== 'undefined'8&& typeof require === 'function' ? factory(require('../moment')) :9typeof define === 'function' && define.amd ? define(['../moment'], factory) :10factory(global.moment)11}(this, (function (moment) { 'use strict';12
13//! moment.js locale configuration14
15// After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.16// This is currently too difficult (maybe even impossible) to add.17var tzl = moment.defineLocale('tzl', {18months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(19'_'20),21monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),22weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),23weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),24weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),25longDateFormat: {26LT: 'HH.mm',27LTS: 'HH.mm.ss',28L: 'DD.MM.YYYY',29LL: 'D. MMMM [dallas] YYYY',30LLL: 'D. MMMM [dallas] YYYY HH.mm',31LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',32},33meridiemParse: /d\'o|d\'a/i,34isPM: function (input) {35return "d'o" === input.toLowerCase();36},37meridiem: function (hours, minutes, isLower) {38if (hours > 11) {39return isLower ? "d'o" : "D'O";40} else {41return isLower ? "d'a" : "D'A";42}43},44calendar: {45sameDay: '[oxhi à] LT',46nextDay: '[demà à] LT',47nextWeek: 'dddd [à] LT',48lastDay: '[ieiri à] LT',49lastWeek: '[sür el] dddd [lasteu à] LT',50sameElse: 'L',51},52relativeTime: {53future: 'osprei %s',54past: 'ja%s',55s: processRelativeTime,56ss: processRelativeTime,57m: processRelativeTime,58mm: processRelativeTime,59h: processRelativeTime,60hh: processRelativeTime,61d: processRelativeTime,62dd: processRelativeTime,63M: processRelativeTime,64MM: processRelativeTime,65y: processRelativeTime,66yy: processRelativeTime,67},68dayOfMonthOrdinalParse: /\d{1,2}\./,69ordinal: '%d.',70week: {71dow: 1, // Monday is the first day of the week.72doy: 4, // The week that contains Jan 4th is the first week of the year.73},74});75
76function processRelativeTime(number, withoutSuffix, key, isFuture) {77var format = {78s: ['viensas secunds', "'iensas secunds"],79ss: [number + ' secunds', '' + number + ' secunds'],80m: ["'n míut", "'iens míut"],81mm: [number + ' míuts', '' + number + ' míuts'],82h: ["'n þora", "'iensa þora"],83hh: [number + ' þoras', '' + number + ' þoras'],84d: ["'n ziua", "'iensa ziua"],85dd: [number + ' ziuas', '' + number + ' ziuas'],86M: ["'n mes", "'iens mes"],87MM: [number + ' mesen', '' + number + ' mesen'],88y: ["'n ar", "'iens ar"],89yy: [number + ' ars', '' + number + ' ars'],90};91return isFuture92? format[key][0]93: withoutSuffix94? format[key][0]95: format[key][1];96}97
98return tzl;99
100})));101