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: 'помалку од секунда',
other: 'помалку од {{count}} секунди'
},
xSeconds: {
one: '1 секунда',
other: '{{count}} секунди'
},
halfAMinute: 'половина минута',
lessThanXMinutes: {
one: 'помалку од минута',
other: 'помалку од {{count}} минути'
},
xMinutes: {
one: '1 минута',
other: '{{count}} минути'
},
aboutXHours: {
one: 'околу 1 час',
other: 'околу {{count}} часа'
},
xHours: {
one: '1 час',
other: '{{count}} часа'
},
xDays: {
one: '1 ден',
other: '{{count}} дена'
},
aboutXMonths: {
one: 'околу 1 месец',
other: 'околу {{count}} месеци'
},
xMonths: {
one: '1 месец',
other: '{{count}} месеци'
},
aboutXYears: {
one: 'околу 1 година',
other: 'околу {{count}} години'
},
xYears: {
one: '1 година',
other: '{{count}} години'
},
overXYears: {
one: 'повеќе од 1 година',
other: 'повеќе од {{count}} години'
},
almostXYears: {
one: 'безмалку 1 година',
other: 'безмалку {{count}} години'
}
};
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 'за ' + result;
} else {
return 'пред ' + result;
}
}
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,48 @@
import buildLocalizeFn from '../../../_lib/buildLocalizeFn/index.js';
import buildLocalizeArrayFn from '../../../_lib/buildLocalizeArrayFn/index.js';
var weekdayValues = {
narrow: ['не', 'по', 'вт', 'ср', 'че', 'пе', 'са'],
short: ['нед', 'пон', 'вто', 'сре', 'чет', 'пет', 'саб'],
long: ['недела', 'понеделник', 'вторник', 'среда', 'четврток', 'петок', 'сабота']
};
var monthValues = {
short: ['јан', 'фев', 'мар', 'апр', 'мај', 'јун', 'јул', 'авг', 'сеп', 'окт', 'ное', 'дек'],
long: ['јануари', 'февруари', 'март', 'април', 'мај', 'јуни', 'јули', 'август', 'септември', 'октомври', 'ноември', 'декември']
};
var timeOfDayValues = {
long: ['претпладне', 'попладне']
};
function ordinalNumber(dirtyNumber) {
var number = Number(dirtyNumber);
var rem100 = number % 100;
if (rem100 > 20 || rem100 < 10) {
switch (rem100 % 10) {
case 1:
return number + '-ви';
case 2:
return number + '-ри';
case 7:
case 8:
return number + '-ми';
}
}
return 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) {
return hours / 12 >= 1 ? 1 : 0;
}),
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 { mk } from 'date-fns/locale'
export default mk
+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 Macedonian locale.
* @language Macedonian
* @iso-639-2 mkd
* @author Petar Vlahu [@vlahupetar]{@link https://github.com/vlahupetar}
*/
// var locale = {
// code: 'mk',
// formatDistance: formatDistance,
// formatLong: formatLong,
// formatRelative: formatRelative,
// localize: localize,
// match: match,
// options: {
// weekStartsOn: 1 /* Monday */,
// firstWeekContainsDate: 4
// }
// }
// export default locale
throw new Error('mk 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"
}