Commit d6bcae9f authored by  JosephK's avatar JosephK
Browse files

Fix locale after redirection

parent a935d136
......@@ -29,6 +29,12 @@
<script>
export default {
created() {
if (this.$route.meta.lang !== undefined
&& this.$i18n.locale !== this.$route.meta.lang) {
this.$i18n.locale = this.$route.meta.lang;
}
},
data() {
const title = this.$te(`meta.${this.$route.meta.id}.title`)
? this.text(this.$t(`meta.${this.$route.meta.id}.title`))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment