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.

x-pseudo.js 2.3KB

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