Skip to content

Commit b75a794

Browse files
Fix API phoneConnect error i18n
1 parent 790755d commit b75a794

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/modal/ConnectPhone.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ export default {
9898
this.AppStore.reconnect();
9999
return;
100100
} else
101-
throw new Error(
102-
"Não foi possível carregar o QR Code, se o erro persistir, reinicie a API e tente novamente."
103-
);
101+
throw new Error(this.$t('connectPhone.apiGenericError'));
104102
105103
this.timeout = setTimeout(this.loadQr, 40000);
106104
this.disabledRefresh = true;

src/i18n/en.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default {
4141
profile: "Profile",
4242
},
4343
connectPhone: {
44-
title: "Phone not connected"
44+
title: "Phone not connected",
45+
apiGenericError: "Could not load QR Code, if the error persists, restart the API and try again."
4546
}
4647
}

src/i18n/pt.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default {
4141
profile: "Perfil",
4242
},
4343
connectPhone: {
44-
title: "Telefone não conectado"
44+
title: "Telefone não conectado",
45+
apiGenericError: "Não foi possível carregar o QR Code, se o erro persistir, reinicie a API e tente novamente."
4546
}
4647
}

0 commit comments

Comments
 (0)