mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge branch 'master' into 0.17
This commit is contained in:
@@ -80,6 +80,8 @@ function getLocalFile(file) {
|
||||
* @return an array of fully-qualified paths to .js files
|
||||
*/
|
||||
function getLocalNodeFiles(dir) {
|
||||
dir = path.resolve(dir);
|
||||
|
||||
var result = [];
|
||||
var files = [];
|
||||
try {
|
||||
@@ -218,7 +220,7 @@ function getNodeFiles(disableNodePathScan) {
|
||||
|
||||
if (settings.coreNodesDir) {
|
||||
nodeFiles = getLocalNodeFiles(path.resolve(settings.coreNodesDir));
|
||||
var defaultLocalesPath = path.resolve(path.join(settings.coreNodesDir,"core","locales"));
|
||||
var defaultLocalesPath = path.join(settings.coreNodesDir,"core","locales");
|
||||
i18n.registerMessageCatalog("node-red",defaultLocalesPath,"messages.json");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user