This commit is contained in:
Alex Yatskov 2016-12-17 19:08:28 -08:00
parent d98f4566bc
commit 15e1cf3358
3 changed files with 3 additions and 3 deletions

View File

@ -252,8 +252,8 @@ class Database {
reading, reading,
tags, tags,
rules, rules,
score,
glossary, glossary,
score: parseInt(score),
dictionary: title dictionary: title
}); });
} }

View File

@ -31,7 +31,7 @@ class Translator {
} }
const promises = [ const promises = [
loadJsonInt('bg/data/reasons.json'), loadJsonInt('bg/data/deinflect.json'),
this.database.prepare() this.database.prepare()
]; ];

View File

@ -97,7 +97,7 @@ function sortTermDefs(definitions) {
} }
function applyTagMeta(tag, meta) { function applyTagMeta(tag, meta) {
const symbol = tag.name.split(':')[0]; const symbol = tag.tag.split(':')[0];
for (const prop in meta[symbol] || {}) { for (const prop in meta[symbol] || {}) {
tag[prop] = meta[symbol][prop]; tag[prop] = meta[symbol][prop];
} }