oc-lnc.js 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. //! moment.js locale configuration
  2. //! locale : Occitan, lengadocian dialecte [oc-lnc]
  3. //! author : Quentin PAGÈS : https://github.com/Quenty31
  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 ocLnc = moment.defineLocale('oc-lnc', {
  12. months: {
  13. standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
  14. '_'
  15. ),
  16. format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
  17. '_'
  18. ),
  19. isFormat: /D[oD]?(\s)+MMMM/,
  20. },
  21. monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
  22. '_'
  23. ),
  24. monthsParseExact: true,
  25. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
  26. '_'
  27. ),
  28. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  29. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  30. weekdaysParseExact: true,
  31. longDateFormat: {
  32. LT: 'H:mm',
  33. LTS: 'H:mm:ss',
  34. L: 'DD/MM/YYYY',
  35. LL: 'D MMMM [de] YYYY',
  36. ll: 'D MMM YYYY',
  37. LLL: 'D MMMM [de] YYYY [a] H:mm',
  38. lll: 'D MMM YYYY, H:mm',
  39. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  40. llll: 'ddd D MMM YYYY, H:mm',
  41. },
  42. calendar: {
  43. sameDay: '[uèi a] LT',
  44. nextDay: '[deman a] LT',
  45. nextWeek: 'dddd [a] LT',
  46. lastDay: '[ièr a] LT',
  47. lastWeek: 'dddd [passat a] LT',
  48. sameElse: 'L',
  49. },
  50. relativeTime: {
  51. future: "d'aquí %s",
  52. past: 'fa %s',
  53. s: 'unas segondas',
  54. ss: '%d segondas',
  55. m: 'una minuta',
  56. mm: '%d minutas',
  57. h: 'una ora',
  58. hh: '%d oras',
  59. d: 'un jorn',
  60. dd: '%d jorns',
  61. M: 'un mes',
  62. MM: '%d meses',
  63. y: 'un an',
  64. yy: '%d ans',
  65. },
  66. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  67. ordinal: function (number, period) {
  68. var output =
  69. number === 1
  70. ? 'r'
  71. : number === 2
  72. ? 'n'
  73. : number === 3
  74. ? 'r'
  75. : number === 4
  76. ? 't'
  77. : 'è';
  78. if (period === 'w' || period === 'W') {
  79. output = 'a';
  80. }
  81. return number + output;
  82. },
  83. week: {
  84. dow: 1, // Monday is the first day of the week.
  85. doy: 4,
  86. },
  87. });
  88. return ocLnc;
  89. })));