Add support for multiple interface languages

This commit is contained in:
Tusooa Zhu 2022-07-25 15:38:05 -04:00 committed by tusooa
commit b7e9373965
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
5 changed files with 92 additions and 23 deletions

View file

@ -43,7 +43,7 @@ const ProfileTab = {
bannerPreview: null,
background: null,
backgroundPreview: null,
emailLanguage: this.$store.state.users.currentUser.language || ''
emailLanguage: this.$store.state.users.currentUser.language || ['']
}
},
components: {
@ -130,7 +130,7 @@ const ProfileTab = {
}
if (this.emailLanguage) {
params.language = localeService.internalToBackendLocale(this.emailLanguage)
params.language = localeService.internalToBackendLocaleMulti(this.emailLanguage)
}
this.$store.state.api.backendInteractor