From b75a794ec3bf9906b4dff6c2f1fa20bac239c4d0 Mon Sep 17 00:00:00 2001 From: Gabriel Pastori <58153955+gabrielpastori1@users.noreply.github.com> Date: Thu, 14 Dec 2023 14:13:39 -0300 Subject: [PATCH] Fix API phoneConnect error i18n --- src/components/modal/ConnectPhone.vue | 4 +--- src/i18n/en.js | 3 ++- src/i18n/pt.js | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/modal/ConnectPhone.vue b/src/components/modal/ConnectPhone.vue index 08ce94d..512ce4c 100644 --- a/src/components/modal/ConnectPhone.vue +++ b/src/components/modal/ConnectPhone.vue @@ -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; diff --git a/src/i18n/en.js b/src/i18n/en.js index 4f40e5f..5a9bad5 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -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." } } \ No newline at end of file diff --git a/src/i18n/pt.js b/src/i18n/pt.js index ec02319..82d85b0 100644 --- a/src/i18n/pt.js +++ b/src/i18n/pt.js @@ -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." } } \ No newline at end of file