Log a warning if a localization selector cannot find any target
This commit is contained in:
parent
a380f4ee70
commit
abc78769ec
|
@ -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`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue