Skip to content

Commit b333568

Browse files
committed
docs: update all the locales with the new prompts
1 parent a142f80 commit b333568

File tree

7 files changed

+121
-111
lines changed

7 files changed

+121
-111
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ async function init() {
699699
outroMessage += ` ${bold(green(getCommand(packageManager, 'dev')))}\n`
700700

701701
outroMessage += `
702-
${dim('|')} Optional: Initialize Git in your project directory with:
702+
${dim('|')} ${language.infos.optionalGitCommand}
703703

704704
${bold(green('git init && git add -A && git commit -m "initial commit"'))}`
705705

locales/en-US.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
},
7171
"infos": {
7272
"scaffolding": "Scaffolding project in",
73-
"done": "Done. Now run:"
73+
"done": "Done. Now run:",
74+
"optionalGitCommand": "Optional: Initialize Git in your project directory with:"
7475
}
7576
}

locales/fr-FR.json

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,51 +13,53 @@
1313
"message": "Nom du package\u00a0:",
1414
"invalidMessage": "Le nom du package.json est invalide"
1515
},
16+
"featureSelection": {
17+
"message": "Sélectionnez les fonctionnalités à inclure dans votre projet\u00a0:",
18+
"hint": "(↑/↓ pour naviguer, espace pour sélectionner, a pour tout basculer, entrée pour confirmer)"
19+
},
1620
"needsTypeScript": {
17-
"message": "Ajouter TypeScript\u00a0?"
21+
"message": "TypeScript"
1822
},
1923
"needsJsx": {
20-
"message": "Ajouter le support de JSX\u00a0?"
24+
"message": "Support de JSX"
2125
},
2226
"needsRouter": {
23-
"message": "Ajouter Vue Router pour le développement d'applications _single page_\u00a0?"
27+
"message": "Router (développement SPA)"
2428
},
2529
"needsPinia": {
26-
"message": "Ajouter Pinia pour la gestion de l'état\u00a0?"
30+
"message": "Pinia (gestion de l'état)"
2731
},
2832
"needsVitest": {
29-
"message": "Ajouter Vitest pour les tests unitaires\u00a0?"
33+
"message": "Vitest (tests unitaires)"
3034
},
3135
"needsE2eTesting": {
32-
"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",
36+
"message": "Tests de bout en bout"
37+
},
38+
"needsEslint": {
39+
"message": "ESLint (prévention des erreurs)"
40+
},
41+
"needsPrettier": {
42+
"message": "Prettier (formatage du code)"
43+
},
44+
"e2eSelection": {
45+
"message": "Sélectionnez un framework de test de bout en bout\u00a0:",
46+
"hint": "(↑/↓ pour naviguer, entrée pour confirmer)",
3447
"selectOptions": {
35-
"negative": { "title": "Non" },
48+
"playwright": { "title": "Playwright", "desc": "https://playwright.dev/" },
3649
"cypress": {
3750
"title": "Cypress",
38-
"desc": "prend également en charge les tests unitaires avec Cypress Component Testing"
51+
"desc": "https://www.cypress.io/",
52+
"hintOnComponentTesting": "prend également en charge les tests unitaires avec Cypress Component Testing - https://www.cypress.io/"
3953
},
4054
"nightwatch": {
4155
"title": "Nightwatch",
42-
"desc": "prend également en charge les tests unitaires avec Nightwatch Component Testing"
43-
},
44-
"playwright": { "title": "Playwright" }
45-
}
46-
},
47-
"needsEslint": {
48-
"message": "Ajouter ESLint pour la qualité du code\u00a0?",
49-
"selectOptions": {
50-
"negative": { "title": "Non" },
51-
"eslintOnly": {
52-
"title": "Oui"
53-
},
54-
"speedUpWithOxlint": {
55-
"title": "Oui, et accélérer avec Oxlint (expérimental)"
56+
"desc": "https://nightwatchjs.org/",
57+
"hintOnComponentTesting": "prend également en charge les tests unitaires avec Nightwatch Component Testing - https://nightwatchjs.org/"
5658
}
5759
}
5860
},
59-
"needsPrettier": {
60-
"message": "Ajouter Prettier pour le formatage du code\u00a0?"
61+
"needsOxlint": {
62+
"message": "Installer Oxlint pour un linting plus rapide\u00a0? (expérimental)"
6163
},
6264
"errors": {
6365
"operationCancelled": "Operation annulée"
@@ -68,6 +70,7 @@
6870
},
6971
"infos": {
7072
"scaffolding": "Génération du projet dans",
71-
"done": "Terminé. Exécutez maintenant\u00a0:"
73+
"done": "Terminé. Exécutez maintenant\u00a0:",
74+
"optionalGitCommand": "Optionnel\u00a0: Initialisez Git dans votre répertoire de projet avec\u00a0:"
7275
}
7376
}

