Debian Codegraph @

resources/lib/moment/locale/fy.js

raw symbols SCIP
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 //! moment.js locale configuration
13
14 var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(
15 '_'
16 ),
17 monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(
18 '_'
19 );
20
21 var fy = moment.defineLocale('fy', {
22 months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
23 '_'
24 ),
25 monthsShort: function (m, format) {
26 if (!m) {
27 return monthsShortWithDots;
28 } else if (/-MMM-/.test(format)) {
29 return monthsShortWithoutDots[m.month()];
30 } else {
31 return monthsShortWithDots[m.month()];
32 }
33 },
34 monthsParseExact: true,
35 weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
36 '_'
37 ),
38 weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
39 weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
40 weekdaysParseExact: true,
41 longDateFormat: {
42 LT: 'HH:mm',
43 LTS: 'HH:mm:ss',
44 L: 'DD-MM-YYYY',
45 LL: 'D MMMM YYYY',
46 LLL: 'D MMMM YYYY HH:mm',
47 LLLL: 'dddd D MMMM YYYY HH:mm',
48 },
49 calendar: {
50 sameDay: '[hjoed om] LT',
51 nextDay: '[moarn om] LT',
52 nextWeek: 'dddd [om] LT',
53 lastDay: '[juster om] LT',
54 lastWeek: '[ôfrûne] dddd [om] LT',
55 sameElse: 'L',
56 },
57 relativeTime: {
58 future: 'oer %s',
59 past: '%s lyn',
60 s: 'in pear sekonden',
61 ss: '%d sekonden',
62 m: 'ien minút',
63 mm: '%d minuten',
64 h: 'ien oere',
65 hh: '%d oeren',
66 d: 'ien dei',
67 dd: '%d dagen',
68 M: 'ien moanne',
69 MM: '%d moannen',
70 y: 'ien jier',
71 yy: '%d jierren',
72 },
73 dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
74 ordinal: function (number) {
75 return (
76 number +
77 (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
78 );
79 },
80 week: {
81 dow: 1, // Monday is the first day of the week.
82 doy: 4, // The week that contains Jan 4th is the first week of the year.
83 },
84 });
85
86 return fy;
87
88 })));