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: {
|
methods: {
|
||||||
changeLanguage(locale, toggleMenu) {
|
changeLanguage(locale, toggleMenu) {
|
||||||
this.$i18n.set(locale)
|
this.$i18n.set(locale)
|
||||||
this.change()
|
this.updateUserLocale()
|
||||||
toggleMenu()
|
toggleMenu()
|
||||||
},
|
},
|
||||||
matcher(locale) {
|
matcher(locale) {
|
||||||
@ -83,7 +83,7 @@ export default {
|
|||||||
...mapMutations({
|
...mapMutations({
|
||||||
setCurrentUser: 'auth/SET_USER',
|
setCurrentUser: 'auth/SET_USER',
|
||||||
}),
|
}),
|
||||||
async change() {
|
async updateUserLocale() {
|
||||||
try {
|
try {
|
||||||
await this.$apollo.mutate({
|
await this.$apollo.mutate({
|
||||||
mutation: localeMutation(),
|
mutation: localeMutation(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user