Fix API phoneConnect error i18n

This commit is contained in:
Gabriel Pastori 2023-12-14 14:13:39 -03:00
parent 790755de55
commit b75a794ec3
3 changed files with 5 additions and 5 deletions

View File

@ -98,9 +98,7 @@ export default {
this.AppStore.reconnect();
return;
} else
throw new Error(
"Não foi possível carregar o QR Code, se o erro persistir, reinicie a API e tente novamente."
);
throw new Error(this.$t('connectPhone.apiGenericError'));
this.timeout = setTimeout(this.loadQr, 40000);
this.disabledRefresh = true;

View File

@ -41,6 +41,7 @@ export default {
profile: "Profile",
},
connectPhone: {
title: "Phone not connected"
title: "Phone not connected",
apiGenericError: "Could not load QR Code, if the error persists, restart the API and try again."
}
}

View File

@ -41,6 +41,7 @@ export default {
profile: "Perfil",
},
connectPhone: {
title: "Telefone não conectado"
title: "Telefone não conectado",
apiGenericError: "Não foi possível carregar o QR Code, se o erro persistir, reinicie a API e tente novamente."
}
}