From 2fe78cf971c301d580896b51c57b31c20e38a386 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Sat, 25 Sep 2021 14:51:47 +0100 Subject: [PATCH] Update packages/node_modules/@node-red/util/lib/i18n.js Co-authored-by: Nick O'Leary --- packages/node_modules/@node-red/util/lib/i18n.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/util/lib/i18n.js b/packages/node_modules/@node-red/util/lib/i18n.js index e65ede8e9..ef472c659 100644 --- a/packages/node_modules/@node-red/util/lib/i18n.js +++ b/packages/node_modules/@node-red/util/lib/i18n.js @@ -50,7 +50,7 @@ async function registerMessageCatalog(namespace,dir,file) { return initPromise.then(function() { return new Promise((resolve,reject) => { resourceMap[namespace] = { basedir:dir, file:file, lngs: []}; - fs.promises.readdir(dir,function(err, files) { + fs.readdir(dir,function(err, files) { if (err) { resolve(); } else {