mi.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Maori [mi]
  2. import dayjs from '../index';
  3. var locale = {
  4. name: 'mi',
  5. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  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. weekStart: 1,
  8. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  9. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
  10. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  11. ordinal: function ordinal(n) {
  12. return n;
  13. },
  14. formats: {
  15. LT: 'HH:mm',
  16. LTS: 'HH:mm:ss',
  17. L: 'DD/MM/YYYY',
  18. LL: 'D MMMM YYYY',
  19. LLL: 'D MMMM YYYY [i] HH:mm',
  20. LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
  21. },
  22. relativeTime: {
  23. future: 'i roto i %s',
  24. past: '%s i mua',
  25. s: 'te hēkona ruarua',
  26. m: 'he meneti',
  27. mm: '%d meneti',
  28. h: 'te haora',
  29. hh: '%d haora',
  30. d: 'he ra',
  31. dd: '%d ra',
  32. M: 'he marama',
  33. MM: '%d marama',
  34. y: 'he tau',
  35. yy: '%d tau'
  36. }
  37. };
  38. dayjs.locale(locale, null, true);
  39. export default locale;