summaryrefslogtreecommitdiff
path: root/ext/bg/js/backend.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-10-04 13:09:04 -0400
committerGitHub <noreply@github.com>2020-10-04 13:09:04 -0400
commit7e31dcca3960a269be537196971f06112b6a6be9 (patch)
tree954c8102676561b26dcc1d9f9a1bdf0557fda966 /ext/bg/js/backend.js
parent2bd82353e46ecc8c16f2b55f81c8daae6f73e12e (diff)
Move deinflection reasons setup to backend (#880)
* Move deinflection reasons setup to backend * Remove async
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r--ext/bg/js/backend.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index ebdd2cda..65df0d49 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -186,7 +186,9 @@ class Backend {
} catch (e) {
yomichan.logError(e);
}
- await this._translator.prepare();
+
+ const deinflectionReasions = await this._fetchAsset('/bg/lang/deinflect.json', true);
+ this._translator.prepare(deinflectionReasions);
await this._optionsUtil.prepare();
this._defaultAnkiFieldTemplates = (await this._fetchAsset('/bg/data/default-anki-field-templates.handlebars')).trim();