From 264a6c6dfcf5dcf5f9050bee985c592723f1428c Mon Sep 17 00:00:00 2001 From: Alexandro Uc Santos Date: Wed, 22 May 2024 20:42:42 -0600 Subject: [PATCH] add: transaltion sidebar & home & company --- src/components/Header.vue | 3 ++ src/components/NavBar.vue | 12 ++--- src/components/ProfilePopup.vue | 47 ++++++++++++++++++- src/components/Sidebar.vue | 33 +++++++------- src/i18n/i18n.js | 80 ++++++++++++++++++++++++++++++++- src/services/auth.js | 17 ++++--- src/stores/auth.js | 4 +- src/views/HomeView.vue | 24 +++++----- src/views/MyCompanyView.vue | 27 +++++------ 9 files changed, 190 insertions(+), 57 deletions(-) diff --git a/src/components/Header.vue b/src/components/Header.vue index 653036e..b8994c6 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -4,16 +4,19 @@ import CustomPopup from './CustomPopup.vue'; import { ref } from 'vue'; import { onMounted } from 'vue'; import { watch } from 'vue'; +// import { useAuthStore } from '../stores/auth'; const { t, locale } = useI18n(); const openPopup = ref(false); const options = ref([]); const lang = ref(null); +// const auth = useAuthStore(); onMounted(() => { const langInit = localStorage.getItem('lang') ?? locale.value; locale.value = langInit + // auth.lang = langInit; lang.value = {value: langInit, label: langInit == 'en' ? t('global.en') : t('global.es')} options.value = [ {value: 'es',label: t('global.es')}, diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 358c674..ed6ea2b 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -1,8 +1,8 @@