diff options
author | Cashew <tungbinem@gmail.com> | 2023-10-08 02:01:35 +0900 |
---|---|---|
committer | Cashew <tungbinem@gmail.com> | 2023-10-08 02:01:35 +0900 |
commit | e5ac48ee5539740e42ae58d9a380f06c96ad9243 (patch) | |
tree | 3ecf1c70735a6a286d4eab28e904ced0773479d3 | |
parent | 77e445dc8c4b324888597c62a9e8bf604b93ed1f (diff) |
fix: typo
-rw-r--r-- | dev/translator-vm.js | 4 | ||||
-rw-r--r-- | ext/js/background/backend.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/dev/translator-vm.js b/dev/translator-vm.js index e3b700ff..2a51ab8c 100644 --- a/dev/translator-vm.js +++ b/dev/translator-vm.js @@ -95,8 +95,8 @@ class TranslatorVM extends DatabaseVM { japaneseUtil: this._japaneseUtil, database: dictionaryDatabase }); - const deinflectionReasions = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'ext', 'data/deinflect.json'))); - this._translator.prepare(deinflectionReasions); + const deinflectionReasons = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'ext', 'data/deinflect.json'))); + this._translator.prepare(deinflectionReasons); // Assign properties this._ankiNoteDataCreator = new AnkiNoteDataCreator(this._japaneseUtil); diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index 58387fd4..565f4abf 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -226,8 +226,8 @@ class Backend { log.error(e); } - const deinflectionReasions = await this._fetchAsset('/data/deinflect.json', true); - this._translator.prepare(deinflectionReasions); + const deinflectionReasons = await this._fetchAsset('/data/deinflect.json', true); + this._translator.prepare(deinflectionReasons); await this._optionsUtil.prepare(); this._defaultAnkiFieldTemplates = (await this._fetchAsset('/data/templates/default-anki-field-templates.handlebars')).trim(); |