feat: i18n for choice prompt via promptKey, with fallback
This commit is contained in:
@@ -77,7 +77,7 @@ function handleChoose(index: number) {
|
||||
if (!choiceEnabled.value) return
|
||||
const choice = props.choices[index]
|
||||
if (choice?.prompt) {
|
||||
emit('prompt', choice.prompt)
|
||||
emit('prompt', t(choice.promptKey || choice.prompt))
|
||||
}
|
||||
emit('choose', index)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user