mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 09:43:51 +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.
70 lines
2.3 KiB
JavaScript
70 lines
2.3 KiB
JavaScript
//! moment.js locale configuration
|
|
//! locale : Filipino [fil]
|
|
//! author : Dan Hagman : https://github.com/hagmandan
|
|
//! author : Matthew Co : https://github.com/matthewdeeco
|
|
|
|
;(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 fil = moment.defineLocale('fil', {
|
|
months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
|
|
'_'
|
|
),
|
|
monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
|
|
weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
|
|
'_'
|
|
),
|
|
weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
|
|
weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
|
|
longDateFormat: {
|
|
LT: 'HH:mm',
|
|
LTS: 'HH:mm:ss',
|
|
L: 'MM/D/YYYY',
|
|
LL: 'MMMM D, YYYY',
|
|
LLL: 'MMMM D, YYYY HH:mm',
|
|
LLLL: 'dddd, MMMM DD, YYYY HH:mm',
|
|
},
|
|
calendar: {
|
|
sameDay: 'LT [ngayong araw]',
|
|
nextDay: '[Bukas ng] LT',
|
|
nextWeek: 'LT [sa susunod na] dddd',
|
|
lastDay: 'LT [kahapon]',
|
|
lastWeek: 'LT [noong nakaraang] dddd',
|
|
sameElse: 'L',
|
|
},
|
|
relativeTime: {
|
|
future: 'sa loob ng %s',
|
|
past: '%s ang nakalipas',
|
|
s: 'ilang segundo',
|
|
ss: '%d segundo',
|
|
m: 'isang minuto',
|
|
mm: '%d minuto',
|
|
h: 'isang oras',
|
|
hh: '%d oras',
|
|
d: 'isang araw',
|
|
dd: '%d araw',
|
|
M: 'isang buwan',
|
|
MM: '%d buwan',
|
|
y: 'isang taon',
|
|
yy: '%d taon',
|
|
},
|
|
dayOfMonthOrdinalParse: /\d{1,2}/,
|
|
ordinal: function (number) {
|
|
return number;
|
|
},
|
|
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 fil;
|
|
|
|
})));
|