feat: navbar lang
This commit is contained in:
parent
08c2b60454
commit
42329764dd
20
src/App.vue
20
src/App.vue
@ -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>
|
||||
|
@ -14,10 +14,10 @@ const i18nCompLanguages: I18nLanguage[] = [
|
||||
label: '中文',
|
||||
i18nLang: 'cn',
|
||||
},
|
||||
{
|
||||
label: 'Arabic',
|
||||
i18nLang: 'ar',
|
||||
},
|
||||
// {
|
||||
// label: 'Arabic',
|
||||
// i18nLang: 'ar',
|
||||
// },
|
||||
];
|
||||
|
||||
const handleLangChange = (lang: string) => {
|
||||
|
Loading…
Reference in New Issue
Block a user