x-pseudo.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. //! moment.js locale configuration
  2. //! locale : Pseudo [x-pseudo]
  3. //! author : Andrew Hood : https://github.com/andrewhood125
  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 xPseudo = moment.defineLocale('x-pseudo', {
  12. months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(
  13. '_'
  14. ),
  15. monthsShort:
  16. 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
  17. '_'
  18. ),
  19. monthsParseExact: true,
  20. weekdays:
  21. 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
  22. '_'
  23. ),
  24. weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  25. weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  26. weekdaysParseExact: true,
  27. longDateFormat: {
  28. LT: 'HH:mm',
  29. L: 'DD/MM/YYYY',
  30. LL: 'D MMMM YYYY',
  31. LLL: 'D MMMM YYYY HH:mm',
  32. LLLL: 'dddd, D MMMM YYYY HH:mm',
  33. },
  34. calendar: {
  35. sameDay: '[T~ódá~ý át] LT',
  36. nextDay: '[T~ómó~rró~w át] LT',
  37. nextWeek: 'dddd [át] LT',
  38. lastDay: '[Ý~ést~érdá~ý át] LT',
  39. lastWeek: '[L~ást] dddd [át] LT',
  40. sameElse: 'L',
  41. },
  42. relativeTime: {
  43. future: 'í~ñ %s',
  44. past: '%s á~gó',
  45. s: 'á ~féw ~sécó~ñds',
  46. ss: '%d s~écóñ~ds',
  47. m: 'á ~míñ~úté',
  48. mm: '%d m~íñú~tés',
  49. h: 'á~ñ hó~úr',
  50. hh: '%d h~óúrs',
  51. d: 'á ~dáý',
  52. dd: '%d d~áýs',
  53. M: 'á ~móñ~th',
  54. MM: '%d m~óñt~hs',
  55. y: 'á ~ýéár',
  56. yy: '%d ý~éárs',
  57. },
  58. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  59. ordinal: function (number) {
  60. var b = number % 10,
  61. output =
  62. ~~((number % 100) / 10) === 1
  63. ? 'th'
  64. : b === 1
  65. ? 'st'
  66. : b === 2
  67. ? 'nd'
  68. : b === 3
  69. ? 'rd'
  70. : 'th';
  71. return number + output;
  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 xPseudo;
  79. })));