Skip to content

Commit

Permalink
Merge pull request #272 from Scrub1492/master
Browse files Browse the repository at this point in the history
fix: typo
  • Loading branch information
djahandarie authored Oct 8, 2023
2 parents 77e445d + e5ac48e commit 9e4464e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dev/translator-vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions ext/js/background/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9e4464e

Please sign in to comment.