Fix: keep old text when there is no translation
This commit is contained in:
@@ -57,6 +57,7 @@ export const setStrings = function (type, obj, ids) {
|
|||||||
Object.entries(obj).forEach(([sel, val]) => {
|
Object.entries(obj).forEach(([sel, val]) => {
|
||||||
if (!val) {
|
if (!val) {
|
||||||
console.log(sel); // eslint-disable-line no-console
|
console.log(sel); // eslint-disable-line no-console
|
||||||
|
return; // keep old text when has no translation
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ids) { sel = '#' + sel; }
|
if (ids) { sel = '#' + sel; }
|
||||||
|
|||||||
Reference in New Issue
Block a user