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.

67 lines
2.7 KiB

  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. var x_pseudo = moment.defineLocale('x-pseudo', {
  11. 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('_'),
  12. monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
  13. monthsParseExact : true,
  14. weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
  15. weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  16. weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  17. weekdaysParseExact : true,
  18. longDateFormat : {
  19. LT : 'HH:mm',
  20. L : 'DD/MM/YYYY',
  21. LL : 'D MMMM YYYY',
  22. LLL : 'D MMMM YYYY HH:mm',
  23. LLLL : 'dddd, D MMMM YYYY HH:mm'
  24. },
  25. calendar : {
  26. sameDay : '[T~ódá~ý át] LT',
  27. nextDay : '[T~ómó~rró~w át] LT',
  28. nextWeek : 'dddd [át] LT',
  29. lastDay : '[Ý~ést~érdá~ý át] LT',
  30. lastWeek : '[L~ást] dddd [át] LT',
  31. sameElse : 'L'
  32. },
  33. relativeTime : {
  34. future : 'í~ñ %s',
  35. past : '%s á~gó',
  36. s : 'á ~féw ~sécó~ñds',
  37. m : 'á ~míñ~úté',
  38. mm : '%d m~íñú~tés',
  39. h : 'á~ñ hó~úr',
  40. hh : '%d h~óúrs',
  41. d : 'á ~dáý',
  42. dd : '%d d~áýs',
  43. M : 'á ~móñ~th',
  44. MM : '%d m~óñt~hs',
  45. y : 'á ~ýéár',
  46. yy : '%d ý~éárs'
  47. },
  48. ordinalParse: /\d{1,2}(th|st|nd|rd)/,
  49. ordinal : function (number) {
  50. var b = number % 10,
  51. output = (~~(number % 100 / 10) === 1) ? 'th' :
  52. (b === 1) ? 'st' :
  53. (b === 2) ? 'nd' :
  54. (b === 3) ? 'rd' : 'th';
  55. return number + output;
  56. },
  57. week : {
  58. dow : 1, // Monday is the first day of the week.
  59. doy : 4 // The week that contains Jan 4th is the first week of the year.
  60. }
  61. });
  62. return x_pseudo;
  63. }));