fil.js (2326B)
1//! moment.js locale configuration 2//! locale : Filipino [fil] 3//! author : Dan Hagman : https://github.com/hagmandan 4//! author : Matthew Co : https://github.com/matthewdeeco 5 6;(function (global, factory) { 7 typeof exports === 'object' && typeof module !== 'undefined' 8 && typeof require === 'function' ? factory(require('../moment')) : 9 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 10 factory(global.moment) 11}(this, (function (moment) { 'use strict'; 12 13 //! moment.js locale configuration 14 15 var fil = moment.defineLocale('fil', { 16 months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( 17 '_' 18 ), 19 monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), 20 weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( 21 '_' 22 ), 23 weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), 24 weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), 25 longDateFormat: { 26 LT: 'HH:mm', 27 LTS: 'HH:mm:ss', 28 L: 'MM/D/YYYY', 29 LL: 'MMMM D, YYYY', 30 LLL: 'MMMM D, YYYY HH:mm', 31 LLLL: 'dddd, MMMM DD, YYYY HH:mm', 32 }, 33 calendar: { 34 sameDay: 'LT [ngayong araw]', 35 nextDay: '[Bukas ng] LT', 36 nextWeek: 'LT [sa susunod na] dddd', 37 lastDay: 'LT [kahapon]', 38 lastWeek: 'LT [noong nakaraang] dddd', 39 sameElse: 'L', 40 }, 41 relativeTime: { 42 future: 'sa loob ng %s', 43 past: '%s ang nakalipas', 44 s: 'ilang segundo', 45 ss: '%d segundo', 46 m: 'isang minuto', 47 mm: '%d minuto', 48 h: 'isang oras', 49 hh: '%d oras', 50 d: 'isang araw', 51 dd: '%d araw', 52 M: 'isang buwan', 53 MM: '%d buwan', 54 y: 'isang taon', 55 yy: '%d taon', 56 }, 57 dayOfMonthOrdinalParse: /\d{1,2}/, 58 ordinal: function (number) { 59 return number; 60 }, 61 week: { 62 dow: 1, // Monday is the first day of the week. 63 doy: 4, // The week that contains Jan 4th is the first week of the year. 64 }, 65 }); 66 67 return fil; 68 69})));