1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-06 00:49:58 +00:00

i10n: localize font sizes in settings (#775)

This commit is contained in:
Ryan Cao 2023-01-04 23:22:56 +08:00 committed by GitHub
parent 8840205c98
commit 2f88bf6824
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -9,7 +9,7 @@ const fontSize = useFontSizeRef()
<template> <template>
<select v-model="fontSize"> <select v-model="fontSize">
<option v-for="size in sizes" :key="size" :value="size" :selected="fontSize === size"> <option v-for="size in sizes" :key="size" :value="size" :selected="fontSize === size">
{{ `${size}${size === DEFAULT_FONT_SIZE ? $t('settings.interface.default') : ''}` }} {{ `${$t(`settings.interface.size_label.${size}`)}${size === DEFAULT_FONT_SIZE ? $t('settings.interface.default') : ''}` }}
</option> </option>
</select> </select>
</template> </template>

View file

@ -248,7 +248,14 @@
"default": " (default)", "default": " (default)",
"font_size": "Font Size", "font_size": "Font Size",
"label": "Interface", "label": "Interface",
"light_mode": "Light Mode" "light_mode": "Light Mode",
"size_label": {
"lg": "Large",
"md": "Medium",
"sm": "Small",
"xl": "Extra large",
"xs": "Extra small"
}
}, },
"language": { "language": {
"display_language": "Display Language", "display_language": "Display Language",