Skip to content

Commit 57fef55

Browse files
authored
feat: add hint message translation (vuejs#372)
1 parent 8106cd7 commit 57fef55

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ async function init() {
229229
{
230230
name: 'needsE2eTesting',
231231
type: () => (isFeatureFlagsUsed ? null : 'select'),
232+
hint: language.needsE2eTesting.hint,
232233
message: language.needsE2eTesting.message,
233234
initial: 0,
234235
choices: (prev, answers) => [

locales/en-US.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"needsE2eTesting": {
3232
"message": "Add an End-to-End Testing Solution?",
33+
"hint": "- Use arrow-keys. Return to submit.",
3334
"selectOptions": {
3435
"negative": { "title": "No" },
3536
"cypress": {

locales/fr-FR.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"needsE2eTesting": {
3232
"message": "Ajouter une solution de test de bout en bout (e2e)\u00a0?",
33+
"hint": "- Utilisez les flèches et appuyez sur la touche Entrée pour valider",
3334
"selectOptions": {
3435
"negative": { "title": "Non" },
3536
"cypress": {

locales/zh-CN.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"needsE2eTesting": {
3232
"message": "是否要引入一款端到端(End to End)测试工具?",
33+
"hint": "- 使用箭头切换按Enter确认。",
3334
"selectOptions": {
3435
"negative": { "title": "不需要" },
3536
"cypress": {

utils/getLanguage.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as fs from 'node:fs'
22
import * as path from 'node:path'
33

44
interface LanguageItem {
5+
hint?: string
56
message: string
67
invalidMessage?: string
78
dirForPrompts?: {

0 commit comments

Comments
 (0)