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