From 056f2d32a138ddb39c7b861ecd81a1d3a8697fb0 Mon Sep 17 00:00:00 2001 From: Alexander Friedland Date: Fri, 1 Nov 2019 13:23:06 +0100 Subject: [PATCH] change this.$i18n.set(this.user.locale) --- webapp/pages/login.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/webapp/pages/login.vue b/webapp/pages/login.vue index 4db3a7c3d..b9228cde5 100644 --- a/webapp/pages/login.vue +++ b/webapp/pages/login.vue @@ -25,12 +25,8 @@ export default { } }, methods: { - handleSuccess() { - const currentLocale = this.$i18n.locale() - const userSettingLocale = this.user.locale - if (currentLocale !== userSettingLocale) { - this.$i18n.set(userSettingLocale) - } + handleSuccess() { + this.$i18n.set(this.user.locale) this.$router.replace(this.$route.query.path || '/') }, },