mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:29:30 +08:00
cdb7ddc258
We updated version of moment and moment-timezone as our current versions are outdated making Discourse Dates broken on places where timezone had updates, like here in Brazil. This also update highlightJS to the latest version and corrected a test that relied on a no longer supported locale in moment.
71 lines
2.5 KiB
JavaScript
71 lines
2.5 KiB
JavaScript
//! moment.js locale configuration
|
|
//! locale : Maori [mi]
|
|
//! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
|
|
|
|
;(function (global, factory) {
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
|
factory(global.moment)
|
|
}(this, (function (moment) { 'use strict';
|
|
|
|
//! moment.js locale configuration
|
|
|
|
var mi = moment.defineLocale('mi', {
|
|
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(
|
|
'_'
|
|
),
|
|
monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
|
|
'_'
|
|
),
|
|
monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
|
|
monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
|
|
monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
|
|
monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
|
|
weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
|
|
weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
|
|
weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
|
|
longDateFormat: {
|
|
LT: 'HH:mm',
|
|
LTS: 'HH:mm:ss',
|
|
L: 'DD/MM/YYYY',
|
|
LL: 'D MMMM YYYY',
|
|
LLL: 'D MMMM YYYY [i] HH:mm',
|
|
LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
|
|
},
|
|
calendar: {
|
|
sameDay: '[i teie mahana, i] LT',
|
|
nextDay: '[apopo i] LT',
|
|
nextWeek: 'dddd [i] LT',
|
|
lastDay: '[inanahi i] LT',
|
|
lastWeek: 'dddd [whakamutunga i] LT',
|
|
sameElse: 'L',
|
|
},
|
|
relativeTime: {
|
|
future: 'i roto i %s',
|
|
past: '%s i mua',
|
|
s: 'te hēkona ruarua',
|
|
ss: '%d hēkona',
|
|
m: 'he meneti',
|
|
mm: '%d meneti',
|
|
h: 'te haora',
|
|
hh: '%d haora',
|
|
d: 'he ra',
|
|
dd: '%d ra',
|
|
M: 'he marama',
|
|
MM: '%d marama',
|
|
y: 'he tau',
|
|
yy: '%d tau',
|
|
},
|
|
dayOfMonthOrdinalParse: /\d{1,2}º/,
|
|
ordinal: '%dº',
|
|
week: {
|
|
dow: 1, // Monday is the first day of the week.
|
|
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
},
|
|
});
|
|
|
|
return mi;
|
|
|
|
})));
|