forked from cerc-io/cosmos-explorer
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>
|
</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>
|
||||||
|
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user