rrule-temporal 1.1.0 → 1.1.2
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/README.md +2 -1
- package/dist/chunk-6A2XASAM.js +1335 -0
- package/dist/index.cjs +374 -291
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +1 -1
- package/dist/totext.cjs +417 -358
- package/dist/totext.js +43 -67
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -102,7 +102,7 @@ const next = rule.next();
|
|
|
102
102
|
const prev = rule.previous(new Date("2025-05-01T00:00Z"));
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
## Converting
|
|
105
|
+
## Converting to human-readable text
|
|
106
106
|
|
|
107
107
|
The `toText` helper converts a rule into a human readable description.
|
|
108
108
|
|
|
@@ -135,6 +135,7 @@ toText(weekly);
|
|
|
135
135
|
// "every week on Sunday at 10 AM UTC"
|
|
136
136
|
toText(weekly, "es");
|
|
137
137
|
// "cada semana en domingo a las 10 AM UTC"
|
|
138
|
+
```
|
|
138
139
|
|
|
139
140
|
`toText()` currently ships translations for **English (`en`)**,
|
|
140
141
|
**Spanish (`es`)**, **Hindi (`hi`)**, **Cantonese (`yue`)**, **Arabic (`ar`)**,
|