@visulima/humanizer 3.0.0-alpha.11 → 3.0.0-alpha.13

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 (150) hide show
  1. package/dist/index.d.ts +140 -4
  2. package/dist/index.js +1 -3
  3. package/dist/language/af.d.ts +3 -2
  4. package/dist/language/af.js +1 -41
  5. package/dist/language/am.d.ts +3 -2
  6. package/dist/language/am.js +1 -33
  7. package/dist/language/ar.d.ts +3 -2
  8. package/dist/language/ar.js +1 -53
  9. package/dist/language/bg.d.ts +3 -2
  10. package/dist/language/bg.js +1 -42
  11. package/dist/language/bn.d.ts +3 -2
  12. package/dist/language/bn.js +1 -33
  13. package/dist/language/ca.d.ts +3 -2
  14. package/dist/language/ca.js +1 -41
  15. package/dist/language/ckb.d.ts +3 -2
  16. package/dist/language/ckb.js +1 -33
  17. package/dist/language/cs.d.ts +3 -2
  18. package/dist/language/cs.js +1 -53
  19. package/dist/language/cy.d.ts +3 -2
  20. package/dist/language/cy.js +1 -53
  21. package/dist/language/da.d.ts +3 -2
  22. package/dist/language/da.js +1 -45
  23. package/dist/language/de.d.ts +3 -2
  24. package/dist/language/de.js +1 -47
  25. package/dist/language/el.d.ts +3 -2
  26. package/dist/language/el.js +1 -53
  27. package/dist/language/en.d.ts +4 -3
  28. package/dist/language/en.js +1 -57
  29. package/dist/language/eo.d.ts +3 -2
  30. package/dist/language/eo.js +1 -47
  31. package/dist/language/es.d.ts +3 -2
  32. package/dist/language/es.js +1 -46
  33. package/dist/language/et.d.ts +3 -2
  34. package/dist/language/et.js +1 -47
  35. package/dist/language/eu.d.ts +3 -2
  36. package/dist/language/eu.js +1 -41
  37. package/dist/language/fa.d.ts +3 -2
  38. package/dist/language/fa.js +1 -38
  39. package/dist/language/fi.d.ts +3 -2
  40. package/dist/language/fi.js +1 -55
  41. package/dist/language/fo.d.ts +3 -2
  42. package/dist/language/fo.js +1 -48
  43. package/dist/language/fr.d.ts +3 -2
  44. package/dist/language/fr.js +1 -52
  45. package/dist/language/he.d.ts +3 -2
  46. package/dist/language/he.js +1 -52
  47. package/dist/language/hi.d.ts +3 -2
  48. package/dist/language/hi.js +1 -55
  49. package/dist/language/hr.d.ts +3 -2
  50. package/dist/language/hr.js +1 -110
  51. package/dist/language/hu.d.ts +3 -2
  52. package/dist/language/hu.js +1 -51
  53. package/dist/language/id.d.ts +3 -2
  54. package/dist/language/id.js +1 -50
  55. package/dist/language/is.d.ts +3 -2
  56. package/dist/language/is.js +1 -52
  57. package/dist/language/it.d.ts +3 -2
  58. package/dist/language/it.js +1 -51
  59. package/dist/language/ja.d.ts +3 -2
  60. package/dist/language/ja.js +1 -47
  61. package/dist/language/km.d.ts +3 -2
  62. package/dist/language/km.js +1 -57
  63. package/dist/language/kn.d.ts +3 -2
  64. package/dist/language/kn.js +1 -50
  65. package/dist/language/ko.d.ts +3 -2
  66. package/dist/language/ko.js +1 -42
  67. package/dist/language/ku.d.ts +3 -2
  68. package/dist/language/ku.js +1 -54
  69. package/dist/language/lo.d.ts +3 -2
  70. package/dist/language/lo.js +1 -58
  71. package/dist/language/lt.d.ts +3 -2
  72. package/dist/language/lt.js +1 -69
  73. package/dist/language/lv.d.ts +3 -2
  74. package/dist/language/lv.js +1 -55
  75. package/dist/language/mk.d.ts +3 -2
  76. package/dist/language/mk.js +1 -55
  77. package/dist/language/mn.d.ts +3 -2
  78. package/dist/language/mn.js +1 -46
  79. package/dist/language/mr.d.ts +3 -2
  80. package/dist/language/mr.js +1 -43
  81. package/dist/language/ms.d.ts +3 -2
  82. package/dist/language/ms.js +1 -49
  83. package/dist/language/nl.d.ts +3 -2
  84. package/dist/language/nl.js +1 -50
  85. package/dist/language/no.d.ts +3 -2
  86. package/dist/language/no.js +1 -47
  87. package/dist/language/pl.d.ts +3 -2
  88. package/dist/language/pl.js +1 -73
  89. package/dist/language/pt.d.ts +3 -2
  90. package/dist/language/pt.js +1 -50
  91. package/dist/language/ro.d.ts +3 -2
  92. package/dist/language/ro.js +1 -66
  93. package/dist/language/ru.d.ts +3 -2
  94. package/dist/language/ru.js +1 -59
  95. package/dist/language/sk.d.ts +3 -2
  96. package/dist/language/sk.js +1 -64
  97. package/dist/language/sl.d.ts +3 -2
  98. package/dist/language/sl.js +1 -138
  99. package/dist/language/sq.d.ts +3 -2
  100. package/dist/language/sq.js +1 -51
  101. package/dist/language/sr.d.ts +3 -2
  102. package/dist/language/sr.js +1 -83
  103. package/dist/language/sr_Latn.d.ts +3 -2
  104. package/dist/language/sr_Latn.js +1 -21
  105. package/dist/language/sv.d.ts +3 -2
  106. package/dist/language/sv.js +1 -49
  107. package/dist/language/sw.d.ts +3 -2
  108. package/dist/language/sw.js +1 -51
  109. package/dist/language/ta.d.ts +3 -2
  110. package/dist/language/ta.js +1 -54
  111. package/dist/language/te.d.ts +3 -2
  112. package/dist/language/te.js +1 -50
  113. package/dist/language/th.d.ts +3 -2
  114. package/dist/language/th.js +1 -44
  115. package/dist/language/tr.d.ts +3 -2
  116. package/dist/language/tr.js +1 -42
  117. package/dist/language/uk.d.ts +3 -2
  118. package/dist/language/uk.js +1 -61
  119. package/dist/language/ur.d.ts +3 -2
  120. package/dist/language/ur.js +1 -57
  121. package/dist/language/util/create-duration-language.d.ts +2 -2
  122. package/dist/language/util/create-duration-language.js +1 -33
  123. package/dist/language/util/duration/get-czech-or-slovak-form.d.ts +1 -1
  124. package/dist/language/util/duration/get-czech-or-slovak-form.js +1 -14
  125. package/dist/language/util/duration/get-slavic-form.d.ts +1 -1
  126. package/dist/language/util/duration/get-slavic-form.js +1 -17
  127. package/dist/language/util/validate-duration-language.d.ts +2 -2
  128. package/dist/language/util/validate-duration-language.js +1 -37
  129. package/dist/language/uz.d.ts +3 -2
  130. package/dist/language/uz.js +1 -43
  131. package/dist/language/uz_CYR.d.ts +3 -2
  132. package/dist/language/uz_CYR.js +1 -43
  133. package/dist/language/vi.d.ts +3 -2
  134. package/dist/language/vi.js +1 -34
  135. package/dist/language/zh_CN.d.ts +3 -2
  136. package/dist/language/zh_CN.js +1 -39
  137. package/dist/language/zh_TW.d.ts +3 -2
  138. package/dist/language/zh_TW.js +1 -39
  139. package/dist/packem_shared/duration-LS6hKnI1.js +1 -0
  140. package/dist/packem_shared/parseBytes-CxhY-u8u.js +1 -0
  141. package/dist/packem_shared/parseDuration-CfrrX3_c.js +1 -0
  142. package/dist/packem_shared/types.d-DEgTgpjz.d.ts +130 -0
  143. package/package.json +19 -21
  144. package/dist/bytes.d.ts +0 -131
  145. package/dist/duration.d.ts +0 -3
  146. package/dist/packem_shared/duration-Br8Mr-Lj.js +0 -210
  147. package/dist/packem_shared/parseBytes-BkjYV2ut.js +0 -250
  148. package/dist/packem_shared/parseDuration-qO1Y4eiu.js +0 -111
  149. package/dist/parse-duration.d.ts +0 -9
  150. package/dist/types.d.ts +0 -130
