2019-06-10 15:38:54 +00:00
|
|
|
|
//! moment.js locale configuration
|
2020-07-23 21:12:30 +00:00
|
|
|
|
//! locale : French (Canada) [fr-ca]
|
|
|
|
|
//! author : Jonathan Abourbih : https://github.com/jonbca
|
2019-06-10 15:38:54 +00:00
|
|
|
|
|
|
|
|
|
;(function (global, factory) {
|
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
|
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
|
|
|
|
factory(global.moment)
|
|
|
|
|
}(this, (function (moment) { 'use strict';
|
|
|
|
|
|
2020-07-23 21:12:30 +00:00
|
|
|
|
//! moment.js locale configuration
|
2019-06-10 15:38:54 +00:00
|
|
|
|
|
|
|
|
|
var frCa = moment.defineLocale('fr-ca', {
|
2020-07-23 21:12:30 +00:00
|
|
|
|
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
|
|
|
|
monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
|
|
|
|
monthsParseExact: true,
|
|
|
|
|
weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
|
|
|
|
|
weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
|
|
|
|
|
weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
|
|
|
|
|
weekdaysParseExact: true,
|
|
|
|
|
longDateFormat: {
|
|
|
|
|
LT: 'HH:mm',
|
|
|
|
|
LTS: 'HH:mm:ss',
|
|
|
|
|
L: 'YYYY-MM-DD',
|
|
|
|
|
LL: 'D MMMM YYYY',
|
|
|
|
|
LLL: 'D MMMM YYYY HH:mm',
|
|
|
|
|
LLLL: 'dddd D MMMM YYYY HH:mm',
|
2019-06-10 15:38:54 +00:00
|
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
|
calendar: {
|
|
|
|
|
sameDay: '[Aujourd’hui à] LT',
|
|
|
|
|
nextDay: '[Demain à] LT',
|
|
|
|
|
nextWeek: 'dddd [à] LT',
|
|
|
|
|
lastDay: '[Hier à] LT',
|
|
|
|
|
lastWeek: 'dddd [dernier à] LT',
|
|
|
|
|
sameElse: 'L',
|
2019-06-10 15:38:54 +00:00
|
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
|
relativeTime: {
|
|
|
|
|
future: 'dans %s',
|
|
|
|
|
past: 'il y a %s',
|
|
|
|
|
s: 'quelques secondes',
|
|
|
|
|
ss: '%d secondes',
|
|
|
|
|
m: 'une minute',
|
|
|
|
|
mm: '%d minutes',
|
|
|
|
|
h: 'une heure',
|
|
|
|
|
hh: '%d heures',
|
|
|
|
|
d: 'un jour',
|
|
|
|
|
dd: '%d jours',
|
|
|
|
|
M: 'un mois',
|
|
|
|
|
MM: '%d mois',
|
|
|
|
|
y: 'un an',
|
|
|
|
|
yy: '%d ans',
|
2019-06-10 15:38:54 +00:00
|
|
|
|
},
|
|
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
|
2020-07-23 21:12:30 +00:00
|
|
|
|
ordinal: function (number, period) {
|
2019-06-10 15:38:54 +00:00
|
|
|
|
switch (period) {
|
|
|
|
|
// Words with masculine grammatical gender: mois, trimestre, jour
|
|
|
|
|
default:
|
|
|
|
|
case 'M':
|
|
|
|
|
case 'Q':
|
|
|
|
|
case 'D':
|
|
|
|
|
case 'DDD':
|
|
|
|
|
case 'd':
|
|
|
|
|
return number + (number === 1 ? 'er' : 'e');
|
|
|
|
|
|
|
|
|
|
// Words with feminine grammatical gender: semaine
|
|
|
|
|
case 'w':
|
|
|
|
|
case 'W':
|
|
|
|
|
return number + (number === 1 ? 're' : 'e');
|
|
|
|
|
}
|
2020-07-23 21:12:30 +00:00
|
|
|
|
},
|
2019-06-10 15:38:54 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return frCa;
|
|
|
|
|
|
|
|
|
|
})));
|