mi.js (2583B)
1//! moment.js locale configuration 2//! locale : Maori [mi] 3//! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal 4 5;(function (global, factory) { 6 typeof exports === 'object' && typeof module !== 'undefined' 7 && typeof require === 'function' ? factory(require('../moment')) : 8 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 9 factory(global.moment) 10}(this, (function (moment) { 'use strict'; 11 12 //! moment.js locale configuration 13 14 var mi = moment.defineLocale('mi', { 15 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( 16 '_' 17 ), 18 monthsShort: 19 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split( 20 '_' 21 ), 22 monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, 23 monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, 24 monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, 25 monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, 26 weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), 27 weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), 28 weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), 29 longDateFormat: { 30 LT: 'HH:mm', 31 LTS: 'HH:mm:ss', 32 L: 'DD/MM/YYYY', 33 LL: 'D MMMM YYYY', 34 LLL: 'D MMMM YYYY [i] HH:mm', 35 LLLL: 'dddd, D MMMM YYYY [i] HH:mm', 36 }, 37 calendar: { 38 sameDay: '[i teie mahana, i] LT', 39 nextDay: '[apopo i] LT', 40 nextWeek: 'dddd [i] LT', 41 lastDay: '[inanahi i] LT', 42 lastWeek: 'dddd [whakamutunga i] LT', 43 sameElse: 'L', 44 }, 45 relativeTime: { 46 future: 'i roto i %s', 47 past: '%s i mua', 48 s: 'te hēkona ruarua', 49 ss: '%d hēkona', 50 m: 'he meneti', 51 mm: '%d meneti', 52 h: 'te haora', 53 hh: '%d haora', 54 d: 'he ra', 55 dd: '%d ra', 56 M: 'he marama', 57 MM: '%d marama', 58 y: 'he tau', 59 yy: '%d tau', 60 }, 61 dayOfMonthOrdinalParse: /\d{1,2}º/, 62 ordinal: '%dº', 63 week: { 64 dow: 1, // Monday is the first day of the week. 65 doy: 4, // The week that contains Jan 4th is the first week of the year. 66 }, 67 }); 68 69 return mi; 70 71})));