@juicesharp/rpiv-ask-user-question 1.1.0 → 1.1.1
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 +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,6 +42,16 @@ pi install npm:@juicesharp/rpiv-ask-user-question
|
|
|
42
42
|
|
|
43
43
|
Then restart your Pi session.
|
|
44
44
|
|
|
45
|
+
### Optional: language picker + `--locale` flag
|
|
46
|
+
|
|
47
|
+
The dialog auto-detects your UI locale from `LANG` / `LC_ALL` and falls back to English; with that alone, a user whose shell is set to e.g. `pt_BR.UTF-8` already sees Portuguese without any extra step. To **change locale interactively** (`/languages` slash command) or **pin one at startup** (`pi --locale uk`), also install the SDK that owns those surfaces:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
pi install npm:@juicesharp/rpiv-i18n
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Without it, locale detection still works via `~/.config/rpiv-i18n/locale.json` (hand-edit `{"locale":"uk"}` and restart) and your shell environment — only the picker and flag are missing. Users who installed via `pi install npm:@juicesharp/rpiv-pi` + `/rpiv-setup` get the SDK automatically.
|
|
54
|
+
|
|
45
55
|
## Tool
|
|
46
56
|
|
|
47
57
|
- **`ask_user_question`** — present one or more structured questions, each with 2+ options, optional `multiSelect`, optional per-option `preview`, and an optional free-text "Other" fallback. Returns the user's selection(s) plus any notes. See the tool's `promptGuidelines` for usage policy.
|
package/package.json
CHANGED