1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-27 21:18:30 +00:00
* Changed: Shift-Click the FFZ Control Center icon in the top navigation to open the Control Center in a new window.
* Fixed: Unnecessary localization calls for add-ons.
* Fixed: Show an in-page notification rather than an alert box if the FFZ Control Center fails to load.
* Fixed: Adding an event to an EventListener while the event firing potentially leading to an infinite loop.
* Fixed: Pluralization rules for Ukrainian.
This commit is contained in:
SirStendec 2019-10-07 03:35:53 -04:00
parent 8c7e03119f
commit 02efd61f00
7 changed files with 180 additions and 118 deletions

View file

@ -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');