Skip to content

feat!: use a giant multiselect instead of individual toggles for features #695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 7, 2025
Merged
Prev Previous commit
i18n: add translations for the "should not be empty" message
  • Loading branch information
haoqunjiang committed Mar 5, 2025
commit 1bc81069f0635a90fc822c9664aecc33c4504dd8
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ async function init() {
text({
message: language.projectName.message,
placeholder: defaultProjectName,
validate: (value) => (value.trim().length > 0 ? undefined : 'Should not be empty'),
validate: (value) =>
value.trim().length > 0 ? undefined : language.projectName.invalidMessage,
}),
)
}
Expand Down
3 changes: 2 additions & 1 deletion locales/en-US.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"projectName": {
"message": "Project name (target directory):"
"message": "Project name (target directory):",
"invalidMessage": "Should not be empty"
},
"shouldOverwrite": {
"dirForPrompts": {
Expand Down
3 changes: 2 additions & 1 deletion locales/fr-FR.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"projectName": {
"message": "Nom du projet\u00a0:"
"message": "Nom du projet\u00a0:",
"invalidMessage": "Ne doit pas être vide"
},
"shouldOverwrite": {
"dirForPrompts": {
Expand Down
3 changes: 2 additions & 1 deletion locales/tr-TR.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"projectName": {
"message": "Proje adı:"
"message": "Proje adı:",
"invalidMessage": "Boş bırakılamaz"
},
"shouldOverwrite": {
"dirForPrompts": {
Expand Down
3 changes: 2 additions & 1 deletion locales/zh-Hans.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"projectName": {
"message": "请输入项目名称:"
"message": "请输入项目名称:",
"invalidMessage": "不能为空"
},
"shouldOverwrite": {
"dirForPrompts": {
Expand Down
3 changes: 2 additions & 1 deletion locales/zh-Hant.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"projectName": {
"message": "請輸入專案名稱:"
"message": "請輸入專案名稱:",
"invalidMessage": "不能為空"
},
"shouldOverwrite": {
"dirForPrompts": {
Expand Down