fy.js (2275B)
1//! moment.js locale configuration 2//! locale : Frisian [fy] 3//! author : Robin van der Vliet : https://github.com/robin0van0der0v 4 5import moment from '../moment'; 6 7var monthsShortWithDots = 8 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'), 9 monthsShortWithoutDots = 10 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'); 11 12export default moment.defineLocale('fy', { 13 months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split( 14 '_' 15 ), 16 monthsShort: function (m, format) { 17 if (!m) { 18 return monthsShortWithDots; 19 } else if (/-MMM-/.test(format)) { 20 return monthsShortWithoutDots[m.month()]; 21 } else { 22 return monthsShortWithDots[m.month()]; 23 } 24 }, 25 monthsParseExact: true, 26 weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split( 27 '_' 28 ), 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 ss: '%d sekonden', 53 m: 'ien minút', 54 mm: '%d minuten', 55 h: 'ien oere', 56 hh: '%d oeren', 57 d: 'ien dei', 58 dd: '%d dagen', 59 M: 'ien moanne', 60 MM: '%d moannen', 61 y: 'ien jier', 62 yy: '%d jierren', 63 }, 64 dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, 65 ordinal: function (number) { 66 return ( 67 number + 68 (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') 69 ); 70 }, 71 week: { 72 dow: 1, // Monday is the first day of the week. 73 doy: 4, // The week that contains Jan 4th is the first week of the year. 74 }, 75});