This commit is contained in:
Alex Yatskov 2016-11-07 08:24:39 -08:00
parent 8c22f53f3e
commit c11b24cb37
2 changed files with 4 additions and 4 deletions

View File

@ -153,7 +153,7 @@ class Dictionary {
});
}
importDb(indexUrl, callback) {
importDictionary(indexUrl, callback) {
if (this.db === null) {
return Promise.reject('database not initialized');
}

View File

@ -62,9 +62,9 @@ class Translator {
};
return Promise.all([
this.dictionary.importDb('bg/data/edict/index.json', bankCallback),
this.dictionary.importDb('bg/data/enamdict/index.json', bankCallback),
this.dictionary.importDb('bg/data/kanjidic/index.json', bankCallback),
this.dictionary.importDictionary('bg/data/edict/index.json', bankCallback),
this.dictionary.importDictionary('bg/data/enamdict/index.json', bankCallback),
this.dictionary.importDictionary('bg/data/kanjidic/index.json', bankCallback),
]).then(() => {
return this.dictionary.sealDb();
}).then(() => {