package/dist/index.d.ts CHANGED
@@ -1,4 +1,140 @@
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";
1
+ import { F as FormateByteOptions, P as ParseByteOptions, c as DurationOptions, d as ParseDurationOptions } from "./packem_shared/types.d-DEgTgpjz.js";
2
+ export { type e as DurationDigitReplacements, type D as DurationLanguage, type f as DurationPiece, type b as DurationUnit, type a as DurationUnitMeasures, type g as DurationUnitName, type I as IntlLocale } from "./packem_shared/types.d-DEgTgpjz.js";
3
+ declare const BYTE_SIZES: {
4
+ readonly iec: readonly [{
5
+ readonly long: "Bytes";
6
+ readonly short: "B";
7
+ }, {
8
+ readonly long: "Kibibytes";
9
+ readonly short: "KiB";
10
+ }, {
11
+ readonly long: "Mebibytes";
12
+ readonly short: "MiB";
13
+ }, {
14
+ readonly long: "Gibibytes";
15
+ readonly short: "GiB";
16
+ }, {
17
+ readonly long: "Tebibytes";
18
+ readonly short: "TiB";
19
+ }, {
20
+ readonly long: "Pebibytes";
21
+ readonly short: "PiB";
22
+ }, {
23
+ readonly long: "Exbibytes";
24
+ readonly short: "EiB";
25
+ }, {
26
+ readonly long: "Zebibytes";
27
+ readonly short: "ZiB";
28
+ }, {
29
+ readonly long: "Yobibytes";
30
+ readonly short: "YiB";
31
+ }];
32
+ readonly iec_octet: readonly [{
33
+ readonly long: "Octets";
34
+ readonly short: "o";
35
+ }, {
36
+ readonly long: "Kibioctets";
37
+ readonly short: "Kio";
38
+ }, {
39
+ readonly long: "Mebioctets";
40
+ readonly short: "Mio";
41
+ }, {
42
+ readonly long: "Gibioctets";
43
+ readonly short: "Gio";
44
+ }, {
45
+ readonly long: "Tebioctets";
46
+ readonly short: "Tio";
47
+ }, {
48
+ readonly long: "Pebioctets";
49
+ readonly short: "Pio";
50
+ }, {
51
+ readonly long: "Exbioctets";
52
+ readonly short: "Eio";
53
+ }, {
54
+ readonly long: "Zebioctets";
55
+ readonly short: "Zio";
56
+ }, {
57
+ readonly long: "Yobioctets";
58
+ readonly short: "Yio";
59
+ }];
60
+ readonly metric: readonly [{
61
+ readonly long: "Bytes";
62
+ readonly short: "Bytes";
63
+ }, {
64
+ readonly long: "Kilobytes";
65
+ readonly short: "KB";
66
+ }, {
67
+ readonly long: "Megabytes";
68
+ readonly short: "MB";
69
+ }, {
70
+ readonly long: "Gigabytes";
71
+ readonly short: "GB";
72
+ }, {
73
+ readonly long: "Terabytes";
74
+ readonly short: "TB";
75
+ }, {
76
+ readonly long: "Petabytes";
77
+ readonly short: "PB";
78
+ }, {
79
+ readonly long: "Exabytes";
80
+ readonly short: "EB";
81
+ }, {
82
+ readonly long: "Zettabytes";
83
+ readonly short: "ZB";
84
+ }, {
85
+ readonly long: "Yottabytes";
86
+ readonly short: "YB";
87
+ }];
88
+ readonly metric_octet: readonly [{
89
+ readonly long: "Octets";
90
+ readonly short: "o";
91
+ }, {
92
+ readonly long: "Kilo-octets";
93
+ readonly short: "ko";
94
+ }, {
95
+ readonly long: "Mega-octets";
96
+ readonly short: "Mo";
97
+ }, {
98
+ readonly long: "Giga-octets";
99
+ readonly short: "Go";
100
+ }, {
101
+ readonly long: "Tera-octets";
102
+ readonly short: "To";
103
+ }, {
104
+ readonly long: "Peta-octets";
105
+ readonly short: "Po";
106
+ }, {
107
+ readonly long: "Exa-octets";
108
+ readonly short: "Eo";
109
+ }, {
110
+ readonly long: "Zetta-octets";
111
+ readonly short: "Zo";
112
+ }, {
113
+ readonly long: "Yotta-octets";
114
+ readonly short: "Yo";
115
+ }];
116
+ };
117
+ 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"];
118
+ /**
119
+ * Parse the given bytesize string and return bytes.
120
+ * @param value The string to parse
121
+ * @param options Options for the conversion from string to bytes
122
+ * @throws Error if `value` is not a non-empty string or a number
123
+ */
124
+ declare const parseBytes: (value: string, options?: ParseByteOptions) => number;
125
+ /**
126
+ * Formats the given bytes into a human-readable string.
127
+ * Per default, it will use the closest unit to the given value.
128
+ * @param bytes The bytes to format
129
+ * @param options Options for the conversion from bytes to string
130
+ */
131
+ declare const formatBytes: (bytes: number, options?: FormateByteOptions<ByteSize>) => string;
132
+ declare const duration: (milliseconds: number, options?: DurationOptions) => string;
133
+ /**
134
+ * Parses a human-readable duration string into milliseconds using specified language units.
135
+ * @param value The string to parse (e.g., "1h 20min", "2 days", "-3 hafta").
136
+ * @param options Optional configuration including language and default unit.
137
+ * @returns The duration in milliseconds, or undefined if the string cannot be parsed.
138
+ */
139
+ declare const parseDuration: (value: string, options?: ParseDurationOptions) => number | undefined;
140
+ export { type DurationOptions, type FormateByteOptions, type ParseByteOptions, duration, formatBytes, parseBytes, parseDuration };
package/dist/index.js CHANGED
@@ -1,3 +1 @@
1
- export { formatBytes, parseBytes } from './packem_shared/parseBytes-BkjYV2ut.js';
2
- export { default as duration } from './packem_shared/duration-Br8Mr-Lj.js';
3
- export { default as parseDuration } from './packem_shared/parseDuration-qO1Y4eiu.js';
1
+ import{formatBytes as a,parseBytes as e}from"./packem_shared/parseBytes-CxhY-u8u.js";import{default as f}from"./packem_shared/duration-LS6hKnI1.js";import{default as p}from"./packem_shared/parseDuration-CfrrX3_c.js";export{f as duration,a as formatBytes,e as parseBytes,p as parseDuration};
@@ -1,2 +1,3 @@
1
- import type { DurationLanguage } from "../types.d.ts";
2
- export declare const durationLanguage: DurationLanguage;
1
+ import { D as DurationLanguage } from "../packem_shared/types.d-DEgTgpjz.js";
2
+ declare const durationLanguage: DurationLanguage;
3
+ export { durationLanguage };
@@ -1,41 +1 @@
1
- import createDurationLanguage from './util/create-duration-language.js';
2
-
3
- const afUnitMap = {
4
- dae: "d",
5
- dag: "d",
6
- jaar: "y",
7
- jare: "y",
8
- maand: "mo",
9
- maande: "mo",
10
- millisekonde: "ms",
11
- millisekondes: "ms",
12
- minute: "m",
13
- minuut: "m",
14
- sekonde: "s",
15
- sekondes: "s",
16
- ure: "h",
17
- uur: "h",
18
- week: "w",
19
- weke: "w"
20
- };
21
- const durationLanguage = createDurationLanguage(
22
- "jaar",
23
- (counter) => `maand${counter === 1 ? "" : "e"}`,
24
- (counter) => counter === 1 ? "week" : "weke",
25
- (counter) => counter === 1 ? "dag" : "dae",
26
- (counter) => counter === 1 ? "uur" : "ure",
27
- (counter) => counter === 1 ? "minuut" : "minute",
28
- (counter) => `sekonde${counter === 1 ? "" : "s"}`,
29
- (counter) => `millisekonde${counter === 1 ? "" : "s"}`,
30
- "oor %s",
31
- "%s gelede",
32
- ",",
33
- // decimal
34
- afUnitMap,
35
- " ",
36
- // groupSeparator (often space in af)
37
- "_"
38
- // placeholderSeparator
39
- );
40
-
41
- export { durationLanguage };
1
+ import a from"./util/create-duration-language.js";const m={dae:"d",dag:"d",jaar:"y",jare:"y",maand:"mo",maande:"mo",millisekonde:"ms",millisekondes:"ms",minute:"m",minuut:"m",sekonde:"s",sekondes:"s",ure:"h",uur:"h",week:"w",weke:"w"},s=a("jaar",e=>`maand${e===1?"":"e"}`,e=>e===1?"week":"weke",e=>e===1?"dag":"dae",e=>e===1?"uur":"ure",e=>e===1?"minuut":"minute",e=>`sekonde${e===1?"":"s"}`,e=>`millisekonde${e===1?"":"s"}`,"oor %s","%s gelede",",",m," ","_");export{s as durationLanguage};
@@ -1,2 +1,3 @@
1
- import type { DurationLanguage } from "../types.d.ts";
2
- export declare const durationLanguage: DurationLanguage;
1
+ import { D as DurationLanguage } from "../packem_shared/types.d-DEgTgpjz.js";
2
+ declare const durationLanguage: DurationLanguage;
3
+ export { durationLanguage };
@@ -1,33 +1 @@
1
- import createDurationLanguage from './util/create-duration-language.js';
2
-
3
- const amUnitMap = {
4
- ሚሊሰከንድ: "ms",
5
- ሰከንድ: "s",
6
- ሰዓት: "h",
7
- ሳምንት: "w",
8
- ቀን: "d",
9
- ወር: "mo",
10
- ዓመት: "y",
11
- ደቂቃ: "m"
12
- };
13
- const durationLanguage = createDurationLanguage(
14
- "ዓመት",
15
- "ወር",
16
- "ሳምንት",
17
- "ቀን",
18
- "ሰዓት",
19
- "ደቂቃ",
20
- "ሰከንድ",
21
- "ሚሊሰከንድ",
22
- "በአንድ %s",
23
- "%s በፊት",
24
- ".",
25
- // decimal
26
- amUnitMap,
27
- ",",
28
- // groupSeparator
29
- "_"
30
- // placeholderSeparator
31
- );
32
-
33
- export { durationLanguage };
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};
@@ -1,2 +1,3 @@
1
- import type { DurationLanguage } from "../types.d.ts";
2
- export declare const durationLanguage: DurationLanguage;
1
+ import { D as DurationLanguage } from "../packem_shared/types.d-DEgTgpjz.js";
2
+ declare const durationLanguage: DurationLanguage;
3
+ export { durationLanguage };
@@ -1,53 +1 @@
1
- import createDurationLanguage from './util/create-duration-language.js';
2
-
3
- const arUnitMap = {
4
- "أجزاء من الثانية": "ms",
5
- أسابيع: "w",
6
- أسبوع: "w",
7
- "أشهر طويلة": "mo",
8
- أعوام: "y",
9
- أيام: "d",
10
- ثانية: "s",
11
- ثواني: "s",
12
- "جزء من الثانية": "ms",
13
- دقائق: "m",
14
- دقيقة: "m",
15
- ساعات: "h",
16
- ساعة: "h",
17
- "شهر طويل": "mo",
18
- عام: "y",
19
- يوم: "d"
20
- };
21
- const getArabicForm = (counter) => {
22
- if (counter === 2) {
23
- return 1;
24
- }
25
- if (counter > 2 && counter < 11) {
26
- return 2;
27
- }
28
- return 0;
29
- };
30
- const durationLanguage = {
31
- ...createDurationLanguage(
32
- (counter) => ["سنة", "سنتان", "سنوات"][getArabicForm(counter)],
33
- (counter) => ["شهر", "شهران", "أشهر"][getArabicForm(counter)],
34
- (counter) => ["أسبوع", "أسبوعين", "أسابيع"][getArabicForm(counter)],
35
- (counter) => ["يوم", "يومين", "أيام"][getArabicForm(counter)],
36
- (counter) => ["ساعة", "ساعتين", "ساعات"][getArabicForm(counter)],
37
- (counter) => ["دقيقة", "دقيقتان", "دقائق"][getArabicForm(counter)],
38
- (counter) => ["ثانية", "ثانيتان", "ثواني"][getArabicForm(counter)],
39
- (counter) => ["جزء من الثانية", "جزآن من الثانية", "أجزاء من الثانية"][getArabicForm(counter)],
40
- "بعد %s",
41
- "منذ %s",
42
- " ﻭ ",
43
- arUnitMap,
44
- "٬",
45
- // groupSeparator - Arabic uses U+066C
46
- "_"
47
- // placeholderSeparator
48
- ),
49
- _digitReplacements: ["۰", "١", "٢", "٣", "٤", "٥", "٦", "٧", "٨", "٩"],
50
- _hideCountIf2: true
51
- };
52
-
53
- export { durationLanguage };
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};
@@ -1,2 +1,3 @@
1
- import type { DurationLanguage } from "../types.d.ts";
2
- export declare const durationLanguage: DurationLanguage;
1
+ import { D as DurationLanguage } from "../packem_shared/types.d-DEgTgpjz.js";
2
+ declare const durationLanguage: DurationLanguage;
3
+ export { durationLanguage };
@@ -1,42 +1 @@
1
- import createDurationLanguage from './util/create-duration-language.js';
2
- import getSlavicForm from './util/duration/get-slavic-form.js';
3
-
4
- const bgUnitMap = {
5
- година: "y",
6
- години: "y",
7
- ден: "d",
8
- дни: "d",
9
- месец: "mo",
10
- месеца: "mo",
11
- милисекунда: "ms",
12
- милисекунди: "ms",
13
- минута: "m",
14
- минути: "m",
15
- седмица: "w",
16
- седмици: "w",
17
- секунда: "s",
18
- секунди: "s",
19
- час: "h",
20
- часа: "h"
21
- };
22
- const durationLanguage = createDurationLanguage(
23
- (counter) => ["години", "година", "години"][getSlavicForm(counter)],
24
- (counter) => ["месеца", "месец", "месеца"][getSlavicForm(counter)],
25
- (counter) => ["седмици", "седмица", "седмици"][getSlavicForm(counter)],
26
- (counter) => ["дни", "ден", "дни"][getSlavicForm(counter)],
27
- (counter) => ["часа", "час", "часа"][getSlavicForm(counter)],
28
- (counter) => ["минути", "минута", "минути"][getSlavicForm(counter)],
29
- (counter) => ["секунди", "секунда", "секунди"][getSlavicForm(counter)],
30
- (counter) => ["милисекунди", "милисекунда", "милисекунди"][getSlavicForm(counter)],
31
- "след %s",
32
- "преди %s",
33
- ",",
34
- // decimal
35
- bgUnitMap,
36
- " ",
37
- // groupSeparator (space)
38
- "_"
39
- // placeholderSeparator
40
- );
41
-
42
- export { durationLanguage };
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};
@@ -1,2 +1,3 @@
1
- import type { DurationLanguage } from "../types.d.ts";
2
- export declare const durationLanguage: DurationLanguage;
1
+ import { D as DurationLanguage } from "../packem_shared/types.d-DEgTgpjz.js";
2
+ declare const durationLanguage: DurationLanguage;
3
+ export { durationLanguage };
@@ -1,33 +1 @@
1
- import createDurationLanguage from './util/create-duration-language.js';
2
-
3
- const bnUnitMap = {
4
- ঘন্টা: "h",
5
- দিন: "d",
6
- বছর: "y",
7
- মাস: "mo",
8
- মিনিট: "m",
9
- মিলিসেকেন্ড: "ms",
10
- সপ্তাহ: "w",
11
- সেকেন্ড: "s"
12
- };
13
- const durationLanguage = createDurationLanguage(
14
- "বছর",
15
- "মাস",
16
- "সপ্তাহ",
17
- "দিন",
18
- "ঘন্টা",
19
- "মিনিট",
20
- "সেকেন্ড",
21
- "মিলিসেকেন্ড",
22
- "%s পরে",
23
- "%s আগে",
24
- ".",
25
- // decimal
26
- bnUnitMap,
27
- ",",
28
- // groupSeparator
29
- "_"
30
- // placeholderSeparator
31
- );
32
-
33
- export { durationLanguage };
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};
@@ -1,2 +1,3 @@
1
- import type { DurationLanguage } from "../types.d.ts";
2
- export declare const durationLanguage: DurationLanguage;
1
+ import { D as DurationLanguage } from "../packem_shared/types.d-DEgTgpjz.js";
2
+ declare const durationLanguage: DurationLanguage;
3
+ export { durationLanguage };
@@ -1,41 +1 @@
1
- import createDurationLanguage from './util/create-duration-language.js';
2
-
3
- const caUnitMap = {
4
- any: "y",
5
- anys: "y",
6
- dia: "d",
7
- dies: "d",
8
- hora: "h",
9
- hores: "h",
10
- mes: "mo",
11
- mesos: "mo",
12
- milisegon: "ms",
13
- milisegons: "ms",
14
- minut: "m",
15
- minuts: "m",
16
- segon: "s",
17
- segons: "s",
18
- setmana: "w",
19
- setmanes: "w"
20
- };
21
- const durationLanguage = createDurationLanguage(
22
- (counter) => `any${counter === 1 ? "" : "s"}`,
23
- (counter) => `mes${counter === 1 ? "" : "os"}`,
24
- (counter) => `setman${counter === 1 ? "a" : "es"}`,
25
- (counter) => `di${counter === 1 ? "a" : "es"}`,
26
- (counter) => `hor${counter === 1 ? "a" : "es"}`,
27
- (counter) => `minut${counter === 1 ? "" : "s"}`,
28
- (counter) => `segon${counter === 1 ? "" : "s"}`,
29
- (counter) => `milisegon${counter === 1 ? "" : "s"}`,
30
- "d'aquí %s",
31
- "fa %s",
32
- ",",
33
- // decimal
34
- caUnitMap,
35
- ".",
36
- // groupSeparator
37
- "_"
38
- // placeholderSeparator
39
- );
40
-
41
- export { durationLanguage };
1
+ import e from"./util/create-duration-language.js";const m={any:"y",anys:"y",dia:"d",dies:"d",hora:"h",hores:"h",mes:"mo",mesos:"mo",milisegon:"ms",milisegons:"ms",minut:"m",minuts:"m",segon:"s",segons:"s",setmana:"w",setmanes:"w"},o=e(s=>`any${s===1?"":"s"}`,s=>`mes${s===1?"":"os"}`,s=>`setman${s===1?"a":"es"}`,s=>`di${s===1?"a":"es"}`,s=>`hor${s===1?"a":"es"}`,s=>`minut${s===1?"":"s"}`,s=>`segon${s===1?"":"s"}`,s=>`milisegon${s===1?"":"s"}`,"d'aquí %s","fa %s",",",m,".","_");export{o as durationLanguage};
@@ -1,2 +1,3 @@
1
- import type { DurationLanguage } from "../types.d.ts";
2
- export declare const durationLanguage: DurationLanguage;
1
+ import { D as DurationLanguage } from "../packem_shared/types.d-DEgTgpjz.js";
2
+ declare const durationLanguage: DurationLanguage;
3
+ export { durationLanguage };
@@ -1,33 +1 @@
1
- import createDurationLanguage from './util/create-duration-language.js';
2
-
3
- const ckbUnitMap = {
4
- چرکە: "s",
5
- خولەک: "m",
6
- ڕۆژ: "d",
7
- ساڵ: "y",
8
- کاتژمێر: "h",
9
- مانگ: "mo",
10
- "میلی چرکە": "ms",
11
- هەفتە: "w"
12
- };
13
- const durationLanguage = createDurationLanguage(
14
- "ساڵ",
15
- "مانگ",
16
- "هەفتە",
17
- "ڕۆژ",
18
- "کاژێر",
19
- "خولەک",
20
- "چرکە",
21
- "میلی چرکە",
22
- "لە s%",
23
- "پێش s%",
24
- "٫",
25
- // decimal - Arabic uses U+066B
26
- ckbUnitMap,
27
- "٬",
28
- // groupSeparator - Arabic uses U+066C
29
- "_"
30
- // placeholderSeparator
31
- );
32
-
33
- export { durationLanguage };
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};
@@ -1,2 +1,3 @@
1
- import type { DurationLanguage } from "../types.d.ts";
2
- export declare const durationLanguage: DurationLanguage;
1
+ import { D as DurationLanguage } from "../packem_shared/types.d-DEgTgpjz.js";
2
+ declare const durationLanguage: DurationLanguage;
3
+ export { durationLanguage };
@@ -1,53 +1 @@
1
- import createDurationLanguage from './util/create-duration-language.js';
2
- import getCzechOrSlovakForm from './util/duration/get-czech-or-slovak-form.js';
3
-
4
- const csUnitMap = {
5
- den: "d",
6
- dne: "d",
7
- dní: "d",
8
- dny: "d",
9
- hodin: "h",
10
- hodina: "h",
11
- hodiny: "h",
12
- let: "y",
13
- měsíc: "mo",
14
- měsíce: "mo",
15
- měsíců: "mo",
16
- milisekund: "ms",
17
- milisekunda: "ms",
18
- milisekundy: "ms",
19
- minut: "m",
20
- minuta: "m",
21
- minuty: "m",
22
- rok: "y",
23
- roku: "y",
24
- roky: "y",
25
- sekund: "s",
26
- sekunda: "s",
27
- sekundy: "s",
28
- týden: "w",
29
- týdne: "w",
30
- týdnů: "w",
31
- týdny: "w"
32
- };
33
- const durationLanguage = createDurationLanguage(
34
- (counter) => ["rok", "roku", "roky", "let"][getCzechOrSlovakForm(counter)],
35
- (counter) => ["měsíc", "měsíce", "měsíce", "měsíců"][getCzechOrSlovakForm(counter)],
36
- (counter) => ["týden", "týdne", "týdny", "týdnů"][getCzechOrSlovakForm(counter)],
37
- (counter) => ["den", "dne", "dny", "dní"][getCzechOrSlovakForm(counter)],
38
- (counter) => ["hodina", "hodiny", "hodiny", "hodin"][getCzechOrSlovakForm(counter)],
39
- (counter) => ["minuta", "minuty", "minuty", "minut"][getCzechOrSlovakForm(counter)],
40
- (counter) => ["sekunda", "sekundy", "sekundy", "sekund"][getCzechOrSlovakForm(counter)],
41
- (counter) => ["milisekunda", "milisekundy", "milisekundy", "milisekund"][getCzechOrSlovakForm(counter)],
42
- "za %s",
43
- "před %s",
44
- ",",
45
- // decimal
46
- csUnitMap,
47
- " ",
48
- // groupSeparator (space in Czech)
49
- "_"
50
- // placeholderSeparator
51
- );
52
-
53
- export { durationLanguage };
1
+ import m from"./util/create-duration-language.js";import d from"./util/duration/get-czech-or-slovak-form.js";const i={den:"d",dne:"d",dní:"d",dny:"d",hodin:"h",hodina:"h",hodiny:"h",let:"y",měsíc:"mo",měsíce:"mo",měsíců:"mo",milisekund:"ms",milisekunda:"ms",milisekundy:"ms",minut:"m",minuta:"m",minuty:"m",rok:"y",roku:"y",roky:"y",sekund:"s",sekunda:"s",sekundy:"s",týden:"w",týdne:"w",týdnů:"w",týdny:"w"},u=m(n=>["rok","roku","roky","let"][d(n)],n=>["měsíc","měsíce","měsíce","měsíců"][d(n)],n=>["týden","týdne","týdny","týdnů"][d(n)],n=>["den","dne","dny","dní"][d(n)],n=>["hodina","hodiny","hodiny","hodin"][d(n)],n=>["minuta","minuty","minuty","minut"][d(n)],n=>["sekunda","sekundy","sekundy","sekund"][d(n)],n=>["milisekunda","milisekundy","milisekundy","milisekund"][d(n)],"za %s","před %s",",",i," ","_");export{u as durationLanguage};
@@ -1,2 +1,3 @@
1
- import type { DurationLanguage } from "../types.d.ts";
2
- export declare const durationLanguage: DurationLanguage;
1
+ import { D as DurationLanguage } from "../packem_shared/types.d-DEgTgpjz.js";
2
+ declare const durationLanguage: DurationLanguage;
3
+ export { durationLanguage };
@@ -1,53 +1 @@
1
- import createDurationLanguage from './util/create-duration-language.js';
2
-
3
- const cyUnitMap = {
4
- a: "h",
5
- awr: "h",
6
- bl: "y",
7
- blwyddyn: "y",
8
- blynyddoedd: "y",
9
- d: "d",
10
- diwrnod: "d",
11
- dyddiau: "d",
12
- eil: "s",
13
- eiliad: "s",
14
- eiliadau: "s",
15
- m: "mo",
16
- milieiliad: "ms",
17
- milieiliadau: "ms",
18
- mis: "mo",
19
- misoedd: "mo",
20
- ms: "ms",
21
- mun: "m",
22
- munud: "m",
23
- munudau: "m",
24
- oriau: "h",
25
- s: "s",
26
- // Often used internationally
27
- w: "w",
28
- wythnos: "w",
29
- wythnosau: "w"
30
- };
31
- const pluralize = (counter, singular, plural) => counter === 1 ? singular : plural;
32
- const durationLanguage = createDurationLanguage(
33
- (counter) => pluralize(counter, "flwyddyn", "blynedd"),
34
- // Mutation blwyddyn -> flwyddyn / blynedd
35
- "mis",
36
- "wythnos",
37
- "diwrnod",
38
- "awr",
39
- "munud",
40
- "eiliad",
41
- "milieiliad",
42
- "mewn %s",
43
- "%s yn ôl",
44
- ".",
45
- // decimal separator
46
- cyUnitMap,
47
- ",",
48
- // group separator
49
- "_"
50
- // placeholder separator
51
- );
52
-
53
- export { durationLanguage };
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};
@@ -1,2 +1,3 @@
1
- import type { DurationLanguage } from "../types.d.ts";
2
- export declare const durationLanguage: DurationLanguage;
1
+ import { D as DurationLanguage } from "../packem_shared/types.d-DEgTgpjz.js";
2
+ declare const durationLanguage: DurationLanguage;
3
+ export { durationLanguage };