feat: navbar lang

This commit is contained in:
Alisa | Side.one 2023-05-12 21:06:29 +08:00
parent 08c2b60454
commit 42329764dd
2 changed files with 13 additions and 15 deletions

View File

@ -23,15 +23,13 @@ onMounted(() => {
</script>
<template>
<VLocaleProvider :rtl="isAppRtl">
<!-- This is required to set the background color of active nav link based on currently active global theme's primary -->
<VApp
:style="`--v-global-theme-primary: ${hexToRgb(
global.current.value.colors.primary
)}`"
>
<RouterView />
<TxDialog/>
</VApp>
</VLocaleProvider>
<!-- This is required to set the background color of active nav link based on currently active global theme's primary -->
<VApp
:style="`--v-global-theme-primary: ${hexToRgb(
global.current.value.colors.primary
)}`"
>
<RouterView />
<TxDialog />
</VApp>
</template>

View File

@ -14,10 +14,10 @@ const i18nCompLanguages: I18nLanguage[] = [
label: '中文',
i18nLang: 'cn',
},
{
label: 'Arabic',
i18nLang: 'ar',
},
// {
// label: 'Arabic',
// i18nLang: 'ar',
// },
];
const handleLangChange = (lang: string) => {