aboutsummaryrefslogtreecommitdiff
path: root/dev/translator-vm.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-07-31 10:53:35 -0400
committerGitHub <noreply@github.com>2021-07-31 10:53:35 -0400
commit2d57d69b9ed3adf1241074f7eb29a588bec817a2 (patch)
tree0c2b842d80dbb3324cef2f45fca5babe1eeb4014 /dev/translator-vm.js
parentb99850ed54ecaa903a4bd1c2bcf3ae1cd405a3ed (diff)
Improve dictionary importer (#1859)
* Optimize dictionary data parsing during import * Use ArrayBuffer instead of string * Add missing function for testing
Diffstat (limited to 'dev/translator-vm.js')
-rw-r--r--dev/translator-vm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/translator-vm.js b/dev/translator-vm.js
index 49101cf0..3c3886ba 100644
--- a/dev/translator-vm.js
+++ b/dev/translator-vm.js
@@ -72,7 +72,7 @@ class TranslatorVM extends DatabaseVM {
// Dictionary
this._dictionaryName = dictionaryName;
const testDictionary = createDictionaryArchive(dictionaryDirectory, dictionaryName);
- const testDictionaryContent = await testDictionary.generateAsync({type: 'string'});
+ const testDictionaryContent = await testDictionary.generateAsync({type: 'arraybuffer'});
// Setup database
const dictionaryImporter = new DictionaryImporter();