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:
parent
bbf066f030
commit
2fe78cf971
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user