locales/tr-TR.json

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,51 +13,53 @@
1313
"message": "Paket adı:",
1414
"invalidMessage": "Geçersiz package.json adı"
1515
},
16+
"featureSelection": {
17+
"message": "Projenize eklenecek özellikleri seçin:",
18+
"hint": "(↑/↓ gezinmek için, boşluk seçmek için, a tümünü seçmek için, enter onaylamak için)"
19+
},
1620
"needsTypeScript": {
17-
"message": "TypeScript Eklensin mi?"
21+
"message": "TypeScript"
1822
},
1923
"needsJsx": {
20-
"message": "JSX Desteği Eklensin mi?"
24+
"message": "JSX Desteği"
2125
},
2226
"needsRouter": {
23-
"message": "Tek Sayfa Uygulama geliştirilmesi için Vue Router eklensin mi?"
27+
"message": "Router (SPA geliştirme)"
2428
},
2529
"needsPinia": {
26-
"message": "Durum yönetimi için Pinia eklensin mi?"
30+
"message": "Pinia (durum yönetimi)"
2731
},
2832
"needsVitest": {
29-
"message": "Birim Testi için Vitest eklensin mi?"
33+
"message": "Vitest (birim testi)"
3034
},
3135
"needsE2eTesting": {
32-
"message": "Uçtan Uca Test Çözümü Eklensin mi?",
33-
"hint": "- Ok tuşlarını kullan. Gönderime geri dön.",
36+
"message": "Uçtan Uca Test"
37+
},
38+
"needsEslint": {
39+
"message": "ESLint (hata önleme)"
40+
},
41+
"needsPrettier": {
42+
"message": "Prettier (kod formatlama)"
43+
},
44+
"e2eSelection": {
45+
"message": "Bir Uçtan Uca test çerçevesi seçin:",
46+
"hint": "(↑/↓ gezinmek için, enter onaylamak için)",
3447
"selectOptions": {
35-
"negative": { "title": "Hayır" },
48+
"playwright": { "title": "Playwright", "desc": "https://playwright.dev/" },
3649
"cypress": {
3750
"title": "Cypress",
38-
"desc": "ayrıca Cypress Bileşen Testi ile birim testini de destekler"
51+
"desc": "https://www.cypress.io/",
52+
"hintOnComponentTesting": "ayrıca Cypress Bileşen Testi ile birim testini de destekler - https://www.cypress.io/"
3953
},
4054
"nightwatch": {
4155
"title": "Nightwatch",
42-
"desc": "ayrıca Nightwatch Bileşen Testi ile birim testini de destekler"
43-
},
44-
"playwright": { "title": "Playwright" }
45-
}
46-
},
47-
"needsEslint": {
48-
"message": "Kod kalitesi için ESLint eklensin mi?",
49-
"selectOptions": {
50-
"negative": { "title": "Hayır" },
51-
"eslintOnly": {
52-
"title": "Evet"
53-
},
54-
"speedUpWithOxlint": {
55-
"title": "Evet ve Oxlint ile hızlanın (deneysel)"
56+
"desc": "https://nightwatchjs.org/",
57+
"hintOnComponentTesting": "ayrıca Nightwatch Bileşen Testi ile birim testini de destekler - https://nightwatchjs.org/"
5658
}
5759
}
5860
},
59-
"needsPrettier": {
60-
"message": "Kod formatlama için Prettier eklensin mi?"
61+
"needsOxlint": {
62+
"message": "Daha hızlı linting için Oxlint eklensin mi? (deneysel)"
6163
},
6264
"errors": {
6365
"operationCancelled": "İşlem iptal edildi"
@@ -68,6 +70,7 @@
6870
},
6971
"infos": {
7072
"scaffolding": "İskele projesi",
71-
"done": "Tamamlandı. Şimdi bunu çalıştır:"
73+
"done": "Tamamlandı. Şimdi bunu çalıştır:",
74+
"optionalGitCommand": "İsteğe bağlı: Proje dizininizde Git'i şununla başlatın:"
7275
}
7376
}

