Fixes
This commit is contained in:
parent
d98f4566bc
commit
15e1cf3358
@ -252,8 +252,8 @@ class Database {
|
|||||||
reading,
|
reading,
|
||||||
tags,
|
tags,
|
||||||
rules,
|
rules,
|
||||||
score,
|
|
||||||
glossary,
|
glossary,
|
||||||
|
score: parseInt(score),
|
||||||
dictionary: title
|
dictionary: title
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -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];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user