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.
@@ -6408,6 +6408,10 @@ exports.pt_PT = pt_PT;
6408
6408
 
6409
6409
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6410
6410
  exports.ro = void 0;
6411
+ var getPhraseByNumber = function (str, words) {
6412
+ var number = Number(str);
6413
+ return number >= 20 && (number % 100 === 0 || number % 100 >= 20) ? words[1] : words[0];
6414
+ };
6411
6415
  var ro = (function () {
6412
6416
  function ro() {
6413
6417
  }
@@ -6441,17 +6445,17 @@ var ro = (function () {
6441
6445
  ro.prototype.commaEveryDay = function () {
6442
6446
  return ", în fiecare zi";
6443
6447
  };
6444
- ro.prototype.commaEveryX0Days = function () {
6445
- return ", la fiecare %s zile";
6448
+ ro.prototype.commaEveryX0Days = function (s) {
6449
+ return getPhraseByNumber(s, [", la fiecare %s zile", ", la fiecare %s de zile"]);
6446
6450
  };
6447
6451
  ro.prototype.commaEveryX0DaysOfTheWeek = function () {
6448
6452
  return ", la fiecare a %s-a zi a săptămânii";
6449
6453
  };
6450
- ro.prototype.commaEveryX0Months = function () {
6451
- return ", la fiecare %s luni";
6454
+ ro.prototype.commaEveryX0Months = function (s) {
6455
+ return getPhraseByNumber(s, [", la fiecare %s luni", ", la fiecare %s de luni"]);
6452
6456
  };
6453
- ro.prototype.commaEveryX0Years = function () {
6454
- return ", o dată la %s ani";
6457
+ ro.prototype.commaEveryX0Years = function (s) {
6458
+ return getPhraseByNumber(s, [", o dată la %s ani", ", o dată la %s de ani"]);
6455
6459
  };
6456
6460
  ro.prototype.commaOnDayX0OfTheMonth = function () {
6457
6461
  return ", în ziua %s a lunii";
@@ -6474,8 +6478,11 @@ var ro = (function () {
6474
6478
  ro.prototype.commaOnTheLastWeekdayOfTheMonth = function () {
6475
6479
  return ", în ultima zi lucrătoare a lunii";
6476
6480
  };
6477
- ro.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
6478
- return ", %s zile înainte de ultima zi a lunii";
6481
+ ro.prototype.commaDaysBeforeTheLastDayOfTheMonth = function (s) {
6482
+ return getPhraseByNumber(s, [
6483
+ ", %s zile înainte de ultima zi a lunii",
6484
+ ", %s de zile înainte de ultima zi a lunii",
6485
+ ]);
6479
6486
  };
6480
6487
  ro.prototype.commaOnTheLastX0OfTheMonth = function () {
6481
6488
  return ", în ultima %s a lunii";
@@ -6501,14 +6508,14 @@ var ro = (function () {
6501
6508
  ro.prototype.everySecond = function () {
6502
6509
  return "în fiecare secundă";
6503
6510
  };
6504
- ro.prototype.everyX0Hours = function () {
6505
- return "la fiecare %s ore";
6511
+ ro.prototype.everyX0Hours = function (s) {
6512
+ return getPhraseByNumber(s, ["la fiecare %s ore", "la fiecare %s de ore"]);
6506
6513
  };
6507
- ro.prototype.everyX0Minutes = function () {
6508
- return "la fiecare %s minute";
6514
+ ro.prototype.everyX0Minutes = function (s) {
6515
+ return getPhraseByNumber(s, ["la fiecare %s minute", "la fiecare %s de minute"]);
6509
6516
  };
6510
- ro.prototype.everyX0Seconds = function () {
6511
- return "la fiecare %s secunde";
6517
+ ro.prototype.everyX0Seconds = function (s) {
6518
+ return getPhraseByNumber(s, ["la fiecare %s secunde", "la fiecare %s de secunde"]);
6512
6519
  };
6513
6520
  ro.prototype.fifth = function () {
6514
6521
  return "a cincea";
@@ -6517,7 +6524,7 @@ var ro = (function () {
6517
6524
  return "prima";
6518
6525
  };
6519
6526
  ro.prototype.firstWeekday = function () {
6520
- return "prima zi a săptămânii";
6527
+ return "prima zi lucrătoare";
6521
6528
  };
6522
6529
  ro.prototype.fourth = function () {
6523
6530
  return "a patra";
@@ -6544,7 +6551,7 @@ var ro = (function () {
6544
6551
  return "a treia";
6545
6552
  };
6546
6553
  ro.prototype.weekdayNearestDayX0 = function () {
6547
- return "cea mai apropiată zi a săptămânii de ziua %s";
6554
+ return "cea mai apropiată zi lucrătoare de ziua %s";
6548
6555
  };
6549
6556
  ro.prototype.commaMonthX0ThroughMonthX1 = function () {
6550
6557
  return ", din %s până în %s";