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('_'),
20 LL : 'D. MMMM [dallas] YYYY',
21 LLL : 'D. MMMM [dallas] YYYY HH.mm',
22 LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
24 meridiemParse: /d\'o|d\'a/i,
25 isPM : function (input) {
26 return 'd\'o' === input.toLowerCase();
28 meridiem : function (hours, minutes, isLower) {
30 return isLower ? 'd\'o' : 'D\'O';
32 return isLower ? 'd\'a' : 'D\'A';
36 sameDay : '[oxhi à] LT',
37 nextDay : '[demà à] LT',
38 nextWeek : 'dddd [à] LT',
39 lastDay : '[ieiri à] LT',
40 lastWeek : '[sür el] dddd [lasteu à] LT',
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
58 ordinalParse: /\d{1,2}\./,
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.
66 function processRelativeTime(number, withoutSuffix, key, isFuture) {
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']
80 return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);