mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
typo
This commit is contained in:
parent
dae1d6057e
commit
4d6828ec14
@ -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))
|
||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user