mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
change
change() change to updateUserLocale()
This commit is contained in:
parent
9dccb5fc0a
commit
b584f12bb1
@ -73,7 +73,7 @@ export default {
|
||||
methods: {
|
||||
changeLanguage(locale, toggleMenu) {
|
||||
this.$i18n.set(locale)
|
||||
this.change()
|
||||
this.updateUserLocale()
|
||||
toggleMenu()
|
||||
},
|
||||
matcher(locale) {
|
||||
@ -83,7 +83,7 @@ export default {
|
||||
...mapMutations({
|
||||
setCurrentUser: 'auth/SET_USER',
|
||||
}),
|
||||
async change() {
|
||||
async updateUserLocale() {
|
||||
try {
|
||||
await this.$apollo.mutate({
|
||||
mutation: localeMutation(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user