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
1 changed files with 6 additions and 0 deletions

View File

@ -255,6 +255,12 @@ function loadNodeConfig(fileInfo) {
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) {
if (!err) {
node.namespace = node.id;