mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix: Set Locale after Login
This commit is contained in:
parent
d3a293ec22
commit
c0138b3811
@ -64,6 +64,7 @@ import InputPassword from '../../components/Inputs/InputPassword'
|
||||
import InputEmail from '../../components/Inputs/InputEmail'
|
||||
import { login } from '../../graphql/queries'
|
||||
import { getCommunityInfoMixin } from '../../mixins/getCommunityInfo'
|
||||
import { localeChanged } from 'vee-validate'
|
||||
|
||||
export default {
|
||||
name: 'login',
|
||||
@ -101,6 +102,8 @@ export default {
|
||||
data: { login },
|
||||
} = result
|
||||
this.$store.dispatch('login', login)
|
||||
this.$i18n.locale = login.language
|
||||
localeChanged(login.language)
|
||||
this.$router.push('/overview')
|
||||
loader.hide()
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user