1 //! moment.js locale configuration
2 //! locale : frisian (fy)
3 //! author : Robin van der Vliet : https://github.com/robin0van0der0v
5 import moment from '../moment';
7 var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
8 monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
10 export default moment.defineLocale('fy', {
11 months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
12 monthsShort : function (m, format) {
13 if (/-MMM-/.test(format)) {
14 return monthsShortWithoutDots[m.month()];
16 return monthsShortWithDots[m.month()];
19 monthsParseExact : true,
20 weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
21 weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
22 weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
23 weekdaysParseExact : true,
29 LLL : 'D MMMM YYYY HH:mm',
30 LLLL : 'dddd D MMMM YYYY HH:mm'
33 sameDay: '[hjoed om] LT',
34 nextDay: '[moarn om] LT',
35 nextWeek: 'dddd [om] LT',
36 lastDay: '[juster om] LT',
37 lastWeek: '[ôfrûne] dddd [om] LT',
43 s : 'in pear sekonden',
55 ordinalParse: /\d{1,2}(ste|de)/,
56 ordinal : function (number) {
57 return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
60 dow : 1, // Monday is the first day of the week.
61 doy : 4 // The week that contains Jan 4th is the first week of the year.