1
0
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:
Nick O'Leary 2018-02-22 17:59:52 -08:00 committed by GitHub
commit e984e1f30f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;