You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
uptime-kuma/src/App.vue

28 lines
478 B

3 years ago
<template>
<router-view />
</template>
<script>
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();
},
},
}
3 years ago
</script>