index.js 818 B

12345678910111213141516171819202122232425262728293031
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var formatRelativeLocale = {
  7. lastWeek: "'el' eeee 'passat a la' LT",
  8. yesterday: "'ahir a la' p",
  9. today: "'avui a la' p",
  10. tomorrow: "'demà a la' p",
  11. nextWeek: "eeee 'a la' p",
  12. other: 'P'
  13. };
  14. var formatRelativeLocalePlural = {
  15. lastWeek: "'el' eeee 'passat a les' p",
  16. yesterday: "'ahir a les' p",
  17. today: "'avui a les' p",
  18. tomorrow: "'demà a les' p",
  19. nextWeek: "eeee 'a les' p",
  20. other: 'P'
  21. };
  22. var formatRelative = function formatRelative(token, date, _baseDate, _options) {
  23. if (date.getUTCHours() !== 1) {
  24. return formatRelativeLocalePlural[token];
  25. }
  26. return formatRelativeLocale[token];
  27. };
  28. var _default = formatRelative;
  29. exports.default = _default;
  30. module.exports = exports.default;