Convert translator callbacks to async/await (#3048)

Co-authored-by: veeck <michael@veeck.de>
This commit is contained in:
Veeck
2023-02-21 22:58:18 +01:00
committed by GitHub
parent a23769156e
commit 2b792cdbb8
7 changed files with 92 additions and 119 deletions

View File

@@ -160,7 +160,7 @@ const Loader = (function () {
Log.log("Scripts loaded for: " + module.name);
mObj.loadStyles(function () {
Log.log("Styles loaded for: " + module.name);
mObj.loadTranslations(function () {
mObj.loadTranslations().then(() => {
Log.log("Translations loaded for: " + module.name);
moduleObjects.push(mObj);
callback();