project files added

This commit is contained in:
mhalfmann
2021-06-15 16:00:08 +02:00
parent e156e2f053
commit db46afa351
13928 changed files with 1569902 additions and 0 deletions
@@ -0,0 +1,77 @@
var formatDistanceLocale = {
lessThanXSeconds: {
one: 'mas maliit sa isang segundo',
other: 'mas maliit sa {{count}} segundo'
},
xSeconds: {
one: '1 segundo',
other: '{{count}} segundo'
},
halfAMinute: 'kalahating minuto',
lessThanXMinutes: {
one: 'mas maliit sa isang minuto',
other: 'mas maliit sa {{count}} minuto'
},
xMinutes: {
one: '1 minuto',
other: '{{count}} minuto'
},
aboutXHours: {
one: 'mga 1 oras',
other: 'mga {{count}} oras'
},
xHours: {
one: '1 oras',
other: '{{count}} oras'
},
xDays: {
one: '1 araw',
other: '{{count}} araw'
},
aboutXMonths: {
one: 'mga 1 buwan',
other: 'mga {{count}} buwan'
},
xMonths: {
one: '1 buwan',
other: '{{count}} buwan'
},
aboutXYears: {
one: 'mga 1 taon',
other: 'mga {{count}} taon'
},
xYears: {
one: '1 taon',
other: '{{count}} taon'
},
overXYears: {
one: 'higit sa 1 taon',
other: 'higit sa {{count}} taon'
},
almostXYears: {
one: 'halos 1 taon',
other: 'halos {{count}} taon'
}
};
export default function formatDistance(token, count, options) {
options = options || {};
var result;
if (typeof formatDistanceLocale[token] === 'string') {
result = formatDistanceLocale[token];
} else if (count === 1) {
result = formatDistanceLocale[token].one;
} else {
result = formatDistanceLocale[token].other.replace('{{count}}', count);
}
if (options.addSuffix) {
if (options.comparison > 0) {
return 'sa loob ng ' + result;
} else {
return result + ' ang nakalipas';
}
}
return result;
}
@@ -0,0 +1,10 @@
import buildFormatLongFn from '../../../_lib/buildFormatLongFn/index.js';
var formatLong = buildFormatLongFn({
LT: 'h:mm aa',
LTS: 'h:mm:ss aa',
L: 'MM/DD/YYYY',
LL: 'MMMM D YYYY',
LLL: 'MMMM D YYYY h:mm aa',
LLLL: 'dddd, MMMM D YYYY h:mm aa'
});
export default formatLong;
@@ -0,0 +1,11 @@
var formatRelativeLocale = {
lastWeek: '[last] dddd [at] LT',
yesterday: '[yesterday at] LT',
today: '[today at] LT',
tomorrow: '[tomorrow at] LT',
nextWeek: 'dddd [at] LT',
other: 'L'
};
export default function formatRelative(token, _date, _baseDate, _options) {
return formatRelativeLocale[token];
}
@@ -0,0 +1,46 @@
import buildLocalizeFn from '../../../_lib/buildLocalizeFn/index.js';
import buildLocalizeArrayFn from '../../../_lib/buildLocalizeArrayFn/index.js';
var weekdayValues = {
narrow: ['Li', 'Lu', 'Ma', 'Mi', 'Hu', 'Bi', 'Sa'],
short: ['Lin', 'Lun', 'Mar', 'Miy', 'Huw', 'Biy', 'Sab'],
long: ['Linggo', 'Lunes', 'Martes', 'Miyerkules', 'Huwebes', 'Biyernes', 'Sabado']
};
var monthValues = {
short: ['Ene', 'Peb', 'Mar', 'Abr', 'May', 'Hun', 'Hul', 'Ago', 'Set', 'Okt', 'Nob', 'Dis'],
long: ['Enero', 'Pebrero', 'Marso', 'Abril', 'Mayo', 'Hunyo', 'Hulyo', 'Agosto', 'Setyembre', 'Oktubre', 'Nobyembre', 'Disyembre']
};
var timeOfDayValues = {
uppercase: ['NU', 'NT', 'NH', 'NG'],
lowercase: ['nu', 'nt', 'nh', 'ng'],
long: ['ng umaga', 'ng tanghali', 'ng hapon', 'ng gabi']
};
function ordinalNumber(dirtyNumber) {
var number = Number(dirtyNumber);
return 'ika-' + number;
}
var localize = {
ordinalNumber: ordinalNumber,
weekday: buildLocalizeFn(weekdayValues, 'long'),
weekdays: buildLocalizeArrayFn(weekdayValues, 'long'),
month: buildLocalizeFn(monthValues, 'long'),
months: buildLocalizeArrayFn(monthValues, 'long'),
timeOfDay: buildLocalizeFn(timeOfDayValues, 'long', function (hours) {
if (hours > 12) {
var modulo = hours % 12;
if (modulo < 6) {
return 2;
} else {
return 3;
}
} else if (hours < 12) {
return 0;
} else {
return 1;
}
}),
timesOfDay: buildLocalizeArrayFn(timeOfDayValues, 'long')
};
export default localize;
+38
View File
@@ -0,0 +1,38 @@
import buildMatchFn from '../../../_lib/buildMatchFn/index.js';
import buildParseFn from '../../../_lib/buildParseFn/index.js';
import buildMatchPatternFn from '../../../_lib/buildMatchPatternFn/index.js';
import parseDecimal from '../../../_lib/parseDecimal/index.js';
var matchOrdinalNumbersPattern = /^(\d+)(th|st|nd|rd)?/i;
var matchWeekdaysPatterns = {
narrow: /^(su|mo|tu|we|th|fr|sa)/i,
short: /^(sun|mon|tue|wed|thu|fri|sat)/i,
long: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
};
var parseWeekdayPatterns = {
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
};
var matchMonthsPatterns = {
short: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
long: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
};
var parseMonthPatterns = {
any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
};
var matchTimesOfDayPatterns = {
short: /^(am|pm)/i,
long: /^([ap]\.?\s?m\.?)/i
};
var parseTimeOfDayPatterns = {
any: [/^a/i, /^p/i]
};
var match = {
ordinalNumbers: buildMatchPatternFn(matchOrdinalNumbersPattern),
ordinalNumber: parseDecimal,
weekdays: buildMatchFn(matchWeekdaysPatterns, 'long'),
weekday: buildParseFn(parseWeekdayPatterns, 'any'),
months: buildMatchFn(matchMonthsPatterns, 'long'),
month: buildParseFn(parseMonthPatterns, 'any'),
timesOfDay: buildMatchFn(matchTimesOfDayPatterns, 'long'),
timeOfDay: buildParseFn(parseTimeOfDayPatterns, 'any')
};
export default match;
+4
View File
@@ -0,0 +1,4 @@
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
import { fil } from 'date-fns/locale'
export default fil
+28
View File
@@ -0,0 +1,28 @@
// import formatDistance from './_lib/formatDistance/index.js'
// import formatLong from './_lib/formatLong/index.js'
// import formatRelative from './_lib/formatRelative/index.js'
// import localize from './_lib/localize/index.js'
// import match from './_lib/match/index.js'
/**
* @type {Locale}
* @category Locales
* @summary Filipino locale.
* @language Filipino
* @iso-639-2 fil
* @author Ian De La Cruz [@RIanDeLaCruz]{@link https://github.com/RIanDeLaCruz}
*/
// var locale = {
// code: 'fil',
// formatDistance: formatDistance,
// formatLong: formatLong,
// formatRelative: formatRelative,
// localize: localize,
// match: match,
// options: {
// weekStartsOn: 0 /* Sunday */,
// firstWeekContainsDate: 1
// }
// }
// export default locale
throw new Error('fil locale is currently unavailable. Please check the progress of converting this locale to v2.0.0 in this issue on Github: TBA');
+33
View File
@@ -0,0 +1,33 @@
// @flow
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
export type Locale = {
formatDistance: (...args: Array<any>) => any,
formatRelative: (...args: Array<any>) => any,
localize: {
ordinalNumber: (...args: Array<any>) => any,
era: (...args: Array<any>) => any,
quarter: (...args: Array<any>) => any,
month: (...args: Array<any>) => any,
day: (...args: Array<any>) => any,
dayPeriod: (...args: Array<any>) => any
},
formatLong: Object,
date: (...args: Array<any>) => any,
time: (...args: Array<any>) => any,
dateTime: (...args: Array<any>) => any,
match: {
ordinalNumber: (...args: Array<any>) => any,
era: (...args: Array<any>) => any,
quarter: (...args: Array<any>) => any,
month: (...args: Array<any>) => any,
day: (...args: Array<any>) => any,
dayPeriod: (...args: Array<any>) => any
},
options?: {
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7
}
}
declare module.exports: Locale
+4
View File
@@ -0,0 +1,4 @@
{
"sideEffects": false,
"typings": "../../../typings.d.ts"
}