diff --git a/index.ts b/index.ts index 6856e461..38b9598f 100755 --- a/index.ts +++ b/index.ts @@ -229,6 +229,7 @@ async function init() { { name: 'needsE2eTesting', type: () => (isFeatureFlagsUsed ? null : 'select'), + hint: language.needsE2eTesting.hint, message: language.needsE2eTesting.message, initial: 0, choices: (prev, answers) => [ diff --git a/locales/en-US.json b/locales/en-US.json index 70be741a..6fcfbeb6 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -30,6 +30,7 @@ }, "needsE2eTesting": { "message": "Add an End-to-End Testing Solution?", + "hint": "- Use arrow-keys. Return to submit.", "selectOptions": { "negative": { "title": "No" }, "cypress": { diff --git a/locales/fr-FR.json b/locales/fr-FR.json index f3162e51..96d6be94 100644 --- a/locales/fr-FR.json +++ b/locales/fr-FR.json @@ -30,6 +30,7 @@ }, "needsE2eTesting": { "message": "Ajouter une solution de test de bout en bout (e2e)\u00a0?", + "hint": "- Utilisez les flèches et appuyez sur la touche Entrée pour valider", "selectOptions": { "negative": { "title": "Non" }, "cypress": { diff --git a/locales/zh-CN.json b/locales/zh-CN.json index 69d8b7b0..1cbf85ac 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -30,6 +30,7 @@ }, "needsE2eTesting": { "message": "是否要引入一款端到端(End to End)测试工具?", + "hint": "- 使用箭头切换按Enter确认。", "selectOptions": { "negative": { "title": "不需要" }, "cypress": { diff --git a/utils/getLanguage.ts b/utils/getLanguage.ts index 325cb574..31e85830 100644 --- a/utils/getLanguage.ts +++ b/utils/getLanguage.ts @@ -2,6 +2,7 @@ import * as fs from 'node:fs' import * as path from 'node:path' interface LanguageItem { + hint?: string message: string invalidMessage?: string dirForPrompts?: {