From 05272cbbb22a63acb9b95a0402638925fc85a24b Mon Sep 17 00:00:00 2001 From: carlosjr Date: Wed, 20 Apr 2022 16:23:03 +0200 Subject: [PATCH] feat(language): selected language is now saved in account.user.lang and persists in navigation --- src/components/Navbar.vue | 24 ++++++++++++++++++++---- src/components/UserPanel.vue | 36 +++++++++++++++++++++++++++++------- src/i18n/en/index.js | 6 ++++++ src/i18n/es/index.js | 6 ++++++ 4 files changed, 61 insertions(+), 11 deletions(-) diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 778fda213..53bf6ca14 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -1,8 +1,10 @@ + + diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 5f2ad232d..a80db2882 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -4,6 +4,12 @@ export default { es: 'Spanish', en: 'English', }, + collapseMenu: 'Collapse left menu', + backToDashboard: 'Return to dashboard', + notifications: 'Notifications', + userPanel: 'User panel', + theme: 'Theme', + logOut: 'Log out', }, errors: { statusUnauthorized: 'Access denied', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 79bd9f448..14353a5a6 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -4,6 +4,12 @@ export default { es: 'Español', en: 'Inglés', }, + collapseMenu: 'Contraer menú lateral', + backToDashboard: 'Volver al tablón', + notifications: 'Notificaciones', + userPanel: 'Panel de usuario', + theme: 'Tema', + logOut: 'Cerrar sesión', }, errors: { statusUnauthorized: 'Acceso denegado',