mi.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //! moment.js locale configuration
  2. //! locale : Maori [mi]
  3. //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
  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 mi = moment.defineLocale('mi', {
  12. months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(
  13. '_'
  14. ),
  15. monthsShort:
  16. 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
  17. '_'
  18. ),
  19. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  20. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  21. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  22. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  23. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  24. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  25. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  26. longDateFormat: {
  27. LT: 'HH:mm',
  28. LTS: 'HH:mm:ss',
  29. L: 'DD/MM/YYYY',
  30. LL: 'D MMMM YYYY',
  31. LLL: 'D MMMM YYYY [i] HH:mm',
  32. LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
  33. },
  34. calendar: {
  35. sameDay: '[i teie mahana, i] LT',
  36. nextDay: '[apopo i] LT',
  37. nextWeek: 'dddd [i] LT',
  38. lastDay: '[inanahi i] LT',
  39. lastWeek: 'dddd [whakamutunga i] LT',
  40. sameElse: 'L',
  41. },
  42. relativeTime: {
  43. future: 'i roto i %s',
  44. past: '%s i mua',
  45. s: 'te hēkona ruarua',
  46. ss: '%d hēkona',
  47. m: 'he meneti',
  48. mm: '%d meneti',
  49. h: 'te haora',
  50. hh: '%d haora',
  51. d: 'he ra',
  52. dd: '%d ra',
  53. M: 'he marama',
  54. MM: '%d marama',
  55. y: 'he tau',
  56. yy: '%d tau',
  57. },
  58. dayOfMonthOrdinalParse: /\d{1,2}º/,
  59. ordinal: '%dº',
  60. week: {
  61. dow: 1, // Monday is the first day of the week.
  62. doy: 4, // The week that contains Jan 4th is the first week of the year.
  63. },
  64. });
  65. return mi;
  66. })));