locales/zh-Hans.json

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,51 +13,53 @@
1313
"message": "请输入包名称:",
1414
"invalidMessage": "无效的 package.json 名称"
1515
},
16+
"featureSelection": {
17+
"message": "请选择要包含的功能:",
18+
"hint": "(↑/↓ 切换,空格选择,a 全选,回车确认)"
19+
},
1620
"needsTypeScript": {
17-
"message": "是否使用 TypeScript 语法?"
21+
"message": "TypeScript"
1822
},
1923
"needsJsx": {
20-
"message": "是否启用 JSX 支持"
24+
"message": "JSX 支持"
2125
},
2226
"needsRouter": {
23-
"message": "是否引入 Vue Router 进行单页面应用开发?"
27+
"message": "Router(单页面应用开发)"
2428
},
2529
"needsPinia": {
26-
"message": "是否引入 Pinia 用于状态管理?"
30+
"message": "Pinia(状态管理)"
2731
},
2832
"needsVitest": {
29-
"message": "是否引入 Vitest 用于单元测试?"
33+
"message": "Vitest(单元测试)"
3034
},
3135
"needsE2eTesting": {
32-
"message": "是否要引入一款端到端(End to End)测试工具?",
33-
"hint": "- 使用箭头切换按Enter确认。",
36+
"message": "端到端测试"
37+
},
38+
"needsEslint": {
39+
"message": "ESLint(错误预防)"
40+
},
41+
"needsPrettier": {
42+
"message": "Prettier(代码格式化)"
43+
},
44+
"e2eSelection": {
45+
"message": "选择一个端到端测试框架:",
46+
"hint": "(↑/↓ 切换,回车确认)",
3447
"selectOptions": {
35-
"negative": { "title": "不需要" },
48+
"playwright": { "title": "Playwright", "desc": "https://playwright.dev/" },
3649
"cypress": {
3750
"title": "Cypress",
38-
"desc": "同时支持基于 Cypress Component Testing 的单元测试"
51+
"desc": "https://www.cypress.io/",
52+
"hintOnComponentTesting": "同时支持基于 Cypress Component Testing 的单元测试 - https://www.cypress.io/"
3953
},
4054
"nightwatch": {
4155
"title": "Nightwatch",
42-
"desc": "同时支持基于 Nightwatch Component Testing 的单元测试"
43-
},
44-
"playwright": { "title": "Playwright" }
45-
}
46-
},
47-
"needsEslint": {
48-
"message": "是否引入 ESLint 用于代码质量检测?",
49-
"selectOptions": {
50-
"negative": { "title": "" },
51-
"eslintOnly": {
52-
"title": ""
53-
},
54-
"speedUpWithOxlint": {
55-
"title": "是,并同时引入 Oxlint 以加快检测(试验阶段)"
56+
"desc": "https://nightwatchjs.org/",
57+
"hintOnComponentTesting": "同时支持基于 Nightwatch Component Testing 的单元测试 - https://nightwatchjs.org/"
5658
}
5759
}
5860
},
59-
"needsPrettier": {
60-
"message": "是否引入 Prettier 用于代码格式化?"
61+
"needsOxlint": {
62+
"message": "是否引入 Oxlint 以加快检测?(试验阶段)"
6163
},
6264
"errors": {
6365
"operationCancelled": "操作取消"
@@ -68,6 +70,7 @@
6870
},
6971
"infos": {
7072
"scaffolding": "正在初始化项目",
71-
"done": "项目初始化完成,可执行以下命令:"
73+
"done": "项目初始化完成,可执行以下命令:",
74+
"optionalGitCommand": "可选:使用以下命令在项目目录中初始化 Git:"
7275
}
7376
}

