Fixed frontend language activation for pt_BR

This commit is contained in:
Antoine Nguyen
2024-08-02 10:30:46 +02:00
parent f4ebc1d960
commit 6554d420e0
11 changed files with 2698 additions and 1198 deletions
@@ -123,9 +123,10 @@ async function updateGeneralSettings() {
.updateAccount(form.value)
.then(() => {
busStore.displayNotification({ msg: $gettext('Profile updated') })
if (!(authStore.authUser.language in available)) {
languageError.value =
'<a href="google.com">language does not exists</a>'
console.log(authStore.accountLanguage)
console.log(available)
if (!(authStore.accountLanguage in available)) {
languageError.value = $gettext('Language does no exist')
}
})
.finally(() => (loadingUpdateProfile.value = false))