@visulima/humanizer 2.0.3 → 2.0.4
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/bytes.d.ts +131 -0
- package/dist/duration.d.ts +3 -0
- package/dist/index.d.ts +4 -126
- package/dist/language/af.d.ts +2 -5
- package/dist/language/am.d.ts +2 -5
- package/dist/language/am.js +1 -1
- package/dist/language/ar.d.ts +2 -24
- package/dist/language/ar.js +1 -1
- package/dist/language/bg.d.ts +2 -5
- package/dist/language/bg.js +1 -1
- package/dist/language/bn.d.ts +2 -5
- package/dist/language/bn.js +1 -1
- package/dist/language/ca.d.ts +2 -5
- package/dist/language/ckb.d.ts +2 -5
- package/dist/language/ckb.js +1 -1
- package/dist/language/cs.d.ts +2 -5
- package/dist/language/cy.d.ts +2 -5
- package/dist/language/cy.js +1 -1
- package/dist/language/da.d.ts +2 -5
- package/dist/language/da.js +1 -1
- package/dist/language/de.d.ts +2 -5
- package/dist/language/de.js +1 -1
- package/dist/language/el.d.ts +2 -5
- package/dist/language/en.d.ts +3 -6
- package/dist/language/eo.d.ts +2 -5
- package/dist/language/es.d.ts +2 -5
- package/dist/language/et.d.ts +2 -5
- package/dist/language/et.js +1 -1
- package/dist/language/eu.d.ts +2 -5
- package/dist/language/fa.d.ts +2 -5
- package/dist/language/fi.d.ts +2 -5
- package/dist/language/fo.d.ts +2 -5
- package/dist/language/fo.js +1 -1
- package/dist/language/fr.d.ts +2 -5
- package/dist/language/he.d.ts +2 -5
- package/dist/language/hi.d.ts +2 -5
- package/dist/language/hi.js +1 -1
- package/dist/language/hr.d.ts +2 -5
- package/dist/language/hu.d.ts +2 -5
- package/dist/language/id.d.ts +2 -5
- package/dist/language/id.js +1 -1
- package/dist/language/is.d.ts +2 -5
- package/dist/language/is.js +1 -1
- package/dist/language/it.d.ts +2 -5
- package/dist/language/it.js +1 -1
- package/dist/language/ja.d.ts +2 -5
- package/dist/language/km.d.ts +2 -5
- package/dist/language/km.js +1 -1
- package/dist/language/kn.d.ts +2 -5
- package/dist/language/ko.d.ts +2 -5
- package/dist/language/ku.d.ts +2 -5
- package/dist/language/lo.d.ts +2 -5
- package/dist/language/lt.d.ts +2 -5
- package/dist/language/lv.d.ts +2 -5
- package/dist/language/lv.js +1 -1
- package/dist/language/mk.d.ts +2 -5
- package/dist/language/mn.d.ts +2 -5
- package/dist/language/mr.d.ts +2 -5
- package/dist/language/ms.d.ts +2 -5
- package/dist/language/ms.js +1 -1
- package/dist/language/nl.d.ts +2 -5
- package/dist/language/no.d.ts +2 -5
- package/dist/language/pl.d.ts +2 -5
- package/dist/language/pl.js +1 -1
- package/dist/language/pt.d.ts +2 -5
- package/dist/language/ro.d.ts +2 -5
- package/dist/language/ro.js +1 -1
- package/dist/language/ru.d.ts +2 -5
- package/dist/language/sk.d.ts +2 -5
- package/dist/language/sl.d.ts +2 -5
- package/dist/language/sq.d.ts +2 -5
- package/dist/language/sq.js +1 -1
- package/dist/language/sr.d.ts +2 -5
- package/dist/language/sr.js +1 -1
- package/dist/language/sr_Latn.d.ts +1 -5
- package/dist/language/sv.d.ts +2 -5
- package/dist/language/sw.d.ts +2 -24
- package/dist/language/ta.d.ts +2 -5
- package/dist/language/te.d.ts +2 -5
- package/dist/language/te.js +1 -1
- package/dist/language/th.d.ts +2 -5
- package/dist/language/tr.d.ts +2 -5
- package/dist/language/uk.d.ts +2 -5
- package/dist/language/ur.d.ts +2 -5
- package/dist/language/util/create-duration-language.d.ts +2 -4
- package/dist/language/util/duration/get-czech-or-slovak-form.d.ts +1 -2
- package/dist/language/util/duration/get-slavic-form.d.ts +1 -2
- package/dist/language/util/validate-duration-language.d.ts +2 -4
- package/dist/language/uz.d.ts +2 -5
- package/dist/language/uz_CYR.d.ts +2 -5
- package/dist/language/vi.d.ts +2 -5
- package/dist/language/zh_CN.d.ts +2 -5
- package/dist/language/zh_TW.d.ts +2 -5
- package/dist/parse-duration.d.ts +9 -0
- package/dist/types.d.ts +130 -0
- package/package.json +1 -1
- package/dist/packem_shared/types-H2jJHSlI.d.ts +0 -72
package/dist/bytes.d.ts
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { FormateByteOptions, ParseByteOptions } from "./types.d.ts";
|
|
2
|
+
declare const BYTE_SIZES: {
|
|
3
|
+
readonly iec: readonly [{
|
|
4
|
+
readonly long: "Bytes";
|
|
5
|
+
readonly short: "B";
|
|
6
|
+
}, {
|
|
7
|
+
readonly long: "Kibibytes";
|
|
8
|
+
readonly short: "KiB";
|
|
9
|
+
}, {
|
|
10
|
+
readonly long: "Mebibytes";
|
|
11
|
+
readonly short: "MiB";
|
|
12
|
+
}, {
|
|
13
|
+
readonly long: "Gibibytes";
|
|
14
|
+
readonly short: "GiB";
|
|
15
|
+
}, {
|
|
16
|
+
readonly long: "Tebibytes";
|
|
17
|
+
readonly short: "TiB";
|
|
18
|
+
}, {
|
|
19
|
+
readonly long: "Pebibytes";
|
|
20
|
+
readonly short: "PiB";
|
|
21
|
+
}, {
|
|
22
|
+
readonly long: "Exbibytes";
|
|
23
|
+
readonly short: "EiB";
|
|
24
|
+
}, {
|
|
25
|
+
readonly long: "Zebibytes";
|
|
26
|
+
readonly short: "ZiB";
|
|
27
|
+
}, {
|
|
28
|
+
readonly long: "Yobibytes";
|
|
29
|
+
readonly short: "YiB";
|
|
30
|
+
}];
|
|
31
|
+
readonly iec_octet: readonly [{
|
|
32
|
+
readonly long: "Octets";
|
|
33
|
+
readonly short: "o";
|
|
34
|
+
}, {
|
|
35
|
+
readonly long: "Kibioctets";
|
|
36
|
+
readonly short: "Kio";
|
|
37
|
+
}, {
|
|
38
|
+
readonly long: "Mebioctets";
|
|
39
|
+
readonly short: "Mio";
|
|
40
|
+
}, {
|
|
41
|
+
readonly long: "Gibioctets";
|
|
42
|
+
readonly short: "Gio";
|
|
43
|
+
}, {
|
|
44
|
+
readonly long: "Tebioctets";
|
|
45
|
+
readonly short: "Tio";
|
|
46
|
+
}, {
|
|
47
|
+
readonly long: "Pebioctets";
|
|
48
|
+
readonly short: "Pio";
|
|
49
|
+
}, {
|
|
50
|
+
readonly long: "Exbioctets";
|
|
51
|
+
readonly short: "Eio";
|
|
52
|
+
}, {
|
|
53
|
+
readonly long: "Zebioctets";
|
|
54
|
+
readonly short: "Zio";
|
|
55
|
+
}, {
|
|
56
|
+
readonly long: "Yobioctets";
|
|
57
|
+
readonly short: "Yio";
|
|
58
|
+
}];
|
|
59
|
+
readonly metric: readonly [{
|
|
60
|
+
readonly long: "Bytes";
|
|
61
|
+
readonly short: "Bytes";
|
|
62
|
+
}, {
|
|
63
|
+
readonly long: "Kilobytes";
|
|
64
|
+
readonly short: "KB";
|
|
65
|
+
}, {
|
|
66
|
+
readonly long: "Megabytes";
|
|
67
|
+
readonly short: "MB";
|
|
68
|
+
}, {
|
|
69
|
+
readonly long: "Gigabytes";
|
|
70
|
+
readonly short: "GB";
|
|
71
|
+
}, {
|
|
72
|
+
readonly long: "Terabytes";
|
|
73
|
+
readonly short: "TB";
|
|
74
|
+
}, {
|
|
75
|
+
readonly long: "Petabytes";
|
|
76
|
+
readonly short: "PB";
|
|
77
|
+
}, {
|
|
78
|
+
readonly long: "Exabytes";
|
|
79
|
+
readonly short: "EB";
|
|
80
|
+
}, {
|
|
81
|
+
readonly long: "Zettabytes";
|
|
82
|
+
readonly short: "ZB";
|
|
83
|
+
}, {
|
|
84
|
+
readonly long: "Yottabytes";
|
|
85
|
+
readonly short: "YB";
|
|
86
|
+
}];
|
|
87
|
+
readonly metric_octet: readonly [{
|
|
88
|
+
readonly long: "Octets";
|
|
89
|
+
readonly short: "o";
|
|
90
|
+
}, {
|
|
91
|
+
readonly long: "Kilo-octets";
|
|
92
|
+
readonly short: "ko";
|
|
93
|
+
}, {
|
|
94
|
+
readonly long: "Mega-octets";
|
|
95
|
+
readonly short: "Mo";
|
|
96
|
+
}, {
|
|
97
|
+
readonly long: "Giga-octets";
|
|
98
|
+
readonly short: "Go";
|
|
99
|
+
}, {
|
|
100
|
+
readonly long: "Tera-octets";
|
|
101
|
+
readonly short: "To";
|
|
102
|
+
}, {
|
|
103
|
+
readonly long: "Peta-octets";
|
|
104
|
+
readonly short: "Po";
|
|
105
|
+
}, {
|
|
106
|
+
readonly long: "Exa-octets";
|
|
107
|
+
readonly short: "Eo";
|
|
108
|
+
}, {
|
|
109
|
+
readonly long: "Zetta-octets";
|
|
110
|
+
readonly short: "Zo";
|
|
111
|
+
}, {
|
|
112
|
+
readonly long: "Yotta-octets";
|
|
113
|
+
readonly short: "Yo";
|
|
114
|
+
}];
|
|
115
|
+
};
|
|
116
|
+
type ByteSize = (typeof BYTE_SIZES)["iec_octet"][number]["short"] | (typeof BYTE_SIZES)["iec"][number]["short"] | (typeof BYTE_SIZES)["metric_octet"][number]["short"] | (typeof BYTE_SIZES)["metric"][number]["short"];
|
|
117
|
+
/**
|
|
118
|
+
* Parse the given bytesize string and return bytes.
|
|
119
|
+
* @param value The string to parse
|
|
120
|
+
* @param options Options for the conversion from string to bytes
|
|
121
|
+
* @throws Error if `value` is not a non-empty string or a number
|
|
122
|
+
*/
|
|
123
|
+
export declare const parseBytes: (value: string, options?: ParseByteOptions) => number;
|
|
124
|
+
/**
|
|
125
|
+
* Formats the given bytes into a human-readable string.
|
|
126
|
+
* Per default, it will use the closest unit to the given value.
|
|
127
|
+
* @param bytes The bytes to format
|
|
128
|
+
* @param options Options for the conversion from bytes to string
|
|
129
|
+
*/
|
|
130
|
+
export declare const formatBytes: (bytes: number, options?: FormateByteOptions<ByteSize>) => string;
|
|
131
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,126 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
readonly iec: readonly [{
|
|
6
|
-
readonly long: "Bytes";
|
|
7
|
-
readonly short: "B";
|
|
8
|
-
}, {
|
|
9
|
-
readonly long: "Kibibytes";
|
|
10
|
-
readonly short: "KiB";
|
|
11
|
-
}, {
|
|
12
|
-
readonly long: "Mebibytes";
|
|
13
|
-
readonly short: "MiB";
|
|
14
|
-
}, {
|
|
15
|
-
readonly long: "Gibibytes";
|
|
16
|
-
readonly short: "GiB";
|
|
17
|
-
}, {
|
|
18
|
-
readonly long: "Tebibytes";
|
|
19
|
-
readonly short: "TiB";
|
|
20
|
-
}, {
|
|
21
|
-
readonly long: "Pebibytes";
|
|
22
|
-
readonly short: "PiB";
|
|
23
|
-
}, {
|
|
24
|
-
readonly long: "Exbibytes";
|
|
25
|
-
readonly short: "EiB";
|
|
26
|
-
}, {
|
|
27
|
-
readonly long: "Zebibytes";
|
|
28
|
-
readonly short: "ZiB";
|
|
29
|
-
}, {
|
|
30
|
-
readonly long: "Yobibytes";
|
|
31
|
-
readonly short: "YiB";
|
|
32
|
-
}];
|
|
33
|
-
readonly iec_octet: readonly [{
|
|
34
|
-
readonly long: "Octets";
|
|
35
|
-
readonly short: "o";
|
|
36
|
-
}, {
|
|
37
|
-
readonly long: "Kibioctets";
|
|
38
|
-
readonly short: "Kio";
|
|
39
|
-
}, {
|
|
40
|
-
readonly long: "Mebioctets";
|
|
41
|
-
readonly short: "Mio";
|
|
42
|
-
}, {
|
|
43
|
-
readonly long: "Gibioctets";
|
|
44
|
-
readonly short: "Gio";
|
|
45
|
-
}, {
|
|
46
|
-
readonly long: "Tebioctets";
|
|
47
|
-
readonly short: "Tio";
|
|
48
|
-
}, {
|
|
49
|
-
readonly long: "Pebioctets";
|
|
50
|
-
readonly short: "Pio";
|
|
51
|
-
}, {
|
|
52
|
-
readonly long: "Exbioctets";
|
|
53
|
-
readonly short: "Eio";
|
|
54
|
-
}, {
|
|
55
|
-
readonly long: "Zebioctets";
|
|
56
|
-
readonly short: "Zio";
|
|
57
|
-
}, {
|
|
58
|
-
readonly long: "Yobioctets";
|
|
59
|
-
readonly short: "Yio";
|
|
60
|
-
}];
|
|
61
|
-
readonly metric: readonly [{
|
|
62
|
-
readonly long: "Bytes";
|
|
63
|
-
readonly short: "Bytes";
|
|
64
|
-
}, {
|
|
65
|
-
readonly long: "Kilobytes";
|
|
66
|
-
readonly short: "KB";
|
|
67
|
-
}, {
|
|
68
|
-
readonly long: "Megabytes";
|
|
69
|
-
readonly short: "MB";
|
|
70
|
-
}, {
|
|
71
|
-
readonly long: "Gigabytes";
|
|
72
|
-
readonly short: "GB";
|
|
73
|
-
}, {
|
|
74
|
-
readonly long: "Terabytes";
|
|
75
|
-
readonly short: "TB";
|
|
76
|
-
}, {
|
|
77
|
-
readonly long: "Petabytes";
|
|
78
|
-
readonly short: "PB";
|
|
79
|
-
}, {
|
|
80
|
-
readonly long: "Exabytes";
|
|
81
|
-
readonly short: "EB";
|
|
82
|
-
}, {
|
|
83
|
-
readonly long: "Zettabytes";
|
|
84
|
-
readonly short: "ZB";
|
|
85
|
-
}, {
|
|
86
|
-
readonly long: "Yottabytes";
|
|
87
|
-
readonly short: "YB";
|
|
88
|
-
}];
|
|
89
|
-
readonly metric_octet: readonly [{
|
|
90
|
-
readonly long: "Octets";
|
|
91
|
-
readonly short: "o";
|
|
92
|
-
}, {
|
|
93
|
-
readonly long: "Kilo-octets";
|
|
94
|
-
readonly short: "ko";
|
|
95
|
-
}, {
|
|
96
|
-
readonly long: "Mega-octets";
|
|
97
|
-
readonly short: "Mo";
|
|
98
|
-
}, {
|
|
99
|
-
readonly long: "Giga-octets";
|
|
100
|
-
readonly short: "Go";
|
|
101
|
-
}, {
|
|
102
|
-
readonly long: "Tera-octets";
|
|
103
|
-
readonly short: "To";
|
|
104
|
-
}, {
|
|
105
|
-
readonly long: "Peta-octets";
|
|
106
|
-
readonly short: "Po";
|
|
107
|
-
}, {
|
|
108
|
-
readonly long: "Exa-octets";
|
|
109
|
-
readonly short: "Eo";
|
|
110
|
-
}, {
|
|
111
|
-
readonly long: "Zetta-octets";
|
|
112
|
-
readonly short: "Zo";
|
|
113
|
-
}, {
|
|
114
|
-
readonly long: "Yotta-octets";
|
|
115
|
-
readonly short: "Yo";
|
|
116
|
-
}];
|
|
117
|
-
};
|
|
118
|
-
type ByteSize = (typeof BYTE_SIZES)["iec_octet"][number]["short"] | (typeof BYTE_SIZES)["iec"][number]["short"] | (typeof BYTE_SIZES)["metric_octet"][number]["short"] | (typeof BYTE_SIZES)["metric"][number]["short"];
|
|
119
|
-
declare const parseBytes: (value: string, options?: ParseByteOptions) => number;
|
|
120
|
-
declare const formatBytes: (bytes: number, options?: FormateByteOptions<ByteSize>) => string;
|
|
121
|
-
|
|
122
|
-
declare const duration: (milliseconds: number, options?: DurationOptions) => string;
|
|
123
|
-
|
|
124
|
-
declare const parseDuration: (value: string, options?: ParseDurationOptions) => number | undefined;
|
|
125
|
-
|
|
126
|
-
export { DurationOptions, FormateByteOptions, ParseByteOptions, duration, formatBytes, parseBytes, parseDuration };
|
|
1
|
+
export { formatBytes, parseBytes } from "./bytes.d.ts";
|
|
2
|
+
export { default as duration } from "./duration.d.ts";
|
|
3
|
+
export { default as parseDuration } from "./parse-duration.d.ts";
|
|
4
|
+
export type { DurationDigitReplacements, DurationLanguage, DurationOptions, DurationPiece, DurationUnit, DurationUnitMeasures, DurationUnitName, FormateByteOptions, IntlLocale, ParseByteOptions, } from "./types.d.ts";
|
package/dist/language/af.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/am.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/am.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"./util/create-duration-language.js";const s={ሚሊሰከንድ:"ms",ሰከንድ:"s",ሰዓት:"h",ሳምንት:"w",ቀን:"d",ወር:"mo",ዓመት:"y",ደቂቃ:"m"},
|
|
1
|
+
import o from"./util/create-duration-language.js";const s={ሚሊሰከንድ:"ms",ሰከንድ:"s",ሰዓት:"h",ሳምንት:"w",ቀን:"d",ወር:"mo",ዓመት:"y",ደቂቃ:"m"},m=o("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ","በአንድ %s","%s በፊት",".",s,",","_");export{m as durationLanguage};
|
package/dist/language/ar.d.ts
CHANGED
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: {
|
|
4
|
-
_digitReplacements: string[];
|
|
5
|
-
_hideCountIf2: boolean;
|
|
6
|
-
_numberFirst?: boolean;
|
|
7
|
-
d: DurationUnit;
|
|
8
|
-
decimal?: string;
|
|
9
|
-
delimiter?: string;
|
|
10
|
-
future?: string;
|
|
11
|
-
groupSeparator?: string;
|
|
12
|
-
h: DurationUnit;
|
|
13
|
-
m: DurationUnit;
|
|
14
|
-
mo: DurationUnit;
|
|
15
|
-
ms: DurationUnit;
|
|
16
|
-
past?: string;
|
|
17
|
-
placeholderSeparator?: string;
|
|
18
|
-
s: DurationUnit;
|
|
19
|
-
unitMap?: Record<string, keyof DurationUnitMeasures>;
|
|
20
|
-
w: DurationUnit;
|
|
21
|
-
y: DurationUnit;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/ar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var m=Object.defineProperty;var a=(e,o)=>m(e,"name",{value:o,configurable:!0});import r from"./util/create-duration-language.js";var s=Object.defineProperty,n=a((e,o)=>s(e,"name",{value:o,configurable:!0}),"s");const i={"أجزاء من الثانية":"ms",أسابيع:"w",أسبوع:"w","أشهر طويلة":"mo",أعوام:"y",أيام:"d",ثانية:"s",ثواني:"s","جزء من الثانية":"ms",دقائق:"m",دقيقة:"m",ساعات:"h",ساعة:"h","شهر طويل":"mo",عام:"y",يوم:"d"},t=n(e=>e===2?1:e>2&&e<11?2:0,"getArabicForm"),d={...r(e=>["سنة","سنتان","سنوات"][t(e)],e=>["شهر","شهران","أشهر"][t(e)],e=>["أسبوع","أسبوعين","أسابيع"][t(e)],e=>["يوم","يومين","أيام"][t(e)],e=>["ساعة","ساعتين","ساعات"][t(e)],e=>["دقيقة","دقيقتان","دقائق"][t(e)],e=>["ثانية","ثانيتان","ثواني"][t(e)],e=>["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][t(e)],"بعد %s","منذ %s"," ﻭ ",i,"٬","_"),_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"],_hideCountIf2:!0};export{d as durationLanguage};
|
package/dist/language/bg.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/bg.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import s from"./util/create-duration-language.js";import o from"./util/duration/get-slavic-form.js";const r={година:"y",години:"y",ден:"d",дни:"d",месец:"mo",месеца:"mo",милисекунда:"ms",милисекунди:"ms",минута:"m",минути:"m",седмица:"w",седмици:"w",секунда:"s",секунди:"s",час:"h",часа:"h"},
|
|
1
|
+
import s from"./util/create-duration-language.js";import o from"./util/duration/get-slavic-form.js";const r={година:"y",години:"y",ден:"d",дни:"d",месец:"mo",месеца:"mo",милисекунда:"ms",милисекунди:"ms",минута:"m",минути:"m",седмица:"w",седмици:"w",секунда:"s",секунди:"s",час:"h",часа:"h"},a=s(m=>["години","година","години"][o(m)],m=>["месеца","месец","месеца"][o(m)],m=>["седмици","седмица","седмици"][o(m)],m=>["дни","ден","дни"][o(m)],m=>["часа","час","часа"][o(m)],m=>["минути","минута","минути"][o(m)],m=>["секунди","секунда","секунди"][o(m)],m=>["милисекунди","милисекунда","милисекунди"][o(m)],"след %s","преди %s",",",r," ","_");export{a as durationLanguage};
|
package/dist/language/bn.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/bn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"./util/create-duration-language.js";const s={ঘন্টা:"h",দিন:"d",বছর:"y",মাস:"mo",মিনিট:"m",মিলিসেকেন্ড:"ms",সপ্তাহ:"w",সেকেন্ড:"s"},
|
|
1
|
+
import o from"./util/create-duration-language.js";const s={ঘন্টা:"h",দিন:"d",বছর:"y",মাস:"mo",মিনিট:"m",মিলিসেকেন্ড:"ms",সপ্তাহ:"w",সেকেন্ড:"s"},m=o("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড","%s পরে","%s আগে",".",s,",","_");export{m as durationLanguage};
|
package/dist/language/ca.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/ckb.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/ckb.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"./util/create-duration-language.js";const s={چرکە:"s",خولەک:"m",ڕۆژ:"d",ساڵ:"y",کاتژمێر:"h",مانگ:"mo","میلی چرکە":"ms",هەفتە:"w"},
|
|
1
|
+
import o from"./util/create-duration-language.js";const s={چرکە:"s",خولەک:"m",ڕۆژ:"d",ساڵ:"y",کاتژمێر:"h",مانگ:"mo","میلی چرکە":"ms",هەفتە:"w"},m=o("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","لە s%","پێش s%","٫",s,"٬","_");export{m as durationLanguage};
|
package/dist/language/cs.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/cy.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/cy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=Object.defineProperty;var
|
|
1
|
+
var e=Object.defineProperty;var m=(d,i)=>e(d,"name",{value:i,configurable:!0});import n from"./util/create-duration-language.js";var l=Object.defineProperty,o=m((d,i)=>l(d,"name",{value:i,configurable:!0}),"a");const s={a:"h",awr:"h",bl:"y",blwyddyn:"y",blynyddoedd:"y",d:"d",diwrnod:"d",dyddiau:"d",eil:"s",eiliad:"s",eiliadau:"s",m:"mo",milieiliad:"ms",milieiliadau:"ms",mis:"mo",misoedd:"mo",ms:"ms",mun:"m",munud:"m",munudau:"m",oriau:"h",s:"s",w:"w",wythnos:"w",wythnosau:"w"},u=o((d,i,a)=>d===1?i:a,"pluralize"),w=n(d=>u(d,"flwyddyn","blynedd"),"mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad","mewn %s","%s yn ôl",".",s,",","_");export{w as durationLanguage};
|
package/dist/language/da.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/da.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import m from"./util/create-duration-language.js";const s={år:"y",d:"d",dag:"d",dage:"d",måned:"mo",måneder:"mo",md:"mo",millisekund:"ms",millisekunder:"ms",min:"m",minut:"m",minutter:"m",ms:"ms",s:"s",sek:"s",sekund:"s",sekunder:"s",t:"h",time:"h",timer:"h",u:"w",uge:"w",uger:"w"},
|
|
1
|
+
import m from"./util/create-duration-language.js";const s={år:"y",d:"d",dag:"d",dage:"d",måned:"mo",måneder:"mo",md:"mo",millisekund:"ms",millisekunder:"ms",min:"m",minut:"m",minutter:"m",ms:"ms",s:"s",sek:"s",sekund:"s",sekunder:"s",t:"h",time:"h",timer:"h",u:"w",uge:"w",uger:"w"},r=m("år",e=>`måned${e===1?"":"er"}`,e=>`uge${e===1?"":"r"}`,e=>`dag${e===1?"":"e"}`,e=>`time${e===1?"":"r"}`,e=>`minut${e===1?"":"ter"}`,e=>`sekund${e===1?"":"er"}`,e=>`millisekund${e===1?"":"er"}`,"om %s","%s siden",",",s,".","_");export{r as durationLanguage};
|
package/dist/language/de.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/de.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./util/create-duration-language.js";const s={j:"y",jahr:"y",jahre:"y",millisekunde:"ms",millisekunden:"ms",min:"m",minute:"m",minuten:"m",mon:"mo",monat:"mo",monate:"mo",ms:"ms",s:"s",sek:"s",sekunde:"s",sekunden:"s",std:"h",stunde:"h",stunden:"h",t:"d",tag:"d",tage:"d",wo:"w",woche:"w",wochen:"w"},
|
|
1
|
+
import e from"./util/create-duration-language.js";const s={j:"y",jahr:"y",jahre:"y",millisekunde:"ms",millisekunden:"ms",min:"m",minute:"m",minuten:"m",mon:"mo",monat:"mo",monate:"mo",ms:"ms",s:"s",sek:"s",sekunde:"s",sekunden:"s",std:"h",stunde:"h",stunden:"h",t:"d",tag:"d",tage:"d",wo:"w",woche:"w",wochen:"w"},t=e(n=>`Jahr${n===1?"":"e"}`,n=>`Monat${n===1?"":"e"}`,n=>`Woche${n===1?"":"n"}`,n=>`Tag${n===1?"":"e"}`,n=>`Stunde${n===1?"":"n"}`,n=>`Minute${n===1?"":"n"}`,n=>`Sekunde${n===1?"":"n"}`,n=>`Millisekunde${n===1?"":"n"}`,"in %s","vor %s",",",s,".","_");export{t as durationLanguage};
|
package/dist/language/el.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/en.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
declare const durationLanguage: DurationLanguage;
|
|
5
|
-
|
|
6
|
-
export { durationLanguage, englishUnitMap };
|
|
1
|
+
import type { DurationLanguage, DurationUnitMeasures } from "../types.d.ts";
|
|
2
|
+
export declare const englishUnitMap: Record<string, keyof DurationUnitMeasures>;
|
|
3
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/eo.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/es.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/et.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/et.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import s from"./util/create-duration-language.js";const a={a:"y",aasta:"y",aastat:"y",k:"mo",kuu:"mo",kuud:"mo",millisekund:"ms",millisekundit:"ms",min:"m",minut:"m",minutit:"m",ms:"ms",näd:"w",nädal:"w",nädalat:"w",p:"d",päev:"d",päeva:"d",s:"s",sek:"s",sekund:"s",sekundit:"s",t:"h",tund:"h",tundi:"h"},
|
|
1
|
+
import s from"./util/create-duration-language.js";const a={a:"y",aasta:"y",aastat:"y",k:"mo",kuu:"mo",kuud:"mo",millisekund:"ms",millisekundit:"ms",min:"m",minut:"m",minutit:"m",ms:"ms",näd:"w",nädal:"w",nädalat:"w",p:"d",päev:"d",päeva:"d",s:"s",sek:"s",sekund:"s",sekundit:"s",t:"h",tund:"h",tundi:"h"},i=s(t=>`aasta${t===1?"":"t"}`,t=>`kuu${t===1?"":"d"}`,t=>`nädal${t===1?"":"at"}`,t=>`päev${t===1?"":"a"}`,t=>`tund${t===1?"":"i"}`,t=>`minut${t===1?"":"it"}`,t=>`sekund${t===1?"":"it"}`,t=>`millisekund${t===1?"":"it"}`,"%s pärast","%s tagasi",",",a," ","_");export{i as durationLanguage};
|
package/dist/language/eu.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/fa.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/fi.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/fo.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/fo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import i from"./util/create-duration-language.js";const r={ár:"y",árið:"y",árini:"y",d:"d",dagar:"d",dagur:"d",mánaðir:"mo",mánaður:"mo",millisekund:"ms",min:"m",minuttir:"m",minuttur:"m",mnð:"mo",ms:"ms",s:"s",sek:"s",sekund:"s",t:"h",tímar:"h",tími:"h",v:"w",vika:"w",vikur:"w"},
|
|
1
|
+
import i from"./util/create-duration-language.js";const r={ár:"y",árið:"y",árini:"y",d:"d",dagar:"d",dagur:"d",mánaðir:"mo",mánaður:"mo",millisekund:"ms",min:"m",minuttir:"m",minuttur:"m",mnð:"mo",ms:"ms",s:"s",sek:"s",sekund:"s",t:"h",tímar:"h",tími:"h",v:"w",vika:"w",vikur:"w"},a=i("ár",m=>m===1?"mánaður":"mánaðir",m=>m===1?"vika":"vikur",m=>m===1?"dagur":"dagar",m=>m===1?"tími":"tímar",m=>m===1?"minuttur":"minuttir","sekund","millisekund","um %s","%s síðani",",",r,".","_");export{a as durationLanguage};
|
package/dist/language/fr.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/he.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/hi.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/hi.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import s from"./util/create-duration-language.js";const o={ms:"ms",घं:"h",घंटा:"h",घंटे:"h",दि:"d",दिन:"d",दिनों:"d",दिवस:"d",म:"mo",महीना:"mo",महीने:"mo",माह:"mo",मि:"m",मिनट:"m",मिनिट:"m",मिलीसेकंड:"ms",मिलीसेकेंड:"ms",मिसे:"ms",व:"y",वर्ष:"y",वर्षों:"y",स:"w",सप्ताह:"w",साल:"y",सालों:"y",से:"s",सेकंड:"s",सेकेंड:"s",हफ्ता:"w",हफ्ते:"w"},
|
|
1
|
+
import s from"./util/create-duration-language.js";const o={ms:"ms",घं:"h",घंटा:"h",घंटे:"h",दि:"d",दिन:"d",दिनों:"d",दिवस:"d",म:"mo",महीना:"mo",महीने:"mo",माह:"mo",मि:"m",मिनट:"m",मिनिट:"m",मिलीसेकंड:"ms",मिलीसेकेंड:"ms",मिसे:"ms",व:"y",वर्ष:"y",वर्षों:"y",स:"w",सप्ताह:"w",साल:"y",सालों:"y",से:"s",सेकंड:"s",सेकेंड:"s",हफ्ता:"w",हफ्ते:"w"},d=s("साल",m=>m===1?"महीना":"महीने",m=>m===1?"हफ़्ता":"हफ्ते","दिन",m=>m===1?"घंटा":"घंटे","मिनट","सेकंड","मिलीसेकंड","%s में","%s पहले",".",o,",","_");export{d as durationLanguage};
|
package/dist/language/hr.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/hu.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/id.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const durationLanguage: DurationLanguage;
|
|
4
|
-
|
|
5
|
-
export { durationLanguage };
|
|
1
|
+
import type { DurationLanguage } from "../types.d.ts";
|
|
2
|
+
export declare const durationLanguage: DurationLanguage;
|
package/dist/language/id.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import m from"./util/create-duration-language.js";const t={bl:"mo",bln:"mo",bulan:"mo",detik:"s",dt:"s",dtk:"s",hari:"d",hr:"d",j:"h",jam:"h",md:"ms",menit:"m",mg:"w",mgg:"w",milidetik:"ms",minggu:"w",mn:"m",mnt:"m",ms:"ms",tahun:"y",th:"y",thn:"y"},
|
|
1
|
+
import m from"./util/create-duration-language.js";const t={bl:"mo",bln:"mo",bulan:"mo",detik:"s",dt:"s",dtk:"s",hari:"d",hr:"d",j:"h",jam:"h",md:"ms",menit:"m",mg:"w",mgg:"w",milidetik:"ms",minggu:"w",mn:"m",mnt:"m",ms:"ms",tahun:"y",th:"y",thn:"y"},a=m("tahun","bulan","minggu","hari","jam","menit","detik","milidetik","dalam %s","%s yang lalu",",",t,".","_");export{a as durationLanguage};
|