Log a warning if a localization selector cannot find any target

This commit is contained in:
Jonas Herzig 2020-05-03 18:03:15 +02:00
parent a380f4ee70
commit abc78769ec

View file

@ -1032,6 +1032,8 @@ function translatePiece(selector, kind, parameters, key) {
element.setAttribute(parameters.name || 'value', translation);
break;
}
} else {
console.warn(`translation selector "${selector}" for "${key}" did not match any element`)
}
}