@inquirer/i18n 1.0.2 → 1.0.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 +1 -0
- package/dist/create.js +1 -0
- package/dist/locales/es.d.ts +7 -6
- package/dist/locales/es.js +1 -0
- package/dist/locales/fr.d.ts +7 -6
- package/dist/locales/fr.js +1 -0
- package/dist/locales/pt.d.ts +7 -6
- package/dist/locales/pt.js +1 -0
- package/dist/locales/zh.d.ts +7 -6
- package/dist/locales/zh.js +1 -0
- package/dist/types.d.ts +2 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -100,6 +100,7 @@ const deLocale: Locale = {
|
|
|
100
100
|
},
|
|
101
101
|
search: { helpNavigate: 'Navigieren', helpSelect: 'Auswählen' },
|
|
102
102
|
editor: {
|
|
103
|
+
loadingMessage: () => 'Überprüfung...',
|
|
103
104
|
waitingMessage: (enterKey) => `Drücken Sie ${enterKey}, um Ihren Editor zu öffnen.`,
|
|
104
105
|
},
|
|
105
106
|
password: { maskedText: '[Eingabe verborgen]' },
|
package/dist/create.js
CHANGED
package/dist/locales/es.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare const confirm: (this: void, config: {
|
|
|
35
35
|
message: string;
|
|
36
36
|
prefix?: string | undefined;
|
|
37
37
|
pageSize?: number | undefined;
|
|
38
|
-
choices: readonly (
|
|
38
|
+
choices: readonly (import("@inquirer/prompts").Separator | Value | {
|
|
39
39
|
value: Value;
|
|
40
40
|
name?: string;
|
|
41
41
|
checkedName?: string;
|
|
@@ -99,14 +99,14 @@ export declare const confirm: (this: void, config: {
|
|
|
99
99
|
message: string;
|
|
100
100
|
source: (term: string | undefined, opt: {
|
|
101
101
|
signal: AbortSignal;
|
|
102
|
-
}) => readonly (
|
|
102
|
+
}) => readonly (import("@inquirer/prompts").Separator | Value | {
|
|
103
103
|
value: Value;
|
|
104
104
|
name?: string;
|
|
105
105
|
description?: string;
|
|
106
106
|
short?: string;
|
|
107
107
|
disabled?: boolean | string;
|
|
108
108
|
type?: never;
|
|
109
|
-
})[] | Promise<readonly (import("@inquirer/prompts").Separator | {
|
|
109
|
+
})[] | Promise<readonly (import("@inquirer/prompts").Separator | Value | {
|
|
110
110
|
value: Value;
|
|
111
111
|
name?: string;
|
|
112
112
|
description?: string;
|
|
@@ -130,10 +130,10 @@ export declare const confirm: (this: void, config: {
|
|
|
130
130
|
}>> | undefined;
|
|
131
131
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
132
132
|
message: string;
|
|
133
|
-
choices: readonly {
|
|
133
|
+
choices: readonly (import("@inquirer/prompts").Separator | {
|
|
134
134
|
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";
|
|
135
135
|
name: string;
|
|
136
|
-
}
|
|
136
|
+
} | ({
|
|
137
137
|
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";
|
|
138
138
|
value: Value;
|
|
139
139
|
} | {
|
|
@@ -166,10 +166,11 @@ export declare const confirm: (this: void, config: {
|
|
|
166
166
|
postfix?: string;
|
|
167
167
|
waitForUserInput?: boolean;
|
|
168
168
|
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
169
|
-
file?: import("@inquirer/external-editor").
|
|
169
|
+
file?: import("@inquirer/external-editor").FileOptions;
|
|
170
170
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
171
171
|
validationFailureMode: "keep" | "clear";
|
|
172
172
|
style: {
|
|
173
|
+
loadingMessage: () => string;
|
|
173
174
|
waitingMessage: (enterKey: string) => string;
|
|
174
175
|
};
|
|
175
176
|
}>>;
|
package/dist/locales/es.js
CHANGED
package/dist/locales/fr.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare const confirm: (this: void, config: {
|
|
|
35
35
|
message: string;
|
|
36
36
|
prefix?: string | undefined;
|
|
37
37
|
pageSize?: number | undefined;
|
|
38
|
-
choices: readonly (
|
|
38
|
+
choices: readonly (import("@inquirer/prompts").Separator | Value | {
|
|
39
39
|
value: Value;
|
|
40
40
|
name?: string;
|
|
41
41
|
checkedName?: string;
|
|
@@ -99,14 +99,14 @@ export declare const confirm: (this: void, config: {
|
|
|
99
99
|
message: string;
|
|
100
100
|
source: (term: string | undefined, opt: {
|
|
101
101
|
signal: AbortSignal;
|
|
102
|
-
}) => readonly (
|
|
102
|
+
}) => readonly (import("@inquirer/prompts").Separator | Value | {
|
|
103
103
|
value: Value;
|
|
104
104
|
name?: string;
|
|
105
105
|
description?: string;
|
|
106
106
|
short?: string;
|
|
107
107
|
disabled?: boolean | string;
|
|
108
108
|
type?: never;
|
|
109
|
-
})[] | Promise<readonly (import("@inquirer/prompts").Separator | {
|
|
109
|
+
})[] | Promise<readonly (import("@inquirer/prompts").Separator | Value | {
|
|
110
110
|
value: Value;
|
|
111
111
|
name?: string;
|
|
112
112
|
description?: string;
|
|
@@ -130,10 +130,10 @@ export declare const confirm: (this: void, config: {
|
|
|
130
130
|
}>> | undefined;
|
|
131
131
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
132
132
|
message: string;
|
|
133
|
-
choices: readonly {
|
|
133
|
+
choices: readonly (import("@inquirer/prompts").Separator | {
|
|
134
134
|
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";
|
|
135
135
|
name: string;
|
|
136
|
-
}
|
|
136
|
+
} | ({
|
|
137
137
|
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";
|
|
138
138
|
value: Value;
|
|
139
139
|
} | {
|
|
@@ -166,10 +166,11 @@ export declare const confirm: (this: void, config: {
|
|
|
166
166
|
postfix?: string;
|
|
167
167
|
waitForUserInput?: boolean;
|
|
168
168
|
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
169
|
-
file?: import("@inquirer/external-editor").
|
|
169
|
+
file?: import("@inquirer/external-editor").FileOptions;
|
|
170
170
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
171
171
|
validationFailureMode: "keep" | "clear";
|
|
172
172
|
style: {
|
|
173
|
+
loadingMessage: () => string;
|
|
173
174
|
waitingMessage: (enterKey: string) => string;
|
|
174
175
|
};
|
|
175
176
|
}>>;
|
package/dist/locales/fr.js
CHANGED
package/dist/locales/pt.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare const confirm: (this: void, config: {
|
|
|
35
35
|
message: string;
|
|
36
36
|
prefix?: string | undefined;
|
|
37
37
|
pageSize?: number | undefined;
|
|
38
|
-
choices: readonly (
|
|
38
|
+
choices: readonly (import("@inquirer/prompts").Separator | Value | {
|
|
39
39
|
value: Value;
|
|
40
40
|
name?: string;
|
|
41
41
|
checkedName?: string;
|
|
@@ -99,14 +99,14 @@ export declare const confirm: (this: void, config: {
|
|
|
99
99
|
message: string;
|
|
100
100
|
source: (term: string | undefined, opt: {
|
|
101
101
|
signal: AbortSignal;
|
|
102
|
-
}) => readonly (
|
|
102
|
+
}) => readonly (import("@inquirer/prompts").Separator | Value | {
|
|
103
103
|
value: Value;
|
|
104
104
|
name?: string;
|
|
105
105
|
description?: string;
|
|
106
106
|
short?: string;
|
|
107
107
|
disabled?: boolean | string;
|
|
108
108
|
type?: never;
|
|
109
|
-
})[] | Promise<readonly (import("@inquirer/prompts").Separator | {
|
|
109
|
+
})[] | Promise<readonly (import("@inquirer/prompts").Separator | Value | {
|
|
110
110
|
value: Value;
|
|
111
111
|
name?: string;
|
|
112
112
|
description?: string;
|
|
@@ -130,10 +130,10 @@ export declare const confirm: (this: void, config: {
|
|
|
130
130
|
}>> | undefined;
|
|
131
131
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
132
132
|
message: string;
|
|
133
|
-
choices: readonly {
|
|
133
|
+
choices: readonly (import("@inquirer/prompts").Separator | {
|
|
134
134
|
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";
|
|
135
135
|
name: string;
|
|
136
|
-
}
|
|
136
|
+
} | ({
|
|
137
137
|
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";
|
|
138
138
|
value: Value;
|
|
139
139
|
} | {
|
|
@@ -166,10 +166,11 @@ export declare const confirm: (this: void, config: {
|
|
|
166
166
|
postfix?: string;
|
|
167
167
|
waitForUserInput?: boolean;
|
|
168
168
|
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
169
|
-
file?: import("@inquirer/external-editor").
|
|
169
|
+
file?: import("@inquirer/external-editor").FileOptions;
|
|
170
170
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
171
171
|
validationFailureMode: "keep" | "clear";
|
|
172
172
|
style: {
|
|
173
|
+
loadingMessage: () => string;
|
|
173
174
|
waitingMessage: (enterKey: string) => string;
|
|
174
175
|
};
|
|
175
176
|
}>>;
|
package/dist/locales/pt.js
CHANGED
package/dist/locales/zh.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare const confirm: (this: void, config: {
|
|
|
35
35
|
message: string;
|
|
36
36
|
prefix?: string | undefined;
|
|
37
37
|
pageSize?: number | undefined;
|
|
38
|
-
choices: readonly (
|
|
38
|
+
choices: readonly (import("@inquirer/prompts").Separator | Value | {
|
|
39
39
|
value: Value;
|
|
40
40
|
name?: string;
|
|
41
41
|
checkedName?: string;
|
|
@@ -99,14 +99,14 @@ export declare const confirm: (this: void, config: {
|
|
|
99
99
|
message: string;
|
|
100
100
|
source: (term: string | undefined, opt: {
|
|
101
101
|
signal: AbortSignal;
|
|
102
|
-
}) => readonly (
|
|
102
|
+
}) => readonly (import("@inquirer/prompts").Separator | Value | {
|
|
103
103
|
value: Value;
|
|
104
104
|
name?: string;
|
|
105
105
|
description?: string;
|
|
106
106
|
short?: string;
|
|
107
107
|
disabled?: boolean | string;
|
|
108
108
|
type?: never;
|
|
109
|
-
})[] | Promise<readonly (import("@inquirer/prompts").Separator | {
|
|
109
|
+
})[] | Promise<readonly (import("@inquirer/prompts").Separator | Value | {
|
|
110
110
|
value: Value;
|
|
111
111
|
name?: string;
|
|
112
112
|
description?: string;
|
|
@@ -130,10 +130,10 @@ export declare const confirm: (this: void, config: {
|
|
|
130
130
|
}>> | undefined;
|
|
131
131
|
}, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, expand: <Value>(this: void, config: {
|
|
132
132
|
message: string;
|
|
133
|
-
choices: readonly {
|
|
133
|
+
choices: readonly (import("@inquirer/prompts").Separator | {
|
|
134
134
|
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";
|
|
135
135
|
name: string;
|
|
136
|
-
}
|
|
136
|
+
} | ({
|
|
137
137
|
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";
|
|
138
138
|
value: Value;
|
|
139
139
|
} | {
|
|
@@ -166,10 +166,11 @@ export declare const confirm: (this: void, config: {
|
|
|
166
166
|
postfix?: string;
|
|
167
167
|
waitForUserInput?: boolean;
|
|
168
168
|
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
|
169
|
-
file?: import("@inquirer/external-editor").
|
|
169
|
+
file?: import("@inquirer/external-editor").FileOptions;
|
|
170
170
|
theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
|
|
171
171
|
validationFailureMode: "keep" | "clear";
|
|
172
172
|
style: {
|
|
173
|
+
loadingMessage: () => string;
|
|
173
174
|
waitingMessage: (enterKey: string) => string;
|
|
174
175
|
};
|
|
175
176
|
}>>;
|
package/dist/locales/zh.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ export interface SearchStrings {
|
|
|
48
48
|
* Localized strings for the editor prompt
|
|
49
49
|
*/
|
|
50
50
|
export interface EditorStrings {
|
|
51
|
+
/** Message shown while prompt is validating file contents */
|
|
52
|
+
loadingMessage: () => string;
|
|
51
53
|
/** Message shown while waiting for user to open editor (receives formatted enter key) */
|
|
52
54
|
waitingMessage: (enterKey: string) => string;
|
|
53
55
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/i18n",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Internationalized Inquirer prompts - drop-in package with i18n support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"answer",
|
|
@@ -97,11 +97,11 @@
|
|
|
97
97
|
"tsc": "tsc"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@inquirer/core": "^11.1.
|
|
101
|
-
"@inquirer/prompts": "^8.
|
|
100
|
+
"@inquirer/core": "^11.1.8",
|
|
101
|
+
"@inquirer/prompts": "^8.4.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"typescript": "^
|
|
104
|
+
"typescript": "^6.0.2"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
107
107
|
"@types/node": ">=18"
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
},
|
|
117
117
|
"main": "./dist/index.js",
|
|
118
118
|
"types": "./dist/index.d.ts",
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "e68fe01d65359e083581c48c4a18cd8f97d88842"
|
|
120
120
|
}
|