Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new locale] en-ph: English (Philippines) #6187

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
80 changes: 80 additions & 0 deletions locale/ph.js
@@ -0,0 +1,80 @@
//! moment.js locale configuration
//! locale : Philippines
//! author : Mowgli Mecha

; (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 ph = moment.defineLocale('ph', {
months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Octobre_Nobyembre_Desyembre'.split(
'_'
),
monthsShort: 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
'_'
),
weekdays: 'linggo_lunes_martes_myerkoles_huwebes_byernes_sabado'.split('_'),
weekdaysShort: 'dom._lun._mar._mye._hue._bye._sab.'.split('_'),
longDateFormat: {
LT: 'h:mm A',
LTS: 'h:mm:ss A',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY h:mm A',
LLLL: 'dddd, D MMMM YYYY h:mm A',
},
calendar: {
sameDay: '[Ngayon at] LT',
nextDay: '[Bukas at] LT',
nextWeek: 'dddd [at] LT',
lastDay: '[Kahapon at] LT',
lastWeek: '[Isang Linggo] dddd [at] LT',
sameElse: 'L',
},
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'a few segundo',
ss: '%d segundos',
m: 'a minuto',
mm: '%d minutos',
h: 'an oras',
hh: '%d oras',
d: 'a araw',
dd: '%d araw',
M: 'a buwan',
MM: '%d buwan',
y: 'a taon',
yy: '%d taon',
},
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
ordinal: function (number) {
var b = number % 10,
output =
~~((number % 100) / 10) === 1
? 'th'
: b === 1
? 'st'
: b === 2
? 'nd'
: b === 3
? 'rd'
: 'th';
return number + output;
},
week: {
dow: 0, // Sunday is the first day of the week.
doy: 4, // The week that contains Jan 4th is the first week of the year.
},
});

return ph;

})));