tl-ph.js (2287B)
1//! moment.js locale configuration 2//! locale : Tagalog (Philippines) [tl-ph] 3//! author : Dan Hagman : https://github.com/hagmandan 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 tlPh = moment.defineLocale('tl-ph', { 15 months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( 16 '_' 17 ), 18 monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), 19 weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( 20 '_' 21 ), 22 weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), 23 weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), 24 longDateFormat: { 25 LT: 'HH:mm', 26 LTS: 'HH:mm:ss', 27 L: 'MM/D/YYYY', 28 LL: 'MMMM D, YYYY', 29 LLL: 'MMMM D, YYYY HH:mm', 30 LLLL: 'dddd, MMMM DD, YYYY HH:mm', 31 }, 32 calendar: { 33 sameDay: 'LT [ngayong araw]', 34 nextDay: '[Bukas ng] LT', 35 nextWeek: 'LT [sa susunod na] dddd', 36 lastDay: 'LT [kahapon]', 37 lastWeek: 'LT [noong nakaraang] dddd', 38 sameElse: 'L', 39 }, 40 relativeTime: { 41 future: 'sa loob ng %s', 42 past: '%s ang nakalipas', 43 s: 'ilang segundo', 44 ss: '%d segundo', 45 m: 'isang minuto', 46 mm: '%d minuto', 47 h: 'isang oras', 48 hh: '%d oras', 49 d: 'isang araw', 50 dd: '%d araw', 51 M: 'isang buwan', 52 MM: '%d buwan', 53 y: 'isang taon', 54 yy: '%d taon', 55 }, 56 dayOfMonthOrdinalParse: /\d{1,2}/, 57 ordinal: function (number) { 58 return number; 59 }, 60 week: { 61 dow: 1, // Monday is the first day of the week. 62 doy: 4, // The week that contains Jan 4th is the first week of the year. 63 }, 64 }); 65 66 return tlPh; 67 68})));