mi.js 2.2 KB

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