@inquirer/i18n 1.3.2 → 1.3.3
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 +24 -6
- package/dist/create.js +1 -0
- package/dist/locales/es.d.ts +16 -8
- package/dist/locales/es.js +1 -0
- package/dist/locales/fr.d.ts +16 -8
- package/dist/locales/fr.js +1 -0
- package/dist/locales/pt.d.ts +16 -8
- package/dist/locales/pt.js +1 -0
- package/dist/locales/zh.d.ts +16 -8
- package/dist/locales/zh.js +1 -0
- package/dist/types.d.ts +2 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -10,43 +10,61 @@ Internationalized Inquirer prompts — a 100% drop-in replacement for `@inquirer
|
|
|
10
10
|
|
|
11
11
|
<table>
|
|
12
12
|
<tr>
|
|
13
|
-
<th>npm</th>
|
|
14
13
|
<th>yarn</th>
|
|
15
14
|
<th>pnpm</th>
|
|
16
|
-
<th>bun</th>
|
|
17
15
|
</tr>
|
|
18
16
|
<tr>
|
|
19
17
|
<td>
|
|
20
18
|
|
|
21
19
|
```sh
|
|
22
|
-
|
|
20
|
+
yarn add @inquirer/i18n
|
|
23
21
|
```
|
|
24
22
|
|
|
25
23
|
</td>
|
|
26
24
|
<td>
|
|
27
25
|
|
|
28
26
|
```sh
|
|
29
|
-
|
|
27
|
+
pnpm add @inquirer/i18n
|
|
30
28
|
```
|
|
31
29
|
|
|
32
30
|
</td>
|
|
31
|
+
</tr>
|
|
32
|
+
<tr>
|
|
33
|
+
<th>bun</th>
|
|
34
|
+
<th>deno</th>
|
|
35
|
+
</tr>
|
|
36
|
+
<tr>
|
|
33
37
|
<td>
|
|
34
38
|
|
|
35
39
|
```sh
|
|
36
|
-
|
|
40
|
+
bun add @inquirer/i18n
|
|
37
41
|
```
|
|
38
42
|
|
|
39
43
|
</td>
|
|
40
44
|
<td>
|
|
41
45
|
|
|
42
46
|
```sh
|
|
43
|
-
|
|
47
|
+
deno add npm:@inquirer/i18n
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
</td>
|
|
51
|
+
</tr>
|
|
52
|
+
<tr>
|
|
53
|
+
<th colSpan="2">npm</th>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td colSpan="2">
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
npm install @inquirer/i18n
|
|
44
60
|
```
|
|
45
61
|
|
|
46
62
|
</td>
|
|
47
63
|
</tr>
|
|
48
64
|
</table>
|
|
49
65
|
|
|
66
|
+
On Deno, locale detection reads the `LANGUAGE`, `LC_ALL`, `LC_MESSAGES`, and `LANG` environment variables, so run your script with `--allow-env`.
|
|
67
|
+
|
|
50
68
|
# Usage
|
|
51
69
|
|
|
52
70
|
## Auto-detected locale
|
package/dist/create.js
CHANGED
package/dist/locales/es.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ export declare const confirm: (this: void, config: {
|
|
|
8
8
|
keywords: {
|
|
9
9
|
yes: string;
|
|
10
10
|
no: string;
|
|
11
|
+
error: (keywords: {
|
|
12
|
+
yes: string;
|
|
13
|
+
no: string;
|
|
14
|
+
}) => string;
|
|
11
15
|
};
|
|
12
16
|
style: {
|
|
13
17
|
confirmDefault: (text: string) => string;
|
|
@@ -21,6 +25,10 @@ export declare const confirm: (this: void, config: {
|
|
|
21
25
|
keywords: {
|
|
22
26
|
yes: string;
|
|
23
27
|
no: string;
|
|
28
|
+
error: (keywords: {
|
|
29
|
+
yes: string;
|
|
30
|
+
no: string;
|
|
31
|
+
}) => string;
|
|
24
32
|
};
|
|
25
33
|
style: {
|
|
26
34
|
confirmDefault: (text: string) => string;
|
|
@@ -277,35 +285,35 @@ export declare const confirm: (this: void, config: {
|
|
|
277
285
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
278
286
|
message: string;
|
|
279
287
|
choices: readonly (import("@inquirer/prompts").Separator | {
|
|
280
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
288
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
281
289
|
name: Value & string;
|
|
282
290
|
value?: never;
|
|
283
291
|
} | ({
|
|
284
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
292
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
285
293
|
value: Value;
|
|
286
294
|
} | {
|
|
287
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
295
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
288
296
|
name: string;
|
|
289
297
|
value: Value;
|
|
290
298
|
}))[];
|
|
291
|
-
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
299
|
+
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
|
|
292
300
|
expanded?: boolean | undefined;
|
|
293
301
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
|
|
294
302
|
} & {
|
|
295
303
|
message: string;
|
|
296
304
|
choices: readonly (import("@inquirer/prompts").Separator | ({
|
|
297
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
305
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
298
306
|
value: Value;
|
|
299
307
|
} | {
|
|
300
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
308
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
301
309
|
name: string;
|
|
302
310
|
value: Value;
|
|
303
311
|
}) | {
|
|
304
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
312
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
305
313
|
name: Value & string;
|
|
306
314
|
value?: never;
|
|
307
315
|
})[];
|
|
308
|
-
default?: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
316
|
+
default?: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h";
|
|
309
317
|
expanded?: boolean;
|
|
310
318
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme>;
|
|
311
319
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
|
package/dist/locales/es.js
CHANGED
package/dist/locales/fr.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ export declare const confirm: (this: void, config: {
|
|
|
8
8
|
keywords: {
|
|
9
9
|
yes: string;
|
|
10
10
|
no: string;
|
|
11
|
+
error: (keywords: {
|
|
12
|
+
yes: string;
|
|
13
|
+
no: string;
|
|
14
|
+
}) => string;
|
|
11
15
|
};
|
|
12
16
|
style: {
|
|
13
17
|
confirmDefault: (text: string) => string;
|
|
@@ -21,6 +25,10 @@ export declare const confirm: (this: void, config: {
|
|
|
21
25
|
keywords: {
|
|
22
26
|
yes: string;
|
|
23
27
|
no: string;
|
|
28
|
+
error: (keywords: {
|
|
29
|
+
yes: string;
|
|
30
|
+
no: string;
|
|
31
|
+
}) => string;
|
|
24
32
|
};
|
|
25
33
|
style: {
|
|
26
34
|
confirmDefault: (text: string) => string;
|
|
@@ -277,35 +285,35 @@ export declare const confirm: (this: void, config: {
|
|
|
277
285
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
278
286
|
message: string;
|
|
279
287
|
choices: readonly (import("@inquirer/prompts").Separator | {
|
|
280
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
288
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
281
289
|
name: Value & string;
|
|
282
290
|
value?: never;
|
|
283
291
|
} | ({
|
|
284
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
292
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
285
293
|
value: Value;
|
|
286
294
|
} | {
|
|
287
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
295
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
288
296
|
name: string;
|
|
289
297
|
value: Value;
|
|
290
298
|
}))[];
|
|
291
|
-
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
299
|
+
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
|
|
292
300
|
expanded?: boolean | undefined;
|
|
293
301
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
|
|
294
302
|
} & {
|
|
295
303
|
message: string;
|
|
296
304
|
choices: readonly (import("@inquirer/prompts").Separator | ({
|
|
297
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
305
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
298
306
|
value: Value;
|
|
299
307
|
} | {
|
|
300
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
308
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
301
309
|
name: string;
|
|
302
310
|
value: Value;
|
|
303
311
|
}) | {
|
|
304
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
312
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
305
313
|
name: Value & string;
|
|
306
314
|
value?: never;
|
|
307
315
|
})[];
|
|
308
|
-
default?: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
316
|
+
default?: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h";
|
|
309
317
|
expanded?: boolean;
|
|
310
318
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme>;
|
|
311
319
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
|
package/dist/locales/fr.js
CHANGED
package/dist/locales/pt.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ export declare const confirm: (this: void, config: {
|
|
|
8
8
|
keywords: {
|
|
9
9
|
yes: string;
|
|
10
10
|
no: string;
|
|
11
|
+
error: (keywords: {
|
|
12
|
+
yes: string;
|
|
13
|
+
no: string;
|
|
14
|
+
}) => string;
|
|
11
15
|
};
|
|
12
16
|
style: {
|
|
13
17
|
confirmDefault: (text: string) => string;
|
|
@@ -21,6 +25,10 @@ export declare const confirm: (this: void, config: {
|
|
|
21
25
|
keywords: {
|
|
22
26
|
yes: string;
|
|
23
27
|
no: string;
|
|
28
|
+
error: (keywords: {
|
|
29
|
+
yes: string;
|
|
30
|
+
no: string;
|
|
31
|
+
}) => string;
|
|
24
32
|
};
|
|
25
33
|
style: {
|
|
26
34
|
confirmDefault: (text: string) => string;
|
|
@@ -277,35 +285,35 @@ export declare const confirm: (this: void, config: {
|
|
|
277
285
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
278
286
|
message: string;
|
|
279
287
|
choices: readonly (import("@inquirer/prompts").Separator | {
|
|
280
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
288
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
281
289
|
name: Value & string;
|
|
282
290
|
value?: never;
|
|
283
291
|
} | ({
|
|
284
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
292
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
285
293
|
value: Value;
|
|
286
294
|
} | {
|
|
287
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
295
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
288
296
|
name: string;
|
|
289
297
|
value: Value;
|
|
290
298
|
}))[];
|
|
291
|
-
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
299
|
+
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
|
|
292
300
|
expanded?: boolean | undefined;
|
|
293
301
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
|
|
294
302
|
} & {
|
|
295
303
|
message: string;
|
|
296
304
|
choices: readonly (import("@inquirer/prompts").Separator | ({
|
|
297
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
305
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
298
306
|
value: Value;
|
|
299
307
|
} | {
|
|
300
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
308
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
301
309
|
name: string;
|
|
302
310
|
value: Value;
|
|
303
311
|
}) | {
|
|
304
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
312
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
305
313
|
name: Value & string;
|
|
306
314
|
value?: never;
|
|
307
315
|
})[];
|
|
308
|
-
default?: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
316
|
+
default?: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h";
|
|
309
317
|
expanded?: boolean;
|
|
310
318
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme>;
|
|
311
319
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
|
package/dist/locales/pt.js
CHANGED
package/dist/locales/zh.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ export declare const confirm: (this: void, config: {
|
|
|
8
8
|
keywords: {
|
|
9
9
|
yes: string;
|
|
10
10
|
no: string;
|
|
11
|
+
error: (keywords: {
|
|
12
|
+
yes: string;
|
|
13
|
+
no: string;
|
|
14
|
+
}) => string;
|
|
11
15
|
};
|
|
12
16
|
style: {
|
|
13
17
|
confirmDefault: (text: string) => string;
|
|
@@ -21,6 +25,10 @@ export declare const confirm: (this: void, config: {
|
|
|
21
25
|
keywords: {
|
|
22
26
|
yes: string;
|
|
23
27
|
no: string;
|
|
28
|
+
error: (keywords: {
|
|
29
|
+
yes: string;
|
|
30
|
+
no: string;
|
|
31
|
+
}) => string;
|
|
24
32
|
};
|
|
25
33
|
style: {
|
|
26
34
|
confirmDefault: (text: string) => string;
|
|
@@ -277,35 +285,35 @@ export declare const confirm: (this: void, config: {
|
|
|
277
285
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
278
286
|
message: string;
|
|
279
287
|
choices: readonly (import("@inquirer/prompts").Separator | {
|
|
280
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
288
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
281
289
|
name: Value & string;
|
|
282
290
|
value?: never;
|
|
283
291
|
} | ({
|
|
284
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
292
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
285
293
|
value: Value;
|
|
286
294
|
} | {
|
|
287
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
295
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
288
296
|
name: string;
|
|
289
297
|
value: Value;
|
|
290
298
|
}))[];
|
|
291
|
-
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
299
|
+
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
|
|
292
300
|
expanded?: boolean | undefined;
|
|
293
301
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
|
|
294
302
|
} & {
|
|
295
303
|
message: string;
|
|
296
304
|
choices: readonly (import("@inquirer/prompts").Separator | ({
|
|
297
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
305
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
298
306
|
value: Value;
|
|
299
307
|
} | {
|
|
300
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
308
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
301
309
|
name: string;
|
|
302
310
|
value: Value;
|
|
303
311
|
}) | {
|
|
304
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
312
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
305
313
|
name: Value & string;
|
|
306
314
|
value?: never;
|
|
307
315
|
})[];
|
|
308
|
-
default?: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
316
|
+
default?: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h";
|
|
309
317
|
expanded?: boolean;
|
|
310
318
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme>;
|
|
311
319
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
|
package/dist/locales/zh.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export interface ConfirmStrings {
|
|
|
6
6
|
yesLabel: string;
|
|
7
7
|
/** Label for "No" — also the keyword accepted as "no" (prefix-matched) */
|
|
8
8
|
noLabel: string;
|
|
9
|
+
/** Message shown when the submitted input matches no keyword (receives the localized labels) */
|
|
10
|
+
invalidAnswer: (yesLabel: string, noLabel: string) => string;
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* Localized strings for the select prompt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/i18n",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Internationalized Inquirer prompts - drop-in package with i18n support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"tsc": "tsc"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@inquirer/core": "^12.0.
|
|
101
|
-
"@inquirer/prompts": "^8.7.
|
|
100
|
+
"@inquirer/core": "^12.0.4",
|
|
101
|
+
"@inquirer/prompts": "^8.7.3"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@repo/tsconfig": "0.0.0",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
},
|
|
118
118
|
"main": "./dist/index.js",
|
|
119
119
|
"types": "./dist/index.d.ts",
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "a9436bd94d55a439df308f50e77a7cd0b2078e98"
|
|
121
121
|
}
|