mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #1616 from node-red-hitachi/fix-i18n-message-lookup
fix message lookup for core nodes in case of i18 locales directory ex…
This commit is contained in:
commit
e984e1f30f
@ -255,6 +255,12 @@ function loadNodeConfig(fileInfo) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (node.module === 'node-red') {
|
||||||
|
// do not look up locales directory for core nodes
|
||||||
|
node.namespace = node.module;
|
||||||
|
resolve(node);
|
||||||
|
return;
|
||||||
|
}
|
||||||
fs.stat(path.join(path.dirname(file),"locales"),function(err,stat) {
|
fs.stat(path.join(path.dirname(file),"locales"),function(err,stat) {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
node.namespace = node.id;
|
node.namespace = node.id;
|
||||||
|
Loading…
Reference in New Issue
Block a user