From e5ac48ee5539740e42ae58d9a380f06c96ad9243 Mon Sep 17 00:00:00 2001 From: Cashew Date: Sun, 8 Oct 2023 02:01:35 +0900 Subject: [PATCH] fix: typo --- dev/translator-vm.js | 4 ++-- 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 e3b700ff07..2a51ab8c01 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 58387fd4eb..565f4abf3c 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();