mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 05:54:34 +02:00
Move locales to single json files & Replace laravel-vue-i18n with vue-i18n
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
<script setup>
|
||||
import { RouterView } from 'vue-router'
|
||||
|
||||
const { t } = useI18n()
|
||||
const route = useRoute()
|
||||
const kickUser = ref(null)
|
||||
const kickUserAfter = ref(null)
|
||||
@ -39,6 +41,11 @@
|
||||
})
|
||||
})
|
||||
|
||||
router.afterEach((to, from) => {
|
||||
to.meta.title = t('title.' + to.name)
|
||||
document.title = to.meta.title
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
Reference in New Issue
Block a user