Fix: keep old text when there is no translation

master
cuixiping 2020-01-07 18:11:21 +08:00
parent 6988dc4d7b
commit eea489e602
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ export const setStrings = function (type, obj, ids) {
Object.entries(obj).forEach(([sel, val]) => {
if (!val) {
console.log(sel); // eslint-disable-line no-console
return; // keep old text when has no translation
}
if (ids) { sel = '#' + sel; }