@inquirer/i18n 1.1.1 → 1.2.0
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/locales/es.d.ts +8 -7
- package/dist/locales/fr.d.ts +8 -7
- package/dist/locales/pt.d.ts +8 -7
- package/dist/locales/zh.d.ts +8 -7
- package/package.json +5 -4
package/dist/locales/es.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const confirm: (this: void, config: {
|
|
2
2
|
message: string;
|
|
3
|
-
default?: boolean;
|
|
3
|
+
default?: boolean | undefined;
|
|
4
4
|
transformer?: (value: boolean) => string;
|
|
5
5
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme>;
|
|
6
6
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<boolean>, select: <Value>(this: void, config: {
|
|
@@ -115,6 +115,7 @@ export declare const confirm: (this: void, config: {
|
|
|
115
115
|
validate?: ((value: Value) => boolean | string | Promise<string | boolean>) | undefined;
|
|
116
116
|
pageSize?: number | undefined;
|
|
117
117
|
default?: NoInfer<Value> | undefined;
|
|
118
|
+
initialValue?: string | undefined;
|
|
118
119
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
119
120
|
icon: {
|
|
120
121
|
cursor: string;
|
|
@@ -129,18 +130,18 @@ export declare const confirm: (this: void, config: {
|
|
|
129
130
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
130
131
|
message: string;
|
|
131
132
|
choices: readonly (import("@inquirer/prompts").Separator | {
|
|
132
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
133
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
133
134
|
name: Value & string;
|
|
134
135
|
value?: never;
|
|
135
136
|
} | ({
|
|
136
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
137
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
137
138
|
value: Value;
|
|
138
139
|
} | {
|
|
139
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
140
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
140
141
|
name: string;
|
|
141
142
|
value: Value;
|
|
142
143
|
}))[];
|
|
143
|
-
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
144
|
+
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
|
|
144
145
|
expanded?: boolean | undefined;
|
|
145
146
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
|
|
146
147
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
|
|
@@ -161,7 +162,7 @@ export declare const confirm: (this: void, config: {
|
|
|
161
162
|
default?: NoInfer<Value> | undefined;
|
|
162
163
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, editor: (this: void, config: {
|
|
163
164
|
message: string;
|
|
164
|
-
default?: string;
|
|
165
|
+
default?: string | undefined;
|
|
165
166
|
postfix?: string;
|
|
166
167
|
waitForUserInput?: boolean;
|
|
167
168
|
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
@@ -189,7 +190,7 @@ export declare const confirm: (this: void, config: {
|
|
|
189
190
|
patternError?: string;
|
|
190
191
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<string>, number: <Required extends boolean = boolean>(this: void, config: {
|
|
191
192
|
message: string;
|
|
192
|
-
default?: number | undefined;
|
|
193
|
+
default?: number | undefined | undefined;
|
|
193
194
|
min?: number | undefined;
|
|
194
195
|
max?: number | undefined;
|
|
195
196
|
step?: number | "any" | undefined;
|
package/dist/locales/fr.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const confirm: (this: void, config: {
|
|
2
2
|
message: string;
|
|
3
|
-
default?: boolean;
|
|
3
|
+
default?: boolean | undefined;
|
|
4
4
|
transformer?: (value: boolean) => string;
|
|
5
5
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme>;
|
|
6
6
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<boolean>, select: <Value>(this: void, config: {
|
|
@@ -115,6 +115,7 @@ export declare const confirm: (this: void, config: {
|
|
|
115
115
|
validate?: ((value: Value) => boolean | string | Promise<string | boolean>) | undefined;
|
|
116
116
|
pageSize?: number | undefined;
|
|
117
117
|
default?: NoInfer<Value> | undefined;
|
|
118
|
+
initialValue?: string | undefined;
|
|
118
119
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
119
120
|
icon: {
|
|
120
121
|
cursor: string;
|
|
@@ -129,18 +130,18 @@ export declare const confirm: (this: void, config: {
|
|
|
129
130
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
130
131
|
message: string;
|
|
131
132
|
choices: readonly (import("@inquirer/prompts").Separator | {
|
|
132
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
133
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
133
134
|
name: Value & string;
|
|
134
135
|
value?: never;
|
|
135
136
|
} | ({
|
|
136
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
137
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
137
138
|
value: Value;
|
|
138
139
|
} | {
|
|
139
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
140
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
140
141
|
name: string;
|
|
141
142
|
value: Value;
|
|
142
143
|
}))[];
|
|
143
|
-
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
144
|
+
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
|
|
144
145
|
expanded?: boolean | undefined;
|
|
145
146
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
|
|
146
147
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
|
|
@@ -161,7 +162,7 @@ export declare const confirm: (this: void, config: {
|
|
|
161
162
|
default?: NoInfer<Value> | undefined;
|
|
162
163
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, editor: (this: void, config: {
|
|
163
164
|
message: string;
|
|
164
|
-
default?: string;
|
|
165
|
+
default?: string | undefined;
|
|
165
166
|
postfix?: string;
|
|
166
167
|
waitForUserInput?: boolean;
|
|
167
168
|
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
@@ -189,7 +190,7 @@ export declare const confirm: (this: void, config: {
|
|
|
189
190
|
patternError?: string;
|
|
190
191
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<string>, number: <Required extends boolean = boolean>(this: void, config: {
|
|
191
192
|
message: string;
|
|
192
|
-
default?: number | undefined;
|
|
193
|
+
default?: number | undefined | undefined;
|
|
193
194
|
min?: number | undefined;
|
|
194
195
|
max?: number | undefined;
|
|
195
196
|
step?: number | "any" | undefined;
|
package/dist/locales/pt.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const confirm: (this: void, config: {
|
|
2
2
|
message: string;
|
|
3
|
-
default?: boolean;
|
|
3
|
+
default?: boolean | undefined;
|
|
4
4
|
transformer?: (value: boolean) => string;
|
|
5
5
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme>;
|
|
6
6
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<boolean>, select: <Value>(this: void, config: {
|
|
@@ -115,6 +115,7 @@ export declare const confirm: (this: void, config: {
|
|
|
115
115
|
validate?: ((value: Value) => boolean | string | Promise<string | boolean>) | undefined;
|
|
116
116
|
pageSize?: number | undefined;
|
|
117
117
|
default?: NoInfer<Value> | undefined;
|
|
118
|
+
initialValue?: string | undefined;
|
|
118
119
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
119
120
|
icon: {
|
|
120
121
|
cursor: string;
|
|
@@ -129,18 +130,18 @@ export declare const confirm: (this: void, config: {
|
|
|
129
130
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
130
131
|
message: string;
|
|
131
132
|
choices: readonly (import("@inquirer/prompts").Separator | {
|
|
132
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
133
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
133
134
|
name: Value & string;
|
|
134
135
|
value?: never;
|
|
135
136
|
} | ({
|
|
136
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
137
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
137
138
|
value: Value;
|
|
138
139
|
} | {
|
|
139
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
140
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
140
141
|
name: string;
|
|
141
142
|
value: Value;
|
|
142
143
|
}))[];
|
|
143
|
-
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
144
|
+
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
|
|
144
145
|
expanded?: boolean | undefined;
|
|
145
146
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
|
|
146
147
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
|
|
@@ -161,7 +162,7 @@ export declare const confirm: (this: void, config: {
|
|
|
161
162
|
default?: NoInfer<Value> | undefined;
|
|
162
163
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, editor: (this: void, config: {
|
|
163
164
|
message: string;
|
|
164
|
-
default?: string;
|
|
165
|
+
default?: string | undefined;
|
|
165
166
|
postfix?: string;
|
|
166
167
|
waitForUserInput?: boolean;
|
|
167
168
|
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
@@ -189,7 +190,7 @@ export declare const confirm: (this: void, config: {
|
|
|
189
190
|
patternError?: string;
|
|
190
191
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<string>, number: <Required extends boolean = boolean>(this: void, config: {
|
|
191
192
|
message: string;
|
|
192
|
-
default?: number | undefined;
|
|
193
|
+
default?: number | undefined | undefined;
|
|
193
194
|
min?: number | undefined;
|
|
194
195
|
max?: number | undefined;
|
|
195
196
|
step?: number | "any" | undefined;
|
package/dist/locales/zh.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const confirm: (this: void, config: {
|
|
2
2
|
message: string;
|
|
3
|
-
default?: boolean;
|
|
3
|
+
default?: boolean | undefined;
|
|
4
4
|
transformer?: (value: boolean) => string;
|
|
5
5
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme>;
|
|
6
6
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<boolean>, select: <Value>(this: void, config: {
|
|
@@ -115,6 +115,7 @@ export declare const confirm: (this: void, config: {
|
|
|
115
115
|
validate?: ((value: Value) => boolean | string | Promise<string | boolean>) | undefined;
|
|
116
116
|
pageSize?: number | undefined;
|
|
117
117
|
default?: NoInfer<Value> | undefined;
|
|
118
|
+
initialValue?: string | undefined;
|
|
118
119
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
119
120
|
icon: {
|
|
120
121
|
cursor: string;
|
|
@@ -129,18 +130,18 @@ export declare const confirm: (this: void, config: {
|
|
|
129
130
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
130
131
|
message: string;
|
|
131
132
|
choices: readonly (import("@inquirer/prompts").Separator | {
|
|
132
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
133
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
133
134
|
name: Value & string;
|
|
134
135
|
value?: never;
|
|
135
136
|
} | ({
|
|
136
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
137
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
137
138
|
value: Value;
|
|
138
139
|
} | {
|
|
139
|
-
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
140
|
+
key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
140
141
|
name: string;
|
|
141
142
|
value: Value;
|
|
142
143
|
}))[];
|
|
143
|
-
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "
|
|
144
|
+
default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "f" | "s" | "a" | "b" | "c" | "d" | "e" | "g" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
|
|
144
145
|
expanded?: boolean | undefined;
|
|
145
146
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
|
|
146
147
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
|
|
@@ -161,7 +162,7 @@ export declare const confirm: (this: void, config: {
|
|
|
161
162
|
default?: NoInfer<Value> | undefined;
|
|
162
163
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, editor: (this: void, config: {
|
|
163
164
|
message: string;
|
|
164
|
-
default?: string;
|
|
165
|
+
default?: string | undefined;
|
|
165
166
|
postfix?: string;
|
|
166
167
|
waitForUserInput?: boolean;
|
|
167
168
|
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
@@ -189,7 +190,7 @@ export declare const confirm: (this: void, config: {
|
|
|
189
190
|
patternError?: string;
|
|
190
191
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<string>, number: <Required extends boolean = boolean>(this: void, config: {
|
|
191
192
|
message: string;
|
|
192
|
-
default?: number | undefined;
|
|
193
|
+
default?: number | undefined | undefined;
|
|
193
194
|
min?: number | undefined;
|
|
194
195
|
max?: number | undefined;
|
|
195
196
|
step?: number | "any" | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/i18n",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Internationalized Inquirer prompts - drop-in package with i18n support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -97,10 +97,11 @@
|
|
|
97
97
|
"tsc": "tsc"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@inquirer/core": "^
|
|
101
|
-
"@inquirer/prompts": "^8.
|
|
100
|
+
"@inquirer/core": "^12.0.0",
|
|
101
|
+
"@inquirer/prompts": "^8.6.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
+
"@repo/tsconfig": "0.0.0",
|
|
104
105
|
"typescript": "^6.0.2"
|
|
105
106
|
},
|
|
106
107
|
"peerDependencies": {
|
|
@@ -116,5 +117,5 @@
|
|
|
116
117
|
},
|
|
117
118
|
"main": "./dist/index.js",
|
|
118
119
|
"types": "./dist/index.d.ts",
|
|
119
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "999706755afbdcae271f62decbd9bcd05560905b"
|
|
120
121
|
}
|