UNPKG

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