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