i10n: localize font sizes in settings (#775)

pull/796/head
Ryan Cao 2023-01-04 23:22:56 +08:00 zatwierdzone przez GitHub
rodzic 8840205c98
commit 2f88bf6824
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -9,7 +9,7 @@ const fontSize = useFontSizeRef()
<template>
<select v-model="fontSize">
<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>
</select>
</template>

Wyświetl plik

@ -248,7 +248,14 @@
"default": " (default)",
"font_size": "Font Size",
"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": {
"display_language": "Display Language",