mi.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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:
  10. 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
  11. '_'
  12. ),
  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. ss: '%d hēkona',
  41. m: 'he meneti',
  42. mm: '%d meneti',
  43. h: 'te haora',
  44. hh: '%d haora',
  45. d: 'he ra',
  46. dd: '%d ra',
  47. M: 'he marama',
  48. MM: '%d marama',
  49. y: 'he tau',
  50. yy: '%d tau',
  51. },
  52. dayOfMonthOrdinalParse: /\d{1,2}º/,
  53. ordinal: '%dº',
  54. week: {
  55. dow: 1, // Monday is the first day of the week.
  56. doy: 4, // The week that contains Jan 4th is the first week of the year.
  57. },
  58. });