Debian Codegraph @

resources/lib/moment/locale/fr-ca.js

raw symbols SCIP
1 //! moment.js locale configuration
2 //! locale : French (Canada) [fr-ca]
3 //! author : Jonathan Abourbih : https://github.com/jonbca
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 frCa = moment.defineLocale('fr-ca', {
15 months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
16 '_'
17 ),
18 monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
19 '_'
20 ),
21 monthsParseExact: true,
22 weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
23 weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
24 weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
25 weekdaysParseExact: true,
26 longDateFormat: {
27 LT: 'HH:mm',
28 LTS: 'HH:mm:ss',
29 L: 'YYYY-MM-DD',
30 LL: 'D MMMM YYYY',
31 LLL: 'D MMMM YYYY HH:mm',
32 LLLL: 'dddd D MMMM YYYY HH:mm',
33 },
34 calendar: {
35 sameDay: '[Aujourd’hui à] LT',
36 nextDay: '[Demain à] LT',
37 nextWeek: 'dddd [à] LT',
38 lastDay: '[Hier à] LT',
39 lastWeek: 'dddd [dernier à] LT',
40 sameElse: 'L',
41 },
42 relativeTime: {
43 future: 'dans %s',
44 past: 'il y a %s',
45 s: 'quelques secondes',
46 ss: '%d secondes',
47 m: 'une minute',
48 mm: '%d minutes',
49 h: 'une heure',
50 hh: '%d heures',
51 d: 'un jour',
52 dd: '%d jours',
53 M: 'un mois',
54 MM: '%d mois',
55 y: 'un an',
56 yy: '%d ans',
57 },
58 dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
59 ordinal: function (number, period) {
60 switch (period) {
61 // Words with masculine grammatical gender: mois, trimestre, jour
62 default:
63 case 'M':
64 case 'Q':
65 case 'D':
66 case 'DDD':
67 case 'd':
68 return number + (number === 1 ? 'er' : 'e');
69
70 // Words with feminine grammatical gender: semaine
71 case 'w':
72 case 'W':
73 return number + (number === 1 ? 're' : 'e');
74 }
75 },
76 });
77
78 return frCa;
79
80 })));