]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - resources/lib/moment/locale/fy.js
MediaWiki 1.30.2
[autoinstalls/mediawiki.git] / resources / lib / moment / locale / fy.js
1 //! moment.js locale configuration
2 //! locale : Frisian [fy]
3 //! author : Robin van der Vliet : https://github.com/robin0van0der0v
4
5 ;(function (global, factory) {
6    typeof exports === 'object' && typeof module !== 'undefined'
7        && typeof require === 'function' ? factory(require('../moment')) :
8    typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9    factory(global.moment)
10 }(this, (function (moment) { 'use strict';
11
12
13 var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_');
14 var monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
15
16 var fy = moment.defineLocale('fy', {
17     months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
18     monthsShort : function (m, format) {
19         if (!m) {
20             return monthsShortWithDots;
21         } else if (/-MMM-/.test(format)) {
22             return monthsShortWithoutDots[m.month()];
23         } else {
24             return monthsShortWithDots[m.month()];
25         }
26     },
27     monthsParseExact : true,
28     weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
29     weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
30     weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
31     weekdaysParseExact : true,
32     longDateFormat : {
33         LT : 'HH:mm',
34         LTS : 'HH:mm:ss',
35         L : 'DD-MM-YYYY',
36         LL : 'D MMMM YYYY',
37         LLL : 'D MMMM YYYY HH:mm',
38         LLLL : 'dddd D MMMM YYYY HH:mm'
39     },
40     calendar : {
41         sameDay: '[hjoed om] LT',
42         nextDay: '[moarn om] LT',
43         nextWeek: 'dddd [om] LT',
44         lastDay: '[juster om] LT',
45         lastWeek: '[ôfrûne] dddd [om] LT',
46         sameElse: 'L'
47     },
48     relativeTime : {
49         future : 'oer %s',
50         past : '%s lyn',
51         s : 'in pear sekonden',
52         m : 'ien minút',
53         mm : '%d minuten',
54         h : 'ien oere',
55         hh : '%d oeren',
56         d : 'ien dei',
57         dd : '%d dagen',
58         M : 'ien moanne',
59         MM : '%d moannen',
60         y : 'ien jier',
61         yy : '%d jierren'
62     },
63     dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
64     ordinal : function (number) {
65         return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
66     },
67     week : {
68         dow : 1, // Monday is the first day of the week.
69         doy : 4  // The week that contains Jan 4th is the first week of the year.
70     }
71 });
72
73 return fy;
74
75 })));