Debian Codegraph @

resources/lib/moment/locale/oc-lnc.js

raw symbols SCIP
1 //! moment.js locale configuration
2 //! locale : Occitan, lengadocian dialecte [oc-lnc]
3 //! author : Quentin PAGÈS : https://github.com/Quenty31
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 ocLnc = moment.defineLocale('oc-lnc', {
15 months: {
16 standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
17 '_'
18 ),
19 format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
20 '_'
21 ),
22 isFormat: /D[oD]?(\s)+MMMM/,
23 },
24 monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
25 '_'
26 ),
27 monthsParseExact: true,
28 weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
29 '_'
30 ),
31 weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
32 weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
33 weekdaysParseExact: true,
34 longDateFormat: {
35 LT: 'H:mm',
36 LTS: 'H:mm:ss',
37 L: 'DD/MM/YYYY',
38 LL: 'D MMMM [de] YYYY',
39 ll: 'D MMM YYYY',
40 LLL: 'D MMMM [de] YYYY [a] H:mm',
41 lll: 'D MMM YYYY, H:mm',
42 LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
43 llll: 'ddd D MMM YYYY, H:mm',
44 },
45 calendar: {
46 sameDay: '[uèi a] LT',
47 nextDay: '[deman a] LT',
48 nextWeek: 'dddd [a] LT',
49 lastDay: '[ièr a] LT',
50 lastWeek: 'dddd [passat a] LT',
51 sameElse: 'L',
52 },
53 relativeTime: {
54 future: "d'aquí %s",
55 past: 'fa %s',
56 s: 'unas segondas',
57 ss: '%d segondas',
58 m: 'una minuta',
59 mm: '%d minutas',
60 h: 'una ora',
61 hh: '%d oras',
62 d: 'un jorn',
63 dd: '%d jorns',
64 M: 'un mes',
65 MM: '%d meses',
66 y: 'un an',
67 yy: '%d ans',
68 },
69 dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
70 ordinal: function (number, period) {
71 var output =
72 number === 1
73 ? 'r'
74 : number === 2
75 ? 'n'
76 : number === 3
77 ? 'r'
78 : number === 4
79 ? 't'
80 : 'è';
81 if (period === 'w' || period === 'W') {
82 output = 'a';
83 }
84 return number + output;
85 },
86 week: {
87 dow: 1, // Monday is the first day of the week.
88 doy: 4,
89 },
90 });
91
92 return ocLnc;
93
94 })));