i18n: live reload error
This commit is contained in:
parent
1dd0dbf907
commit
29f5daa912
|
@ -498,6 +498,10 @@
|
||||||
"message": "Live reload",
|
"message": "Live reload",
|
||||||
"description": "The label of live-reload feature"
|
"description": "The label of live-reload feature"
|
||||||
},
|
},
|
||||||
|
"liveReloadError": {
|
||||||
|
"message": "An error occurred while watching the file",
|
||||||
|
"description": "The label of live-reload error"
|
||||||
|
},
|
||||||
"manageFilters": {
|
"manageFilters": {
|
||||||
"message": "Filters",
|
"message": "Filters",
|
||||||
"description": "Label for filters container"
|
"description": "Label for filters container"
|
||||||
|
|
|
@ -46,7 +46,9 @@ function createSourceLoader() {
|
||||||
return cb(source);
|
return cb(source);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(console.log)
|
.catch(error => {
|
||||||
|
console.log(t('liveReloadError', error));
|
||||||
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
timer = setTimeout(check, DELAY);
|
timer = setTimeout(check, DELAY);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user