2016-02-05 15:42:48 -05:00
|
|
|
|
//! moment.js locale configuration
|
2020-11-10 20:34:26 -05:00
|
|
|
|
//! locale : French [fr]
|
|
|
|
|
//! author : John Fischer : https://github.com/jfroffice
|
2013-06-07 04:03:09 -04:00
|
|
|
|
|
2016-02-05 15:42:48 -05:00
|
|
|
|
;(function (global, factory) {
|
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 00:24:20 -04:00
|
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-05 15:42:48 -05:00
|
|
|
|
factory(global.moment)
|
2017-04-20 00:24:20 -04:00
|
|
|
|
}(this, (function (moment) { 'use strict';
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2020-11-10 20:34:26 -05:00
|
|
|
|
//! moment.js locale configuration
|
|
|
|
|
|
2022-04-11 13:27:24 -04:00
|
|
|
|
var monthsStrictRegex =
|
|
|
|
|
/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
|
|
|
|
|
monthsShortStrictRegex =
|
|
|
|
|
/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
|
|
|
|
|
monthsRegex =
|
|
|
|
|
/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
|
2020-11-10 20:34:26 -05:00
|
|
|
|
monthsParse = [
|
|
|
|
|
/^janv/i,
|
|
|
|
|
/^févr/i,
|
|
|
|
|
/^mars/i,
|
|
|
|
|
/^avr/i,
|
|
|
|
|
/^mai/i,
|
|
|
|
|
/^juin/i,
|
|
|
|
|
/^juil/i,
|
|
|
|
|
/^août/i,
|
|
|
|
|
/^sept/i,
|
|
|
|
|
/^oct/i,
|
|
|
|
|
/^nov/i,
|
|
|
|
|
/^déc/i,
|
|
|
|
|
];
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
|
var fr = moment.defineLocale('fr', {
|
2020-11-10 20:34:26 -05:00
|
|
|
|
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
2022-04-11 13:27:24 -04:00
|
|
|
|
monthsShort:
|
|
|
|
|
'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
2020-11-10 20:34:26 -05:00
|
|
|
|
monthsRegex: monthsRegex,
|
|
|
|
|
monthsShortRegex: monthsRegex,
|
|
|
|
|
monthsStrictRegex: monthsStrictRegex,
|
|
|
|
|
monthsShortStrictRegex: monthsShortStrictRegex,
|
|
|
|
|
monthsParse: monthsParse,
|
|
|
|
|
longMonthsParse: monthsParse,
|
|
|
|
|
shortMonthsParse: monthsParse,
|
|
|
|
|
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: 'DD/MM/YYYY',
|
|
|
|
|
LL: 'D MMMM YYYY',
|
|
|
|
|
LLL: 'D MMMM YYYY HH:mm',
|
|
|
|
|
LLLL: 'dddd D MMMM YYYY HH:mm',
|
2018-04-26 03:15:53 -04:00
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
calendar: {
|
|
|
|
|
sameDay: '[Aujourd’hui à] LT',
|
|
|
|
|
nextDay: '[Demain à] LT',
|
|
|
|
|
nextWeek: 'dddd [à] LT',
|
|
|
|
|
lastDay: '[Hier à] LT',
|
|
|
|
|
lastWeek: 'dddd [dernier à] LT',
|
|
|
|
|
sameElse: 'L',
|
2018-04-26 03:15:53 -04:00
|
|
|
|
},
|
2020-11-10 20:34:26 -05: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',
|
|
|
|
|
w: 'une semaine',
|
|
|
|
|
ww: '%d semaines',
|
|
|
|
|
M: 'un mois',
|
|
|
|
|
MM: '%d mois',
|
|
|
|
|
y: 'un an',
|
|
|
|
|
yy: '%d ans',
|
2018-04-26 03:15:53 -04:00
|
|
|
|
},
|
|
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
|
2020-11-10 20:34:26 -05:00
|
|
|
|
ordinal: function (number, period) {
|
2018-04-26 03:15:53 -04:00
|
|
|
|
switch (period) {
|
|
|
|
|
// TODO: Return 'e' when day of month > 1. Move this case inside
|
|
|
|
|
// block for masculine words below.
|
|
|
|
|
// See https://github.com/moment/moment/issues/3375
|
|
|
|
|
case 'D':
|
|
|
|
|
return number + (number === 1 ? 'er' : '');
|
2017-04-20 00:24:20 -04:00
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
|
// Words with masculine grammatical gender: mois, trimestre, jour
|
|
|
|
|
default:
|
|
|
|
|
case 'M':
|
|
|
|
|
case 'Q':
|
|
|
|
|
case 'DDD':
|
|
|
|
|
case 'd':
|
|
|
|
|
return number + (number === 1 ? 'er' : 'e');
|
2017-04-20 00:24:20 -04:00
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
|
// Words with feminine grammatical gender: semaine
|
|
|
|
|
case 'w':
|
|
|
|
|
case 'W':
|
|
|
|
|
return number + (number === 1 ? 're' : 'e');
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
week: {
|
|
|
|
|
dow: 1, // Monday is the first day of the week.
|
|
|
|
|
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
|
|
|
},
|
2018-04-26 03:15:53 -04:00
|
|
|
|
});
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
|
return fr;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
|
})));
|