From 02046c864bc9b88971696859c24fbd68017d715e Mon Sep 17 00:00:00 2001 From: Mackenzie Morgan Date: Tue, 4 Feb 2025 22:42:02 -0500 Subject: [PATCH] Make appearance settings translateable --- .../assets/components/partials/navbar.vue | 26 +++++++++---------- resources/lang/en/web.php | 17 ++++++++++++ resources/lang/es/web.php | 17 ++++++++++++ 3 files changed, 47 insertions(+), 13 deletions(-) diff --git a/resources/assets/components/partials/navbar.vue b/resources/assets/components/partials/navbar.vue index 21f59e0ec..e14630977 100644 --- a/resources/assets/components/partials/navbar.vue +++ b/resources/assets/components/partials/navbar.vue @@ -270,7 +270,7 @@ @@ -337,12 +337,12 @@ hide-footer centered body-class="p-0 ui-menu" - title="UI Settings"> + title="{{ $t('navmenu.appearance') }}">
-

Theme

+

{{ $t('appearance.theme') }}

@@ -351,19 +351,19 @@ class="btn" :class="[ uiColorScheme == 'system' ? 'btn-primary' : 'btn-outline-primary']" @click="toggleUi('system')"> - Auto + {{ $t('appearance.auto') }}
@@ -372,7 +372,7 @@
-

Profile Layout

+

{{ $t('appearance.profileLayout') }}

@@ -381,19 +381,19 @@ class="btn" :class="[ profileLayout == 'grid' ? 'btn-primary' : 'btn-outline-primary']" @click="toggleProfileLayout('grid')"> - Grid + {{ $t('appearance.grid') }}
@@ -402,7 +402,7 @@
-

Compact Media Previews

+

{{ $t('appearance.compactPreviews') }}

@@ -411,7 +411,7 @@
-

Load Comments

+

{{ $t('appearance.loadComments') }}

@@ -420,7 +420,7 @@
-

Hide Counts & Stats

+

{{ $t('appearance.hideStats') }}

diff --git a/resources/lang/en/web.php b/resources/lang/en/web.php index 2c6a7b418..3acde415b 100644 --- a/resources/lang/en/web.php +++ b/resources/lang/en/web.php @@ -59,6 +59,7 @@ return [ 'profile' => 'Profile', 'drive' => 'Drive', 'settings' => 'Settings', + 'appearance' => 'Appearance', 'compose' => 'Create New', 'logout' => 'Logout', @@ -205,4 +206,20 @@ return [ 'contactAdminMsg' => 'If you\'d like to contact an administrator about this post or report', ], + 'appearance' => [ + 'theme' => 'Theme', + 'profileLayout' => 'Profile Layout', + 'compactPreviews' => 'Compact Media Previews', + 'loadComments' => 'Load Comments', + 'hideStats' => 'Hide Counts & Stats', + + 'auto' => 'Auto', + 'lightMode' => 'Light mode', + 'darkMode' => 'Dark mode', + + 'grid' => 'Grid', + 'masonry' => 'Masonry', + 'feed' => 'Feed', + ], + ]; diff --git a/resources/lang/es/web.php b/resources/lang/es/web.php index ed3a180e2..0a4b9309f 100644 --- a/resources/lang/es/web.php +++ b/resources/lang/es/web.php @@ -59,6 +59,7 @@ return [ 'profile' => 'Perfil', 'drive' => 'Multimedia', 'settings' => 'Ajustes', + 'appearance' => 'Aspecto', 'compose' => 'Crear Nuevo', 'logout' => 'Cerrar sesión', @@ -205,4 +206,20 @@ return [ 'contactAdminMsg' => 'Si quieres contactar un administrador sobre esta publicación o reporte', ], + 'appearance' => [ + 'theme' => 'Tema', + 'profileLayout' => 'Arreglo de Perfil', + 'compactPreviews' => 'Previstas Compactas de Medios', + 'loadComments' => 'Cargar Comentarios', + 'hideStats' => 'Ocultar Cuentas y Estadísticas', + + 'auto' => 'Automático', + 'lightMode' => 'Modo claro', + 'darkMode' => 'Modo oscuro', + + 'grid' => 'Cuadrícula', + 'masonry' => 'Mampostería', + 'feed' => 'Feed', + ], + ];