]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
feat: add hint message translation (#372)
authorbtea <2356281422@qq.com>
Fri, 10 Nov 2023 13:13:19 +0000 (21:13 +0800)
committerGitHub <noreply@github.com>
Fri, 10 Nov 2023 13:13:19 +0000 (14:13 +0100)
index.ts
locales/en-US.json
locales/fr-FR.json
locales/zh-CN.json
utils/getLanguage.ts

index 6856e46195c6fbe503f99beea86aec1c5445e956..38b9598f25b6481d918da914c539832e2cc78c18 100755 (executable)
--- 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) => [
index 70be741a5c0aa38153e0725c6d4e8b5e1d2de72a..6fcfbeb6663004d4ecea4548828248be406ed7d0 100644 (file)
@@ -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": {
index f3162e51d0b46541289391b3f57dded00baf7a1d..96d6be94e5982d10802890529798571647ceca42 100644 (file)
@@ -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": {
index 69d8b7b0ac0322aab8a279853cf9f502248b87ab..1cbf85ac76010aa053933bd30bf0ea6e13287446 100644 (file)
@@ -30,6 +30,7 @@
   },
   "needsE2eTesting": {
     "message": "是否要引入一款端到端(End to End)测试工具?",
+    "hint": "- 使用箭头切换按Enter确认。",
     "selectOptions": {
       "negative": { "title": "不需要" },
       "cypress": {
index 325cb5744836f82d79995c86dc1ded07c3e41ac4..31e85830e24eb175bf651971d12dc02eae89ddb6 100644 (file)
@@ -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?: {