2021-06-25 13:55:49 +00:00
|
|
|
<template>
|
|
|
|
<router-view />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2021-09-25 21:39:00 +00:00
|
|
|
|
|
|
|
import { i18n, localeDirection } from "./i18n";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
created() {
|
|
|
|
|
|
|
|
this.setPageLocale();
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
setPageLocale() {
|
|
|
|
const html = document.documentElement
|
|
|
|
html.setAttribute('lang', this.$i18n.locale )
|
|
|
|
html.setAttribute('dir', localeDirection() )
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
"$i18n.locale"() {
|
|
|
|
this.setPageLocale();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2021-06-25 13:55:49 +00:00
|
|
|
</script>
|