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