Skip to content

Commit f8785a8

Browse files
committed
feat(i18n): add localized prompts for vuetify version selection
Add i18n support for Vuetify version selection prompt in both English and Russian locales. Update prompts.ts to use localized strings instead of hardcoded values.
1 parent 942b035 commit f8785a8

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

packages/shared/src/i18n/locales/en.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@
9999
"vuetify0": "Vuetify0 (alpha)",
100100
"nuxt": "Nuxt"
101101
},
102+
"type": {
103+
"select": "Which version of Vuetify?",
104+
"vuetify": {
105+
"label": "Vuetify",
106+
"hint": "Standard Material Design Component Framework"
107+
},
108+
"vuetify0": {
109+
"label": "Vuetify 0 (alpha)",
110+
"hint": "Headless Component Library"
111+
}
112+
},
102113
"css_framework": {
103114
"select": "Which CSS framework?",
104115
"unocss": {

packages/shared/src/i18n/locales/ru.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,17 @@
9494
"vuetify0": "Vuetify0 (alpha)",
9595
"nuxt": "Nuxt"
9696
},
97+
"type": {
98+
"select": "Какую версию Vuetify использовать?",
99+
"vuetify": {
100+
"label": "Vuetify",
101+
"hint": "Стандартная библиотека компонентов Material Design"
102+
},
103+
"vuetify0": {
104+
"label": "Vuetify 0 (альфа)",
105+
"hint": "Библиотека headless компонентов"
106+
}
107+
},
97108
"css_framework": {
98109
"select": "Какой фреймворк CSS вы хотите использовать?",
99110
"none": "Никакой",

packages/shared/src/prompts.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ export async function prompt (args: Partial<ProjectOptions>, cwd = process.cwd()
9090
return Promise.resolve('vuetify')
9191
}
9292
return select({
93-
message: 'Which version of Vuetify?',
93+
message: i18n.t('prompts.type.select'),
9494
initialValue: 'vuetify',
9595
options: [
96-
{ label: 'Vuetify', value: 'vuetify', hint: 'Standard Material Design Component Framework' },
97-
{ label: 'Vuetify 0 (alpha)', value: 'vuetify0', hint: 'Headless Component Library' },
96+
{ label: i18n.t('prompts.type.vuetify.label'), value: 'vuetify', hint: i18n.t('prompts.type.vuetify.hint') },
97+
{ label: i18n.t('prompts.type.vuetify0.label'), value: 'vuetify0', hint: i18n.t('prompts.type.vuetify0.hint') },
9898
],
9999
})
100100
},

0 commit comments

Comments
 (0)