cronstrue 2.19.0 → 2.21.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.
Files changed (74) hide show
  1. package/README.md +3 -2
  2. package/dist/cronstrue-i18n.js +191 -1
  3. package/dist/cronstrue-i18n.min.js +1 -1
  4. package/dist/i18n/allLocales.d.ts +1 -0
  5. package/dist/i18n/locales/ar.d.ts +56 -0
  6. package/locales/af.js +3 -9
  7. package/locales/af.min.js +1 -1
  8. package/locales/ar.js +287 -0
  9. package/locales/ar.min.js +1 -0
  10. package/locales/be.js +3 -9
  11. package/locales/be.min.js +1 -1
  12. package/locales/ca.js +3 -9
  13. package/locales/ca.min.js +1 -1
  14. package/locales/cs.js +3 -9
  15. package/locales/cs.min.js +1 -1
  16. package/locales/da.js +3 -9
  17. package/locales/da.min.js +1 -1
  18. package/locales/de.js +3 -9
  19. package/locales/de.min.js +1 -1
  20. package/locales/en.js +3 -9
  21. package/locales/en.min.js +1 -1
  22. package/locales/es.js +3 -9
  23. package/locales/es.min.js +1 -1
  24. package/locales/fa.js +3 -9
  25. package/locales/fa.min.js +1 -1
  26. package/locales/fi.js +3 -9
  27. package/locales/fi.min.js +1 -1
  28. package/locales/fr.js +3 -9
  29. package/locales/fr.min.js +1 -1
  30. package/locales/he.js +3 -9
  31. package/locales/he.min.js +1 -1
  32. package/locales/hu.js +3 -9
  33. package/locales/hu.min.js +1 -1
  34. package/locales/id.js +3 -9
  35. package/locales/id.min.js +1 -1
  36. package/locales/it.js +3 -9
  37. package/locales/it.min.js +1 -1
  38. package/locales/ja.js +3 -9
  39. package/locales/ja.min.js +1 -1
  40. package/locales/ko.js +3 -9
  41. package/locales/ko.min.js +1 -1
  42. package/locales/nb.js +3 -9
  43. package/locales/nb.min.js +1 -1
  44. package/locales/nl.js +3 -9
  45. package/locales/nl.min.js +1 -1
  46. package/locales/pl.js +3 -9
  47. package/locales/pl.min.js +1 -1
  48. package/locales/pt_BR.js +3 -9
  49. package/locales/pt_BR.min.js +1 -1
  50. package/locales/pt_PT.js +3 -9
  51. package/locales/pt_PT.min.js +1 -1
  52. package/locales/ro.js +3 -9
  53. package/locales/ro.min.js +1 -1
  54. package/locales/ru.js +3 -9
  55. package/locales/ru.min.js +1 -1
  56. package/locales/sk.js +3 -9
  57. package/locales/sk.min.js +1 -1
  58. package/locales/sl.js +3 -9
  59. package/locales/sl.min.js +1 -1
  60. package/locales/sv.js +3 -9
  61. package/locales/sv.min.js +1 -1
  62. package/locales/sw.js +3 -9
  63. package/locales/sw.min.js +1 -1
  64. package/locales/th.js +3 -9
  65. package/locales/th.min.js +1 -1
  66. package/locales/tr.js +3 -9
  67. package/locales/tr.min.js +1 -1
  68. package/locales/uk.js +3 -9
  69. package/locales/uk.min.js +1 -1
  70. package/locales/zh_CN.js +3 -9
  71. package/locales/zh_CN.min.js +1 -1
  72. package/locales/zh_TW.js +3 -9
  73. package/locales/zh_TW.min.js +1 -1
  74. package/package.json +1 -1
package/README.md CHANGED
@@ -9,7 +9,7 @@ This library was ported from the original C# implementation called [cron-express
9
9
  - Supports all cron expression special characters including * / , - ? L W, #
10
10
  - Supports 5, 6 (w/ seconds or year), or 7 (w/ seconds and year) part cron expressions
