diff --git a/package.json b/package.json index 9530093f..8984373c 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frankerfacez", "author": "Dan Salvato LLC", - "version": "4.13.2", + "version": "4.13.3", "description": "FrankerFaceZ is a Twitch enhancement suite.", "license": "Apache-2.0", "scripts": { diff --git a/src/addons.js b/src/addons.js index a12dcf60..30475594 100644 --- a/src/addons.js +++ b/src/addons.js @@ -175,10 +175,17 @@ export default class AddonManager extends Module { ]); if ( this.i18n.locale !== 'en' ) { - terms.add(this.i18n.t(addon.name_i18n, addon.name)); - terms.add(this.i18n.t(addon.short_name_i18n, addon.short_name)); - terms.add(this.i18n.t(addon.author_i18n, addon.author)); - terms.add(this.i18n.t(addon.description_i18n, addon.description)); + if ( addon.name_i18n ) + terms.add(this.i18n.t(addon.name_i18n, addon.name)); + + if ( addon.short_name_i18n ) + terms.add(this.i18n.t(addon.short_name_i18n, addon.short_name)); + + if ( addon.author_i18n ) + terms.add(this.i18n.t(addon.author_i18n, addon.author)); + + if ( addon.description_i18n ) + terms.add(this.i18n.t(addon.description_i18n, addon.description)); } addon.search_terms = [...terms].map(term => term ? term.toLocaleLowerCase() : '').join('\n'); diff --git a/src/modules/translation_ui/components/i18n-entry.vue b/src/modules/translation_ui/components/i18n-entry.vue index 3a4bcf22..5d989db5 100644 --- a/src/modules/translation_ui/components/i18n-entry.vue +++ b/src/modules/translation_ui/components/i18n-entry.vue @@ -1,7 +1,7 @@