mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-18 14:08:07 +01:00
fix blog translations
This commit is contained in:
@@ -120,8 +120,10 @@ export default {
|
||||
this.scrollPosition = window.scrollY
|
||||
},
|
||||
async changeLanguage(lang) {
|
||||
await this.$router.push('/')
|
||||
this.$i18n.setLocale(lang)
|
||||
await this.$i18n.setLocale(lang)
|
||||
if (this.$router.currentRoute.fullPath.includes('blog')) {
|
||||
await this.$nuxt.refresh()
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
|
||||
Reference in New Issue
Block a user