You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for customizable spinner cancel and error messages. Users can now customize these messages either per spinner instance or globally via the `updateSettings` function to support multilingual CLIs.
7
+
8
+
This update also improves the architecture by exposing the core settings to the prompts package, enabling more consistent default message handling across the codebase.
9
+
10
+
```ts
11
+
// Per-instance customization
12
+
const spinner =prompts.spinner({
13
+
cancelMessage: 'Operación cancelada', // "Operation cancelled" in Spanish
14
+
errorMessage: 'Se produjo un error'// "An error occurred" in Spanish
15
+
});
16
+
17
+
// Global customization via updateSettings
18
+
prompts.updateSettings({
19
+
messages: {
20
+
cancel: 'Operación cancelada', // "Operation cancelled" in Spanish
21
+
error: 'Se produjo un error'// "An error occurred" in Spanish
0 commit comments