cronstrue 3.33.0 → 3.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cronstrue-i18n.js +19 -18
- package/dist/cronstrue-i18n.min.js +1 -1
- package/dist/cronstrue.js +19 -18
- package/dist/cronstrue.min.js +1 -1
- package/dist/i18n/locales/en.d.ts +9 -9
- package/locales/en.js +19 -18
- package/locales/en.min.js +1 -1
- package/package.json +1 -1
package/dist/cronstrue-i18n.js
CHANGED
|
@@ -2768,6 +2768,7 @@ exports.de = de;
|
|
|
2768
2768
|
|
|
2769
2769
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2770
2770
|
exports.en = void 0;
|
|
2771
|
+
var isOne = function (s) { return Number(s) === 1; };
|
|
2771
2772
|
var en = (function () {
|
|
2772
2773
|
function en() {
|
|
2773
2774
|
}
|
|
@@ -2810,26 +2811,26 @@ var en = (function () {
|
|
|
2810
2811
|
en.prototype.everySecond = function () {
|
|
2811
2812
|
return "every second";
|
|
2812
2813
|
};
|
|
2813
|
-
en.prototype.everyX0Seconds = function () {
|
|
2814
|
-
return "every %s seconds";
|
|
2814
|
+
en.prototype.everyX0Seconds = function (s) {
|
|
2815
|
+
return isOne(s) ? "every %s second" : "every %s seconds";
|
|
2815
2816
|
};
|
|
2816
2817
|
en.prototype.secondsX0ThroughX1PastTheMinute = function () {
|
|
2817
2818
|
return "seconds %s through %s past the minute";
|
|
2818
2819
|
};
|
|
2819
|
-
en.prototype.atX0SecondsPastTheMinute = function () {
|
|
2820
|
-
return "at %s seconds past the minute";
|
|
2820
|
+
en.prototype.atX0SecondsPastTheMinute = function (s) {
|
|
2821
|
+
return isOne(s) ? "at %s second past the minute" : "at %s seconds past the minute";
|
|
2821
2822
|
};
|
|
2822
|
-
en.prototype.everyX0Minutes = function () {
|
|
2823
|
-
return "every %s minutes";
|
|
2823
|
+
en.prototype.everyX0Minutes = function (s) {
|
|
2824
|
+
return isOne(s) ? "every %s minute" : "every %s minutes";
|
|
2824
2825
|
};
|
|
2825
2826
|
en.prototype.minutesX0ThroughX1PastTheHour = function () {
|
|
2826
2827
|
return "minutes %s through %s past the hour";
|
|
2827
2828
|
};
|
|
2828
|
-
en.prototype.atX0MinutesPastTheHour = function () {
|
|
2829
|
-
return "at %s minutes past the hour";
|
|
2829
|
+
en.prototype.atX0MinutesPastTheHour = function (s) {
|
|
2830
|
+
return isOne(s) ? "at %s minute past the hour" : "at %s minutes past the hour";
|
|
2830
2831
|
};
|
|
2831
|
-
en.prototype.everyX0Hours = function () {
|
|
2832
|
-
return "every %s hours";
|
|
2832
|
+
en.prototype.everyX0Hours = function (s) {
|
|
2833
|
+
return isOne(s) ? "every %s hour" : "every %s hours";
|
|
2833
2834
|
};
|
|
2834
2835
|
en.prototype.betweenX0AndX1 = function () {
|
|
2835
2836
|
return "between %s and %s";
|
|
@@ -2894,8 +2895,8 @@ var en = (function () {
|
|
|
2894
2895
|
en.prototype.commaOnTheLastWeekdayOfTheMonth = function () {
|
|
2895
2896
|
return ", on the last weekday of the month";
|
|
2896
2897
|
};
|
|
2897
|
-
en.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
|
|
2898
|
-
return ", %s days before the last day of the month";
|
|
2898
|
+
en.prototype.commaDaysBeforeTheLastDayOfTheMonth = function (s) {
|
|
2899
|
+
return isOne(s) ? ", %s day before the last day of the month" : ", %s days before the last day of the month";
|
|
2899
2900
|
};
|
|
2900
2901
|
en.prototype.firstWeekday = function () {
|
|
2901
2902
|
return "first weekday";
|
|
@@ -2906,11 +2907,11 @@ var en = (function () {
|
|
|
2906
2907
|
en.prototype.commaOnTheX0OfTheMonth = function () {
|
|
2907
2908
|
return ", on the %s of the month";
|
|
2908
2909
|
};
|
|
2909
|
-
en.prototype.commaDaysBeforeTheX0OfTheMonth = function () {
|
|
2910
|
-
return ", %s days before the %s of the month";
|
|
2910
|
+
en.prototype.commaDaysBeforeTheX0OfTheMonth = function (s) {
|
|
2911
|
+
return isOne(s) ? ", %s day before the %s of the month" : ", %s days before the %s of the month";
|
|
2911
2912
|
};
|
|
2912
|
-
en.prototype.commaDaysAfterTheX0OfTheMonth = function () {
|
|
2913
|
-
return ", %s days after the %s of the month";
|
|
2913
|
+
en.prototype.commaDaysAfterTheX0OfTheMonth = function (s) {
|
|
2914
|
+
return isOne(s) ? ", %s day after the %s of the month" : ", %s days after the %s of the month";
|
|
2914
2915
|
};
|
|
2915
2916
|
en.prototype.commaEveryX0Days = function () {
|
|
2916
2917
|
return ", every %s days in a month";
|
|
@@ -2924,8 +2925,8 @@ var en = (function () {
|
|
|
2924
2925
|
en.prototype.commaEveryHour = function () {
|
|
2925
2926
|
return ", every hour";
|
|
2926
2927
|
};
|
|
2927
|
-
en.prototype.commaEveryX0Years = function () {
|
|
2928
|
-
return ", every %s years";
|
|
2928
|
+
en.prototype.commaEveryX0Years = function (s) {
|
|
2929
|
+
return isOne(s) ? ", every %s year" : ", every %s years";
|
|
2929
2930
|
};
|
|
2930
2931
|
en.prototype.commaStartingX0 = function () {
|
|
2931
2932
|
return ", starting %s";
|