fr-ch.js 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //! moment.js locale configuration
  2. //! locale : French (Switzerland) [fr-ch]
  3. //! author : Gaspard Bucher : https://github.com/gaspard
  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 frCh = moment.defineLocale('fr-ch', {
  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: 'DD.MM.YYYY',
  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. week: {
  74. dow: 1, // Monday is the first day of the week.
  75. doy: 4, // The week that contains Jan 4th is the first week of the year.
  76. },
  77. });
  78. return frCh;
  79. })));