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

Update packages/node_modules/@node-red/util/lib/i18n.js

Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
This commit is contained in:
Dave Conway-Jones 2021-09-25 14:51:47 +01:00 committed by GitHub
parent bbf066f030
commit 2fe78cf971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ async function registerMessageCatalog(namespace,dir,file) {
return initPromise.then(function() { return initPromise.then(function() {
return new Promise((resolve,reject) => { return new Promise((resolve,reject) => {
resourceMap[namespace] = { basedir:dir, file:file, lngs: []}; resourceMap[namespace] = { basedir:dir, file:file, lngs: []};
fs.promises.readdir(dir,function(err, files) { fs.readdir(dir,function(err, files) {
if (err) { if (err) {
resolve(); resolve();
} else { } else {