rrule-temporal 1.1.3 → 1.1.5
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 +4 -1
- package/dist/chunk-KT55S4C7.js +1590 -0
- package/dist/index.cjs +553 -358
- package/dist/index.d.cts +33 -9
- package/dist/index.d.ts +33 -9
- package/dist/index.js +1 -1
- package/dist/totext.cjs +554 -359
- package/dist/totext.js +2 -2
- package/package.json +1 -1
package/dist/totext.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RRuleTemporal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KT55S4C7.js";
|
|
4
4
|
|
|
5
5
|
// src/totext.ts
|
|
6
6
|
var en = {
|
|
@@ -398,7 +398,7 @@ var zh = {
|
|
|
398
398
|
ordinal: (n) => n < 0 ? "\u6700\u540E" : `\u7B2C${Math.abs(n)}`
|
|
399
399
|
};
|
|
400
400
|
var ALL_LOCALES = { en, es, hi, yue, ar, he, zh };
|
|
401
|
-
var env = process.env.TOTEXT_LANGS;
|
|
401
|
+
var env = typeof process !== "undefined" && process.env ? process.env.TOTEXT_LANGS : void 0;
|
|
402
402
|
var active = env ? env.split(",").map((s) => s.trim()).filter(Boolean) : Object.keys(ALL_LOCALES);
|
|
403
403
|
var LOCALES = {};
|
|
404
404
|
for (const l of active) {
|