1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
This commit is contained in:
tot92 2019-11-09 22:09:02 +01:00
parent dae1d6057e
commit 4d6828ec14

View File

@ -125,7 +125,7 @@ var MessageFileLoader = {
// read base language (e. g. 'de'), then actual language (e. g. 'de-DE') // read base language (e. g. 'de'), then actual language (e. g. 'de-DE')
readFile(baseLng, ns).then( readFile(baseLng, ns).then(
baseData => { baseData => {
// scenario 2: reading base language was successful -> read actual language -> if this fails, return base language data // scenario 1: reading base language was successful -> read actual language -> if this fails, return base language data
readFile(lng, ns).then(data => callback(null, data), () => callback(null, baseData)) readFile(lng, ns).then(data => callback(null, data), () => callback(null, baseData))
}, },
() => { () => {