Skip to content
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

V0.3 #15

Merged
merged 9 commits into from
Aug 7, 2023
Prev Previous commit
Next Next commit
refactor(en.json): remove redundant preset names
refactor(App.vue): remove unnecessary translation for preset names
  • Loading branch information
lyqht committed Aug 7, 2023
commit 3b620a7581030835db4cbef7db08a05591abdb03
9 changes: 1 addition & 8 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,7 @@
"Corners Dot color": "Corners Dot color",
"Corners Dot type": "Corners Dot type",
"QR code preset": "QR code preset",
"Default Preset": "Default Preset",
"Padlet Preset": "Padlet Preset",
"Supabase Preset": "Supabase Preset",
"Vercel Light Preset": "Vercel Light Preset",
"Vercel Dark Preset": "Vercel Dark Preset",
"Basic Red Preset": "Basic Red Preset",
"Basic Green Preset": "Basic Green Preset",
"Basic Blue Preset": "Basic Blue Preset",
"Preset": "Preset",
"dots": "dots",
"rounded": "rounded",
"classy": "classy",
Expand Down
5 changes: 3 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import { computed, ref, watch } from 'vue'
import 'vue-i18n'
import { getNumericCSSValue } from './utils/formatting'
import { sortedLocales } from './utils/language'
import { defaultPreset, allPresets } from './utils/presets'
import { allPresets } from './utils/presets'

const defaultPreset = allPresets[0]
const data = ref(defaultPreset.data)
const image = ref(defaultPreset.image)
const width = ref(defaultPreset.width)
Expand Down Expand Up @@ -425,7 +426,7 @@ function uploadImage() {
v-model="selectedPreset"
>
<option v-for="(preset, index) in allPresets" :key="index" :value="preset">
{{ $t(preset.name) }}
{{ preset.name }}
</option>
</select>
<button
Expand Down