Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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