1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

fix message lookup for core nodes in case of i18 locales directory exists

This commit is contained in:
Hiroyasu Nishiyama 2018-02-07 21:59:58 +09:00
parent 4a5cb7f2f5
commit ce9643d21b

View File

@ -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;