Add condition for loading cred translations

This commit is contained in:
Iván Ovejero 2021-12-02 10:44:56 +01:00
parent 2855492de4
commit 76f14505eb

View file

@ -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 {