This commit is contained in:
Magdalena Lorentz
2024-11-26 20:10:27 +01:00
committed by GitHub
3 changed files with 26 additions and 1 deletions

View File

@@ -528,7 +528,7 @@ var RED = (function() {
var node = RED.nodes.node(parts[1]);
if (node) {
if (msg.hasOwnProperty("text") && msg.text !== null && /^[@a-zA-Z]/.test(msg.text)) {
msg.text = node._(msg.text.toString(),{defaultValue:msg.text.toString()});
msg.text = node._(msg.text.toString(),{defaultValue:msg.text.toString(), ...(msg.params || {})});
}
node.status = msg;
node.dirtyStatus = true;