From 76f14505eb72a9dcf019af718c0ded7446af6c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Thu, 2 Dec 2021 10:44:56 +0100 Subject: [PATCH] :zap: Add condition for loading cred translations --- .../src/components/CredentialEdit/CredentialConfig.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/components/CredentialEdit/CredentialConfig.vue b/packages/editor-ui/src/components/CredentialEdit/CredentialConfig.vue index c92c07b7ee..a51e8ff18e 100644 --- a/packages/editor-ui/src/components/CredentialEdit/CredentialConfig.vue +++ b/packages/editor-ui/src/components/CredentialEdit/CredentialConfig.vue @@ -129,8 +129,10 @@ export default mixins(renderText, restApi).extend({ }, }, async beforeMount() { - await this.findCredentialTextRenderKeys(); - await this.addNodeTranslationForCredential(); + if (this.$store.getters.defaultLocale !== 'en') { + await this.findCredentialTextRenderKeys(); + await this.addNodeTranslationForCredential(); + } }, computed: { appName(): string {