index.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. "use strict";
  2. var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
  3. Object.defineProperty(exports, "__esModule", {
  4. value: true
  5. });
  6. exports.default = void 0;
  7. var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js"));
  8. var eraValues = {
  9. narrow: ['f.K.', 'n.K.'],
  10. abbreviated: ['f.Kr.', 'n.Kr.'],
  11. wide: ['foar Kristus', 'nei Kristus']
  12. };
  13. var quarterValues = {
  14. narrow: ['1', '2', '3', '4'],
  15. abbreviated: ['K1', 'K2', 'K3', 'K4'],
  16. wide: ['1e fearnsjier', '2e fearnsjier', '3e fearnsjier', '4e fearnsjier']
  17. };
  18. var monthValues = {
  19. narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'],
  20. abbreviated: ['jan.', 'feb.', 'mrt.', 'apr.', 'mai.', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'des.'],
  21. wide: ['jannewaris', 'febrewaris', 'maart', 'april', 'maaie', 'juny', 'july', 'augustus', 'septimber', 'oktober', 'novimber', 'desimber']
  22. };
  23. var dayValues = {
  24. narrow: ['s', 'm', 't', 'w', 't', 'f', 's'],
  25. short: ['si', 'mo', 'ti', 'wo', 'to', 'fr', 'so'],
  26. abbreviated: ['snein', 'moa', 'tii', 'woa', 'ton', 'fre', 'sneon'],
  27. wide: ['snein', 'moandei', 'tiisdei', 'woansdei', 'tongersdei', 'freed', 'sneon']
  28. };
  29. var dayPeriodValues = {
  30. narrow: {
  31. am: 'AM',
  32. pm: 'PM',
  33. midnight: 'middernacht',
  34. noon: 'middei',
  35. morning: 'moarns',
  36. afternoon: 'middeis',
  37. evening: 'jûns',
  38. night: 'nachts'
  39. },
  40. abbreviated: {
  41. am: 'AM',
  42. pm: 'PM',
  43. midnight: 'middernacht',
  44. noon: 'middei',
  45. morning: 'moarns',
  46. afternoon: 'middeis',
  47. evening: 'jûns',
  48. night: 'nachts'
  49. },
  50. wide: {
  51. am: 'AM',
  52. pm: 'PM',
  53. midnight: 'middernacht',
  54. noon: 'middei',
  55. morning: 'moarns',
  56. afternoon: 'middeis',
  57. evening: 'jûns',
  58. night: 'nachts'
  59. }
  60. };
  61. var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
  62. var number = Number(dirtyNumber);
  63. return number + 'e';
  64. };
  65. var localize = {
  66. ordinalNumber: ordinalNumber,
  67. era: (0, _index.default)({
  68. values: eraValues,
  69. defaultWidth: 'wide'
  70. }),
  71. quarter: (0, _index.default)({
  72. values: quarterValues,
  73. defaultWidth: 'wide',
  74. argumentCallback: function argumentCallback(quarter) {
  75. return quarter - 1;
  76. }
  77. }),
  78. month: (0, _index.default)({
  79. values: monthValues,
  80. defaultWidth: 'wide'
  81. }),
  82. day: (0, _index.default)({
  83. values: dayValues,
  84. defaultWidth: 'wide'
  85. }),
  86. dayPeriod: (0, _index.default)({
  87. values: dayPeriodValues,
  88. defaultWidth: 'wide'
  89. })
  90. };
  91. var _default = localize;
  92. exports.default = _default;
  93. module.exports = exports.default;