11
11
  - Supports [Quartz Job Scheduler](http://www.quartz-scheduler.org/) cron expressions
12
- - i18n support with 30 languages
12
+ - i18n support with 34 languages
13
13
 
14
14
  ## Demo
15
15
 
@@ -152,7 +152,7 @@ import 'cronstrue/locales/fr';
152
152
  import 'cronstrue/locales/es';
153
153
 
154
154
  // Browser
155
- <script src="https://unpkg.com/cronstrue@latest/cronstrue.min.js" async></script>
155
+ <script src="https://unpkg.com/cronstrue@latest/dist/cronstrue.min.js" async></script>
156
156
  <script src="https://unpkg.com/cronstrue@latest/locales/fr.min.js" async></script>
157
157
  <script src="https://unpkg.com/cronstrue@latest/locales/es.min.js" async></script>
158
158
 
@@ -173,6 +173,7 @@ No, cRonstrue does not support this. This library simply describes a cron expre
173
173
  ### Supported Locales
174
174
 
175
175
  - en - English ([Brady Holt](https://github.com/bradymholt))
176
+ - ar - Arabic ([Mohamed Nehad Shalabi](https://github.com/mohamednehad450))
176
177
  - ca - Catalan ([Francisco Javier Barrena](https://github.com/fjbarrena))
177
178
  - cs - Czech ([hanbar](https://github.com/hanbar))
178
179
  - es - Spanish ([Ivan Santos](https://github.com/ivansg))
@@ -679,7 +679,7 @@ exports.ExpressionDescriptor = ExpressionDescriptor;
679
679
 
680
680
 
681
681
  Object.defineProperty(exports, "__esModule", ({ value: true }));
682
- exports.th = exports.af = exports.hu = exports.be = exports.ca = exports.fa = exports.sw = exports.sl = exports.fi = exports.sk = exports.cs = exports.he = exports.ja = exports.zh_TW = exports.zh_CN = exports.uk = exports.tr = exports.ru = exports.ro = exports.pt_PT = exports.pt_BR = exports.pl = exports.sv = exports.nb = exports.nl = exports.ko = exports.id = exports.it = exports.fr = exports.es = exports.de = exports.da = exports.en = void 0;
682
+ exports.ar = exports.th = exports.af = exports.hu = exports.be = exports.ca = exports.fa = exports.sw = exports.sl = exports.fi = exports.sk = exports.cs = exports.he = exports.ja = exports.zh_TW = exports.zh_CN = exports.uk = exports.tr = exports.ru = exports.ro = exports.pt_PT = exports.pt_BR = exports.pl = exports.sv = exports.nb = exports.nl = exports.ko = exports.id = exports.it = exports.fr = exports.es = exports.de = exports.da = exports.en = void 0;
683
683
  var en_1 = __webpack_require__(751);
684
684
  Object.defineProperty(exports, "en", ({ enumerable: true, get: function () { return en_1.en; } }));
685
685
  var da_1 = __webpack_require__(904);
@@ -746,6 +746,8 @@ var af_1 = __webpack_require__(675);
746
746
  Object.defineProperty(exports, "af", ({ enumerable: true, get: function () { return af_1.af; } }));
747
747
  var th_1 = __webpack_require__(312);
748
748
  Object.defineProperty(exports, "th", ({ enumerable: true, get: function () { return th_1.th; } }));
749
+ var ar_1 = __webpack_require__(935);
750
+ Object.defineProperty(exports, "ar", ({ enumerable: true, get: function () { return ar_1.ar; } }));
749
751
 
750
752
 
751
753
  /***/ }),
@@ -960,6 +962,194 @@ var af = (function () {
960
962
  exports.af = af;
961
963
 
962
964
 
965
+ /***/ }),
966
+
967
+ /***/ 935:
968
+ /***/ ((__unused_webpack_module, exports) => {
969
+
970
+
971
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
972
+ exports.ar = void 0;
973
+ var ar = (function () {
974
+ function ar() {
975
+ }
976
+ ar.prototype.atX0SecondsPastTheMinuteGt20 = function () {
977
+ return null;
978
+ };
979
+ ar.prototype.atX0MinutesPastTheHourGt20 = function () {
980
+ return null;
981
+ };
982
+ ar.prototype.commaMonthX0ThroughMonthX1 = function () {
983
+ return null;
984
+ };
985
+ ar.prototype.commaYearX0ThroughYearX1 = function () {
986
+ return null;
987
+ };
988
+ ar.prototype.use24HourTimeFormatByDefault = function () {
989
+ return false;
990
+ };
991
+ ar.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {
992
+ return "حدث خطأ في إنشاء وصف المصطلح٠ تأكد من تركيب مصطلح الكرون";
993
+ };
994
+ ar.prototype.everyMinute = function () {
995
+ return "كل دقيقة";
996
+ };
997
+ ar.prototype.everyHour = function () {
998
+ return "كل ساعة";
999
+ };
1000
+ ar.prototype.atSpace = function () {
1001
+ return " ";
1002
+ };
1003
+ ar.prototype.everyMinuteBetweenX0AndX1 = function () {
1004
+ return "كل دقيقة بين %s و %s";
1005
+ };
1006
+ ar.prototype.at = function () {
1007
+ return "";
1008
+ };
1009
+ ar.prototype.spaceAnd = function () {
1010
+ return " و";
1011
+ };
1012
+ ar.prototype.everySecond = function () {
1013
+ return "كل ثانية";
1014
+ };
1015
+ ar.prototype.everyX0Seconds = function () {
1016
+ return "كل %s ثواني";
1017
+ };
1018
+ ar.prototype.secondsX0ThroughX1PastTheMinute = function () {
1019
+ return "الثواني %s حتى %s من بداية الدقيقة";
1020
+ };
1021
+ ar.prototype.atX0SecondsPastTheMinute = function () {
1022
+ return "الثانية %s من بداية الدقيقة";
1023
+ };
1024
+ ar.prototype.everyX0Minutes = function () {
1025
+ return "كل %s دقائق";
1026
+ };
1027
+ ar.prototype.minutesX0ThroughX1PastTheHour = function () {
1028
+ return "الدقائق %s حتى %s من بداية الساعة";
1029
+ };
1030
+ ar.prototype.atX0MinutesPastTheHour = function () {
1031
+ return "الدقيقة %s من بداية الساعة";
1032
+ };
1033
+ ar.prototype.everyX0Hours = function () {
1034
+ return "كل %s ساعات";
1035
+ };
1036
+ ar.prototype.betweenX0AndX1 = function () {
1037
+ return "بين %s و %s";
1038
+ };
1039
+ ar.prototype.atX0 = function () {
1040
+ return "%s";
1041
+ };
1042
+ ar.prototype.commaEveryDay = function () {
1043
+ return "، كل يوم";
1044
+ };
1045
+ ar.prototype.commaEveryX0DaysOfTheWeek = function () {
1046
+ return "، كل %s من أيام الأسبوع";
1047
+ };
1048
+ ar.prototype.commaX0ThroughX1 = function () {
1049
+ return "، %s حتى %s";
1050
+ };
1051
+ ar.prototype.commaAndX0ThroughX1 = function () {
1052
+ return "، و %s حتى %s";
1053
+ };
1054
+ ar.prototype.first = function () {
1055
+ return "أول";
1056
+ };
1057
+ ar.prototype.second = function () {
1058
+ return "ثاني";
1059
+ };
1060
+ ar.prototype.third = function () {
1061
+ return "ثالث";
1062
+ };
1063
+ ar.prototype.fourth = function () {
1064
+ return "رابع";
1065
+ };
1066
+ ar.prototype.fifth = function () {
1067
+ return "خامس";
1068
+ };
1069
+ ar.prototype.commaOnThe = function () {
1070
+ return "، في ال";
1071
+ };
1072
+ ar.prototype.spaceX0OfTheMonth = function () {
1073
+ return " %s من الشهر";
1074
+ };
1075
+ ar.prototype.lastDay = function () {
1076
+ return "اليوم الأخير";
1077
+ };
1078
+ ar.prototype.commaOnTheLastX0OfTheMonth = function () {
1079
+ return "، في اخر %s من الشهر";
1080
+ };
1081
+ ar.prototype.commaOnlyOnX0 = function () {
1082
+ return "، %s فقط";
1083
+ };
1084
+ ar.prototype.commaAndOnX0 = function () {
1085
+ return "، وفي %s";
1086
+ };
1087
+ ar.prototype.commaEveryX0Months = function () {
1088
+ return "، كل %s أشهر";
1089
+ };
1090
+ ar.prototype.commaOnlyInX0 = function () {
1091
+ return "، %s فقط";
1092
+ };
1093
+ ar.prototype.commaOnTheLastDayOfTheMonth = function () {
1094
+ return "، في اخر يوم من الشهر";
1095
+ };
1096
+ ar.prototype.commaOnTheLastWeekdayOfTheMonth = function () {
1097
+ return "، في اخر يوم أسبوع من الشهر";
1098
+ };
1099
+ ar.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
1100
+ return "، %s أيام قبل اخر يوم من الشهر";
1101
+ };
1102
+ ar.prototype.firstWeekday = function () {
1103
+ return "اول ايام الأسبوع";
1104
+ };
1105
+ ar.prototype.weekdayNearestDayX0 = function () {
1106
+ return "يوم الأسبوع الأقرب ليوم %s";
1107
+ };
1108
+ ar.prototype.commaOnTheX0OfTheMonth = function () {
1109
+ return "، في %s من الشهر";
1110
+ };
1111
+ ar.prototype.commaEveryX0Days = function () {
1112
+ return "، كل %s أيام";
1113
+ };
1114
+ ar.prototype.commaBetweenDayX0AndX1OfTheMonth = function () {
1115
+ return "، بين يوم %s و %s من الشهر";
1116
+ };
1117
+ ar.prototype.commaOnDayX0OfTheMonth = function () {
1118
+ return "، في اليوم %s من الشهر";
1119
+ };
1120
+ ar.prototype.commaEveryHour = function () {
1121
+ return "، كل ساعة";
1122
+ };
1123
+ ar.prototype.commaEveryX0Years = function () {
1124
+ return "، كل %s سنوات";
1125
+ };
1126
+ ar.prototype.commaStartingX0 = function () {
1127
+ return "، بداية من %s";
1128
+ };
1129
+ ar.prototype.daysOfTheWeek = function () {
1130
+ return ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"];
1131
+ };
1132
+ ar.prototype.monthsOfTheYear = function () {
1133
+ return [
1134
+ "يناير",
1135
+ "فبراير",
1136
+ "مارس",
1137
+ "ابريل",
1138
+ "مايو",
1139
+ "يونيو",
1140
+ "يوليو",
1141
+ "أغسطس",
1142
+ "سبتمبر",
1143
+ "أكتوبر",
1144
+ "نوفمبر",
1145
+ "ديسمبر",
1146
+ ];
1147
+ };
1148
+ return ar;
1149
+ }());
1150
+ exports.ar = ar;
1151
+
1152
+
963
1153
  /***/ }),
964
1154
 
965
1155
  /***/ 445: