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

View File

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