mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Dont create i18n function for subflows
This commit is contained in:
parent
a4a29ceb3c
commit
1ed98a5963
@ -136,17 +136,19 @@ RED.nodes = (function() {
|
|||||||
|
|
||||||
function addNode(n) {
|
function addNode(n) {
|
||||||
var ns;
|
var ns;
|
||||||
if (n._def.set.module === "node-red") {
|
if (n.type.indexOf("subflow") != 0) {
|
||||||
ns = "node-red";
|
if (n._def.set.module === "node-red") {
|
||||||
} else {
|
ns = "node-red";
|
||||||
ns = n._def.set.id;
|
} else {
|
||||||
}
|
ns = n._def.set.id;
|
||||||
n["_"] = function() {
|
}
|
||||||
var args = Array.prototype.slice.call(arguments, 0);
|
n["_"] = function() {
|
||||||
if (args[0].indexOf(":") === -1) {
|
var args = Array.prototype.slice.call(arguments, 0);
|
||||||
args[0] = ns+":"+args[0];
|
if (args[0].indexOf(":") === -1) {
|
||||||
|
args[0] = ns+":"+args[0];
|
||||||
|
}
|
||||||
|
return RED._.apply(null,args);
|
||||||
}
|
}
|
||||||
return RED._.apply(null,args);
|
|
||||||
}
|
}
|
||||||
if (n._def.category == "config") {
|
if (n._def.category == "config") {
|
||||||
configNodes[n.id] = n;
|
configNodes[n.id] = n;
|
||||||
|
Loading…
Reference in New Issue
Block a user