@inquirer/i18n 1.0.2 → 1.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/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
@@ -100,6 +100,7 @@ export function createLocalizedPrompts(locale) {
100
100
  editor(config, context) {
101
101
  const theme = makeTheme(config.theme, {
102
102
  style: {
103
+ loadingMessage: locale.editor.loadingMessage,
103
104
  waitingMessage: locale.editor.waitingMessage,
104
105
  },
105
106
  });
@@ -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 (string | import("@inquirer/prompts").Separator)[] | readonly (import("@inquirer/prompts").Separator | {
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 (string | import("@inquirer/prompts").Separator)[] | Promise<readonly (string | import("@inquirer/prompts").Separator)[]> | readonly (import("@inquirer/prompts").Separator | {
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,18 +130,19 @@ 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 {
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
- name: string;
136
- }[] | readonly (import("@inquirer/prompts").Separator | ({
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";
133
+ choices: readonly (import("@inquirer/prompts").Separator | {
134
+ key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
135
+ name: Value & string;
136
+ value?: never;
137
+ } | ({
138
+ key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
138
139
  value: Value;
139
140
  } | {
140
- 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";
141
+ key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
141
142
  name: string;
142
143
  value: Value;
143
144
  }))[];
144
- 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;
145
+ default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
145
146
  expanded?: boolean | undefined;
146
147
  theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
147
148
  }, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
@@ -166,10 +167,11 @@ export declare const confirm: (this: void, config: {
166
167
  postfix?: string;
167
168
  waitForUserInput?: boolean;
168
169
  validate?: (value: string) => boolean | string | Promise<string | boolean>;
169
- file?: import("@inquirer/external-editor").IFileOptions;
170
+ file?: import("@inquirer/external-editor").FileOptions;
170
171
  theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
171
172
  validationFailureMode: "keep" | "clear";
172
173
  style: {
174
+ loadingMessage: () => string;
173
175
  waitingMessage: (enterKey: string) => string;
174
176
  };
175
177
  }>>;
@@ -22,6 +22,7 @@ const esLocale = {
22
22
  helpSelect: 'seleccionar',
23
23
  },
24
24
  editor: {
25
+ loadingMessage: () => 'Validando...',
25
26
  waitingMessage: (enterKey) => `Presione ${enterKey} para lanzar su editor preferido.`,
26
27
  },
27
28
  password: {
@@ -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 (string | import("@inquirer/prompts").Separator)[] | readonly (import("@inquirer/prompts").Separator | {
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 (string | import("@inquirer/prompts").Separator)[] | Promise<readonly (string | import("@inquirer/prompts").Separator)[]> | readonly (import("@inquirer/prompts").Separator | {
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,18 +130,19 @@ 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 {
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
- name: string;
136
- }[] | readonly (import("@inquirer/prompts").Separator | ({
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";
133
+ choices: readonly (import("@inquirer/prompts").Separator | {
134
+ key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
135
+ name: Value & string;
136
+ value?: never;
137
+ } | ({
138
+ key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
138
139
  value: Value;
139
140
  } | {
140
- 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";
141
+ key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
141
142
  name: string;
142
143
  value: Value;
143
144
  }))[];
144
- 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;
145
+ default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
145
146
  expanded?: boolean | undefined;
146
147
  theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
147
148
  }, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
@@ -166,10 +167,11 @@ export declare const confirm: (this: void, config: {
166
167
  postfix?: string;
167
168
  waitForUserInput?: boolean;
168
169
  validate?: (value: string) => boolean | string | Promise<string | boolean>;
169
- file?: import("@inquirer/external-editor").IFileOptions;
170
+ file?: import("@inquirer/external-editor").FileOptions;
170
171
  theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
171
172
  validationFailureMode: "keep" | "clear";
172
173
  style: {
174
+ loadingMessage: () => string;
173
175
  waitingMessage: (enterKey: string) => string;
174
176
  };
175
177
  }>>;
@@ -22,6 +22,7 @@ const frLocale = {
22
22
  helpSelect: 'sélectionner',
23
23
  },
24
24
  editor: {
25
+ loadingMessage: () => 'Validation en cours...',
25
26
  waitingMessage: (enterKey) => `Appuyez sur ${enterKey} pour lancer votre éditeur préféré.`,
26
27
  },
27
28
  password: {
@@ -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 (string | import("@inquirer/prompts").Separator)[] | readonly (import("@inquirer/prompts").Separator | {
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 (string | import("@inquirer/prompts").Separator)[] | Promise<readonly (string | import("@inquirer/prompts").Separator)[]> | readonly (import("@inquirer/prompts").Separator | {
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,18 +130,19 @@ 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 {
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
- name: string;
136
- }[] | readonly (import("@inquirer/prompts").Separator | ({
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";
133
+ choices: readonly (import("@inquirer/prompts").Separator | {
134
+ key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
135
+ name: Value & string;
136
+ value?: never;
137
+ } | ({
138
+ key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
138
139
  value: Value;
139
140
  } | {
140
- 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";
141
+ key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
141
142
  name: string;
142
143
  value: Value;
143
144
  }))[];
144
- 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;
145
+ default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
145
146
  expanded?: boolean | undefined;
146
147
  theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
147
148
  }, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
@@ -166,10 +167,11 @@ export declare const confirm: (this: void, config: {
166
167
  postfix?: string;
167
168
  waitForUserInput?: boolean;
168
169
  validate?: (value: string) => boolean | string | Promise<string | boolean>;
169
- file?: import("@inquirer/external-editor").IFileOptions;
170
+ file?: import("@inquirer/external-editor").FileOptions;
170
171
  theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
171
172
  validationFailureMode: "keep" | "clear";
172
173
  style: {
174
+ loadingMessage: () => string;
173
175
  waitingMessage: (enterKey: string) => string;
174
176
  };
175
177
  }>>;
@@ -22,6 +22,7 @@ const ptLocale = {
22
22
  helpSelect: 'selecionar',
23
23
  },
24
24
  editor: {
25
+ loadingMessage: () => 'Validando...',
25
26
  waitingMessage: (enterKey) => `Pressione ${enterKey} para abrir seu editor preferido.`,
26
27
  },
27
28
  password: {
@@ -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 (string | import("@inquirer/prompts").Separator)[] | readonly (import("@inquirer/prompts").Separator | {
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 (string | import("@inquirer/prompts").Separator)[] | Promise<readonly (string | import("@inquirer/prompts").Separator)[]> | readonly (import("@inquirer/prompts").Separator | {
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,18 +130,19 @@ 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 {
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
- name: string;
136
- }[] | readonly (import("@inquirer/prompts").Separator | ({
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";
133
+ choices: readonly (import("@inquirer/prompts").Separator | {
134
+ key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
135
+ name: Value & string;
136
+ value?: never;
137
+ } | ({
138
+ key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
138
139
  value: Value;
139
140
  } | {
140
- 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";
141
+ key: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
141
142
  name: string;
142
143
  value: Value;
143
144
  }))[];
144
- 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;
145
+ default?: (("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "k" | "p" | "j" | "n" | "f" | "s" | "i" | "a" | "b" | "c" | "d" | "e" | "g" | "l" | "m" | "o" | "q" | "r" | "t" | "u" | "v" | "w" | "x" | "y" | "z") | "h") | undefined;
145
146
  expanded?: boolean | undefined;
146
147
  theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme> | undefined;
147
148
  }, context?: import("@inquirer/type").Context | undefined) => Promise<Value>, rawlist: <Value>(this: void, config: {
@@ -166,10 +167,11 @@ export declare const confirm: (this: void, config: {
166
167
  postfix?: string;
167
168
  waitForUserInput?: boolean;
168
169
  validate?: (value: string) => boolean | string | Promise<string | boolean>;
169
- file?: import("@inquirer/external-editor").IFileOptions;
170
+ file?: import("@inquirer/external-editor").FileOptions;
170
171
  theme?: import("@inquirer/type").PartialDeep<import("@inquirer/core").Theme<{
171
172
  validationFailureMode: "keep" | "clear";
172
173
  style: {
174
+ loadingMessage: () => string;
173
175
  waitingMessage: (enterKey: string) => string;
174
176
  };
175
177
  }>>;
@@ -22,6 +22,7 @@ const zhLocale = {
22
22
  helpSelect: '选择',
23
23
  },
24
24
  editor: {
25
+ loadingMessage: () => '验证中...',
25
26
  waitingMessage: (enterKey) => `按 ${enterKey} 键启动您的首选编辑器。`,
26
27
  },
27
28
  password: {
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.2",
3
+ "version": "1.0.4",
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.7",
101
- "@inquirer/prompts": "^8.3.2"
100
+ "@inquirer/core": "^11.1.8",
101
+ "@inquirer/prompts": "^8.4.1"
102
102
  },
103
103
  "devDependencies": {
104
- "typescript": "^5.9.3"
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": "b218fcc4afe888a58957aa78c9a032f9bd2d60cb"
119
+ "gitHead": "979b130330e8c6f4d51f5b9915c8beae26c7e2df"
120
120
  }