+
@@ -103,7 +112,7 @@ function save() {
:aria-checked="isAdded(name)"
@click="isAdded(name) ? remove(name) : append(name)"
>
-
+
{{ label ? $t(label) : 'More menu' }}
diff --git a/composables/settings/definition.ts b/composables/settings/definition.ts
index 98f3c3371f..3b0a5dd256 100644
--- a/composables/settings/definition.ts
+++ b/composables/settings/definition.ts
@@ -32,6 +32,7 @@ export interface PreferencesSettings {
experimentalGitHubCards: boolean
experimentalUserPicker: boolean
experimentalEmbeddedMedia: boolean
+ hideBottomNavLabel: boolean
}
export interface UserSettings {
@@ -88,6 +89,7 @@ export const DEFAULT__PREFERENCES_SETTINGS: PreferencesSettings = {
experimentalGitHubCards: true,
experimentalUserPicker: true,
experimentalEmbeddedMedia: false,
+ hideBottomNavLabel: false,
}
export function getDefaultUserSettings(locales: string[]): UserSettings {
diff --git a/composables/settings/storage.ts b/composables/settings/storage.ts
index 0d2a92d972..14f2796745 100644
--- a/composables/settings/storage.ts
+++ b/composables/settings/storage.ts
@@ -43,3 +43,8 @@ export function togglePreferences(key: keyof PreferencesSettings) {
const flag = usePreferences(key)
flag.value = !flag.value
}
+
+export function useHideBottomNavigationLabel() {
+ const userSettings = useUserSettings()
+ return computed(() => getPreferences(userSettings.value, 'hideBottomNavLabel'))
+}
diff --git a/locales/en.json b/locales/en.json
index 20520aa09d..733ac5bb28 100644
--- a/locales/en.json
+++ b/locales/en.json
@@ -455,6 +455,7 @@
},
"interface": {
"bottom_nav": "Bottom Navigation",
+ "bottom_nav_hide_label": "Hide bottom labels",
"bottom_nav_instructions": "Choose your favorite navigation buttons up to five for the bottom navigation. Must include the \"More menu\" button.",
"color_mode": "Color Mode",
"dark_mode": "Dark",
diff --git a/locales/es.json b/locales/es.json
index 23f700f1ab..7b40710c57 100644
--- a/locales/es.json
+++ b/locales/es.json
@@ -455,6 +455,7 @@
},
"interface": {
"bottom_nav": "Navegación inferior",
+ "bottom_nav_hide_label": "Ocultar etiquetas de navegación",
"bottom_nav_instructions": "Elige tus botones de navegación favoritos, hasta cinco para la navegación inferior. Debes incluir el botón \"Más opciones\".",
"color_mode": "Modos de color",
"dark_mode": "Modo oscuro",