cronstrue 3.27.0 → 3.28.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 +23 -16
- package/dist/cronstrue-i18n.min.js +1 -1
- package/dist/i18n/locales/ro.d.ts +7 -7
- package/locales/ro.js +23 -16
- package/locales/ro.min.js +1 -1
- package/package.json +1 -1
|
@@ -10,10 +10,10 @@ export declare class ro implements Locale {
|
|
|
10
10
|
betweenX0AndX1(): string;
|
|
11
11
|
commaBetweenDayX0AndX1OfTheMonth(): string;
|
|
12
12
|
commaEveryDay(): string;
|
|
13
|
-
commaEveryX0Days(): string;
|
|
13
|
+
commaEveryX0Days(s?: string): string;
|
|
14
14
|
commaEveryX0DaysOfTheWeek(): string;
|
|
15
|
-
commaEveryX0Months(): string;
|
|
16
|
-
commaEveryX0Years(): string;
|
|
15
|
+
commaEveryX0Months(s?: string): string;
|
|
16
|
+
commaEveryX0Years(s?: string): string;
|
|
17
17
|
commaOnDayX0OfTheMonth(): string;
|
|
18
18
|
commaOnlyInX0(): string;
|
|
19
19
|
commaOnlyOnX0(): string;
|
|
@@ -21,7 +21,7 @@ export declare class ro implements Locale {
|
|
|
21
21
|
commaOnThe(): string;
|
|
22
22
|
commaOnTheLastDayOfTheMonth(): string;
|
|
23
23
|
commaOnTheLastWeekdayOfTheMonth(): string;
|
|
24
|
-
commaDaysBeforeTheLastDayOfTheMonth(): string;
|
|
24
|
+
commaDaysBeforeTheLastDayOfTheMonth(s?: string): string;
|
|
25
25
|
commaOnTheLastX0OfTheMonth(): string;
|
|
26
26
|
commaOnTheX0OfTheMonth(): string;
|
|
27
27
|
commaX0ThroughX1(): string;
|
|
@@ -30,9 +30,9 @@ export declare class ro implements Locale {
|
|
|
30
30
|
everyMinute(): string;
|
|
31
31
|
everyMinuteBetweenX0AndX1(): string;
|
|
32
32
|
everySecond(): string;
|
|
33
|
-
everyX0Hours(): string;
|
|
34
|
-
everyX0Minutes(): string;
|
|
35
|
-
everyX0Seconds(): string;
|
|
33
|
+
everyX0Hours(s?: string): string;
|
|
34
|
+
everyX0Minutes(s?: string): string;
|
|
35
|
+
everyX0Seconds(s?: string): string;
|
|
36
36
|
fifth(): string;
|
|
37
37
|
first(): string;
|
|
38
38
|
firstWeekday(): string;
|
package/locales/ro.js
CHANGED
|
@@ -95,6 +95,10 @@ var ro_exports = __webpack_exports__;
|
|
|
95
95
|
"use strict";
|
|
96
96
|
Object.defineProperty(ro_exports, "__esModule", { value: true });
|
|
97
97
|
ro_exports.ro = void 0;
|
|
98
|
+
var getPhraseByNumber = function (str, words) {
|
|
99
|
+
var number = Number(str);
|
|
100
|
+
return number >= 20 && (number % 100 === 0 || number % 100 >= 20) ? words[1] : words[0];
|
|
101
|
+
};
|
|
98
102
|
var ro = (function () {
|
|
99
103
|
function ro() {
|
|
100
104
|
}
|
|
@@ -128,17 +132,17 @@ var ro = (function () {
|
|
|
128
132
|
ro.prototype.commaEveryDay = function () {
|
|
129
133
|
return ", în fiecare zi";
|
|
130
134
|
};
|
|
131
|
-
ro.prototype.commaEveryX0Days = function () {
|
|
132
|
-
return ", la fiecare %s zile";
|
|
135
|
+
ro.prototype.commaEveryX0Days = function (s) {
|
|
136
|
+
return getPhraseByNumber(s, [", la fiecare %s zile", ", la fiecare %s de zile"]);
|
|
133
137
|
};
|
|
134
138
|
ro.prototype.commaEveryX0DaysOfTheWeek = function () {
|
|
135
139
|
return ", la fiecare a %s-a zi a săptămânii";
|
|
136
140
|
};
|
|
137
|
-
ro.prototype.commaEveryX0Months = function () {
|
|
138
|
-
return ", la fiecare %s luni";
|
|
141
|
+
ro.prototype.commaEveryX0Months = function (s) {
|
|
142
|
+
return getPhraseByNumber(s, [", la fiecare %s luni", ", la fiecare %s de luni"]);
|
|
139
143
|
};
|
|
140
|
-
ro.prototype.commaEveryX0Years = function () {
|
|
141
|
-
return ", o dată la %s ani";
|
|
144
|
+
ro.prototype.commaEveryX0Years = function (s) {
|
|
145
|
+
return getPhraseByNumber(s, [", o dată la %s ani", ", o dată la %s de ani"]);
|
|
142
146
|
};
|
|
143
147
|
ro.prototype.commaOnDayX0OfTheMonth = function () {
|
|
144
148
|
return ", în ziua %s a lunii";
|
|
@@ -161,8 +165,11 @@ var ro = (function () {
|
|
|
161
165
|
ro.prototype.commaOnTheLastWeekdayOfTheMonth = function () {
|
|
162
166
|
return ", în ultima zi lucrătoare a lunii";
|
|
163
167
|
};
|
|
164
|
-
ro.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
|
|
165
|
-
return
|
|
168
|
+
ro.prototype.commaDaysBeforeTheLastDayOfTheMonth = function (s) {
|
|
169
|
+
return getPhraseByNumber(s, [
|
|
170
|
+
", %s zile înainte de ultima zi a lunii",
|
|
171
|
+
", %s de zile înainte de ultima zi a lunii",
|
|
172
|
+
]);
|
|
166
173
|
};
|
|
167
174
|
ro.prototype.commaOnTheLastX0OfTheMonth = function () {
|
|
168
175
|
return ", în ultima %s a lunii";
|
|
@@ -188,14 +195,14 @@ var ro = (function () {
|
|
|
188
195
|
ro.prototype.everySecond = function () {
|
|
189
196
|
return "în fiecare secundă";
|
|
190
197
|
};
|
|
191
|
-
ro.prototype.everyX0Hours = function () {
|
|
192
|
-
return "la fiecare %s ore";
|
|
198
|
+
ro.prototype.everyX0Hours = function (s) {
|
|
199
|
+
return getPhraseByNumber(s, ["la fiecare %s ore", "la fiecare %s de ore"]);
|
|
193
200
|
};
|
|
194
|
-
ro.prototype.everyX0Minutes = function () {
|
|
195
|
-
return "la fiecare %s minute";
|
|
201
|
+
ro.prototype.everyX0Minutes = function (s) {
|
|
202
|
+
return getPhraseByNumber(s, ["la fiecare %s minute", "la fiecare %s de minute"]);
|
|
196
203
|
};
|
|
197
|
-
ro.prototype.everyX0Seconds = function () {
|
|
198
|
-
return "la fiecare %s secunde";
|
|
204
|
+
ro.prototype.everyX0Seconds = function (s) {
|
|
205
|
+
return getPhraseByNumber(s, ["la fiecare %s secunde", "la fiecare %s de secunde"]);
|
|
199
206
|
};
|
|
200
207
|
ro.prototype.fifth = function () {
|
|
201
208
|
return "a cincea";
|
|
@@ -204,7 +211,7 @@ var ro = (function () {
|
|
|
204
211
|
return "prima";
|
|
205
212
|
};
|
|
206
213
|
ro.prototype.firstWeekday = function () {
|
|
207
|
-
return "prima zi
|
|
214
|
+
return "prima zi lucrătoare";
|
|
208
215
|
};
|
|
209
216
|
ro.prototype.fourth = function () {
|
|
210
217
|
return "a patra";
|
|
@@ -231,7 +238,7 @@ var ro = (function () {
|
|
|
231
238
|
return "a treia";
|
|
232
239
|
};
|
|
233
240
|
ro.prototype.weekdayNearestDayX0 = function () {
|
|
234
|
-
return "cea mai apropiată zi
|
|
241
|
+
return "cea mai apropiată zi lucrătoare de ziua %s";
|
|
235
242
|
};
|
|
236
243
|
ro.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
237
244
|
return ", din %s până în %s";
|
package/locales/ro.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/ro.min",["cronstrue"],t):"object"==typeof exports?exports["locales/ro.min"]=t(require("cronstrue")):e["locales/ro.min"]=t(e.cronstrue)}(globalThis,(e=>(()=>{"use strict";var t={93(t){t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};n.r(o);var i=n(93),u=n.n(i),a=o;Object.defineProperty(a,"__esModule",{value:!0}),a.ro=void 0;var p=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Eroare la generarea descrierii. Verificați sintaxa."},e.prototype.at=function(){return"La"},e.prototype.atSpace=function(){return"La "},e.prototype.atX0=function(){return"la %s"},e.prototype.atX0MinutesPastTheHour=function(){return"la și %s minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"la și %s secunde"},e.prototype.betweenX0AndX1=function(){return"între %s și %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", între zilele %s și %s ale lunii"},e.prototype.commaEveryDay=function(){return", în fiecare zi"},e.prototype.commaEveryX0Days=function(){return", la fiecare %s zile"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", la fiecare a %s-a zi a săptămânii"},e.prototype.commaEveryX0Months=function(){return", la fiecare %s luni"},e.prototype.commaEveryX0Years=function(){return", o dată la %s ani"},e.prototype.commaOnDayX0OfTheMonth=function(){return", în ziua %s a lunii"},e.prototype.commaOnlyInX0=function(){return", doar în %s"},e.prototype.commaOnlyOnX0=function(){return", doar %s"},e.prototype.commaAndOnX0=function(){return", și %s"},e.prototype.commaOnThe=function(){return", în "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", în ultima zi a lunii"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", în ultima zi lucrătoare a lunii"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s zile înainte de ultima zi a lunii"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", în ultima %s a lunii"},e.prototype.commaOnTheX0OfTheMonth=function(){return", în %s a lunii"},e.prototype.commaX0ThroughX1=function(){return", de %s până %s"},e.prototype.commaAndX0ThroughX1=function(){return", și de %s până %s"},e.prototype.everyHour=function(){return"în fiecare oră"},e.prototype.everyMinute=function(){return"în fiecare minut"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"În fiecare minut între %s și %s"},e.prototype.everySecond=function(){return"în fiecare secundă"},e.prototype.everyX0Hours=function(){return"la fiecare %s ore"},e.prototype.everyX0Minutes=function(){return"la fiecare %s minute"},e.prototype.everyX0Seconds=function(){return"la fiecare %s secunde"},e.prototype.fifth=function(){return"a cincea"},e.prototype.first=function(){return"prima"},e.prototype.firstWeekday=function(){return"prima zi
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/ro.min",["cronstrue"],t):"object"==typeof exports?exports["locales/ro.min"]=t(require("cronstrue")):e["locales/ro.min"]=t(e.cronstrue)}(globalThis,(e=>(()=>{"use strict";var t={93(t){t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};n.r(o);var i=n(93),u=n.n(i),a=o;Object.defineProperty(a,"__esModule",{value:!0}),a.ro=void 0;var p=function(e,t){var r=Number(e);return r>=20&&(r%100==0||r%100>=20)?t[1]:t[0]},c=function(){function e(){}return e.prototype.use24HourTimeFormatByDefault=function(){return!0},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Eroare la generarea descrierii. Verificați sintaxa."},e.prototype.at=function(){return"La"},e.prototype.atSpace=function(){return"La "},e.prototype.atX0=function(){return"la %s"},e.prototype.atX0MinutesPastTheHour=function(){return"la și %s minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"la și %s secunde"},e.prototype.betweenX0AndX1=function(){return"între %s și %s"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", între zilele %s și %s ale lunii"},e.prototype.commaEveryDay=function(){return", în fiecare zi"},e.prototype.commaEveryX0Days=function(e){return p(e,[", la fiecare %s zile",", la fiecare %s de zile"])},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", la fiecare a %s-a zi a săptămânii"},e.prototype.commaEveryX0Months=function(e){return p(e,[", la fiecare %s luni",", la fiecare %s de luni"])},e.prototype.commaEveryX0Years=function(e){return p(e,[", o dată la %s ani",", o dată la %s de ani"])},e.prototype.commaOnDayX0OfTheMonth=function(){return", în ziua %s a lunii"},e.prototype.commaOnlyInX0=function(){return", doar în %s"},e.prototype.commaOnlyOnX0=function(){return", doar %s"},e.prototype.commaAndOnX0=function(){return", și %s"},e.prototype.commaOnThe=function(){return", în "},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", în ultima zi a lunii"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", în ultima zi lucrătoare a lunii"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(e){return p(e,[", %s zile înainte de ultima zi a lunii",", %s de zile înainte de ultima zi a lunii"])},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", în ultima %s a lunii"},e.prototype.commaOnTheX0OfTheMonth=function(){return", în %s a lunii"},e.prototype.commaX0ThroughX1=function(){return", de %s până %s"},e.prototype.commaAndX0ThroughX1=function(){return", și de %s până %s"},e.prototype.everyHour=function(){return"în fiecare oră"},e.prototype.everyMinute=function(){return"în fiecare minut"},e.prototype.everyMinuteBetweenX0AndX1=function(){return"În fiecare minut între %s și %s"},e.prototype.everySecond=function(){return"în fiecare secundă"},e.prototype.everyX0Hours=function(e){return p(e,["la fiecare %s ore","la fiecare %s de ore"])},e.prototype.everyX0Minutes=function(e){return p(e,["la fiecare %s minute","la fiecare %s de minute"])},e.prototype.everyX0Seconds=function(e){return p(e,["la fiecare %s secunde","la fiecare %s de secunde"])},e.prototype.fifth=function(){return"a cincea"},e.prototype.first=function(){return"prima"},e.prototype.firstWeekday=function(){return"prima zi lucrătoare"},e.prototype.fourth=function(){return"a patra"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"între minutele %s și %s"},e.prototype.second=function(){return"a doua"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"între secunda %s și secunda %s"},e.prototype.spaceAnd=function(){return" și"},e.prototype.spaceX0OfTheMonth=function(){return" %s a lunii"},e.prototype.lastDay=function(){return"ultima zi"},e.prototype.third=function(){return"a treia"},e.prototype.weekdayNearestDayX0=function(){return"cea mai apropiată zi lucrătoare de ziua %s"},e.prototype.commaMonthX0ThroughMonthX1=function(){return", din %s până în %s"},e.prototype.commaYearX0ThroughYearX1=function(){return", din %s până în %s"},e.prototype.atX0MinutesPastTheHourGt20=function(){return"la și %s de minute"},e.prototype.atX0SecondsPastTheMinuteGt20=function(){return"la și %s de secunde"},e.prototype.commaStartingX0=function(){return", pornire %s"},e.prototype.daysOfTheWeek=function(){return["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"]},e.prototype.monthsOfTheYear=function(){return["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},e.prototype.atReboot=function(){return"Rulează o dată, la pornire"},e.prototype.onTheHour=function(){return"fix la oră"},e}();return a.ro=c,u().locales.ro=new c,o})()));
|