aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language/translator.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/language/translator.js')
-rw-r--r--ext/js/language/translator.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/js/language/translator.js b/ext/js/language/translator.js
index 04319e60..af275c07 100644
--- a/ext/js/language/translator.js
+++ b/ext/js/language/translator.js
@@ -47,10 +47,9 @@ export class Translator {
/**
* Initializes the instance for use. The public API should not be used until this function has been called.
- * @param {import('language-transformer').LanguageTransformDescriptor[]} languageTransformDescriptors
*/
- prepare(languageTransformDescriptors) {
- this._multiLanguageTransformer.prepare(languageTransformDescriptors);
+ prepare() {
+ this._multiLanguageTransformer.prepare();
for (const {iso, textPreprocessors} of getAllLanguageTextPreprocessors()) {
/** @type {Map<string, import('language').TextPreprocessorOptions<unknown>>} */
const optionSpace = new Map();