localization for prompt.Confirm.ask() or override choices attribute #2724
Unanswered
RenaudBompuis
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
prompt.Confirm.ask()
only seems to allow aY/N
response (unless I'm missing something).Automatic localization may not be worth the trouble but it would be useful to be able to override the default by exposing the
choices
member as a parameter so it can be overridden.For instance:
Results in:
When what I would need is:
and get:
Localization in general would be nice, maybe regrouping all error messages and prompts, etc under a single file per language so the appropriate strings can be loaded based on the locale or set to a specific one in code.
Anyway, awesome project!
Beta Was this translation helpful? Give feedback.
All reactions