mi.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //! moment.js locale configuration
  2. //! locale : Maori [mi]
  3. //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
  4. import moment from '../moment';
  5. export default moment.defineLocale('mi', {
  6. 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(
  7. '_'
  8. ),
  9. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
  10. '_'
  11. ),
  12. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  13. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  14. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  15. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  16. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  17. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  18. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  19. longDateFormat: {
  20. LT: 'HH:mm',
  21. LTS: 'HH:mm:ss',
  22. L: 'DD/MM/YYYY',
  23. LL: 'D MMMM YYYY',
  24. LLL: 'D MMMM YYYY [i] HH:mm',
  25. LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
  26. },
  27. calendar: {
  28. sameDay: '[i teie mahana, i] LT',
  29. nextDay: '[apopo i] LT',
  30. nextWeek: 'dddd [i] LT',
  31. lastDay: '[inanahi i] LT',
  32. lastWeek: 'dddd [whakamutunga i] LT',
  33. sameElse: 'L',
  34. },
  35. relativeTime: {
  36. future: 'i roto i %s',
  37. past: '%s i mua',
  38. s: 'te hēkona ruarua',
  39. ss: '%d hēkona',
  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. });