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