From 7553db164e034a54946c6ec1b16f9f6883ae49ee Mon Sep 17 00:00:00 2001 From: Darius Jahandarie Date: Mon, 19 Feb 2024 21:24:12 +0900 Subject: [PATCH] batch media lookups, eliminate base64ing --- ext/js/language/translator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/js/language/translator.js b/ext/js/language/translator.js index 267b7722b4..dcdf6cd5b5 100644 --- a/ext/js/language/translator.js +++ b/ext/js/language/translator.js @@ -121,9 +121,9 @@ export class Translator { if (frequencies.length > 1) { this._sortTermDictionaryEntrySimpleData(frequencies); } if (pronunciations.length > 1) { this._sortTermDictionaryEntrySimpleData(pronunciations); } } + const withUserFacingInflections = this._addUserFacingInflections(language, dictionaryEntries); performance.mark('translator:findTerms:end'); performance.measure('translator:findTerms', 'translator:findTerms:start', 'translator:findTerms:end'); - const withUserFacingInflections = this._addUserFacingInflections(language, dictionaryEntries); return {dictionaryEntries: withUserFacingInflections, originalTextLength}; }