add: transaltion sidebar & home & company
This commit is contained in:
@@ -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')},
|
||||
|
||||
Reference in New Issue
Block a user