33 lines
542 B
Vue
33 lines
542 B
Vue
<script setup>
|
|
import NavBarI18n from '@core/components/I18n.vue'
|
|
import { useThemeConfig } from '@core/composable/useThemeConfig'
|
|
|
|
const { isAppRtl } = useThemeConfig()
|
|
|
|
const i18nCompLanguages = [
|
|
{
|
|
label: 'English',
|
|
i18nLang: 'en',
|
|
},
|
|
{
|
|
label: 'French',
|
|
i18nLang: 'fr',
|
|
},
|
|
{
|
|
label: 'Arabic',
|
|
i18nLang: 'ar',
|
|
},
|
|
]
|
|
|
|
const handleLangChange = lang => {
|
|
isAppRtl.value = lang === 'ar'
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<NavBarI18n
|
|
:languages="i18nCompLanguages"
|
|
@change="handleLangChange"
|
|
/>
|
|
</template>
|