locales/zh-Hant.json

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,63 +5,61 @@
55
"shouldOverwrite": {
66
"dirForPrompts": {
77
"current": "當前資料夾",
8-
"target": "目標資料夾"
8+
"target": "目標資料夾"
99
},
1010
"message": "非空,是否覆蓋?"
1111
},
1212
"packageName": {
1313
"message": "請輸入套件名稱:",
1414
"invalidMessage": "無效的 package.json 名稱"
1515
},
16+
"featureSelection": {
17+
"message": "請選擇要包含的功能:",
18+
"hint": "(↑/↓ 切換,空格選擇,a 全選,enter 確認)"
19+
},
1620
"needsTypeScript": {
17-
"message": "是否使用 TypeScript"
21+
"message": "TypeScript"
1822
},
1923
"needsJsx": {
20-
"message": "是否啟用 JSX 支援"
24+
"message": "JSX 支援"
2125
},
2226
"needsRouter": {
23-
"message": "是否引入 Vue Router 進行單頁應用程式開發?"
27+
"message": "Router(單頁應用程式開發)"
2428
},
2529
"needsPinia": {
26-
"message": "是否引入 Pinia 用於狀態管理?"
30+
"message": "Pinia(狀態管理)"
2731
},
2832
"needsVitest": {
29-
"message": "是否引入 Vitest 用於單元測試"
33+
"message": "Vitest(單元測試)"
3034
},
3135
"needsE2eTesting": {
32-
"message": "是否要引入一款端對端(End to End)測試工具?",
33-
"hint": "- 使用箭頭切換按 Enter 確認。",
36+
"message": "端對端測試"
37+
},
38+
"needsEslint": {
39+
"message": "ESLint(錯誤預防)"
40+
},
41+
"needsPrettier": {
42+
"message": "Prettier(程式碼格式化)"
43+
},
44+
"e2eSelection": {
45+
"message": "選擇一個端對端測試框架:",
46+
"hint": "(↑/↓ 切換,enter 確認)",
3447
"selectOptions": {
35-
"negative": {
36-
"title": "不需要"
37-
},
48+
"playwright": { "title": "Playwright", "desc": "https://playwright.dev/" },
3849
"cypress": {
3950
"title": "Cypress",
40-
"desc": "同時支援基於 Cypress Component Testing 的單元測試"
51+
"desc": "https://www.cypress.io/",
52+
"hintOnComponentTesting": "同時支援基於 Cypress Component Testing 的單元測試 - https://www.cypress.io/"
4153
},
4254
"nightwatch": {
4355
"title": "Nightwatch",
44-
"desc": "同時支援基於 Nightwatch Component Testing 的單元測試"
45-
},
46-
"playwright": {
47-
"title": "Playwright"
56+
"desc": "https://nightwatchjs.org/",
57+
"hintOnComponentTesting": "同時支援基於 Nightwatch Component Testing 的單元測試 - https://nightwatchjs.org/"
4858
}
4959
}
5060
},
51-
"needsEslint": {
52-
"message": "是否引入 ESLint 用於程式碼品質檢測?",
53-
"selectOptions": {
54-
"negative": { "title": "" },
55-
"eslintOnly": {
56-
"title": ""
57-
},
58-
"speedUpWithOxlint": {
59-
"title": "是,並同時引入 Oxlint 以加快檢測(試驗性功能)"
60-
}
61-
}
62-
},
63-
"needsPrettier": {
64-
"message": "是否引入 Prettier 用於程式碼格式化?"
61+
"needsOxlint": {
62+
"message": "是否引入 Oxlint 以加快檢測?(試驗性功能)"
6563
},
6664
"errors": {
6765
"operationCancelled": "操作取消"
@@ -72,6 +70,7 @@
7270
},
7371
"infos": {
7472
"scaffolding": "正在建置專案",
75-
"done": "專案建置完成,可執行以下命令:"
73+
"done": "專案建置完成,可執行以下命令:",
74+
"optionalGitCommand": "可選:使用以下命令在專案目錄中初始化 Git:"
7675
}
7776
}

utils/getLanguage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ interface Language {
4747
infos: {
4848
scaffolding: string
4949
done: string
50+
optionalGitCommand: string
5051
}
5152
}
5253

0 commit comments

Comments
 (0)