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