This commit is contained in:
a-ill
2023-07-04 21:38:05 +03:00
parent 8e322b5df0
commit b949595702
6 changed files with 29 additions and 10 deletions

View File

@@ -92,10 +92,10 @@ export function loadLocaleContent(content,componentName,loaded,callback) {
}
}
getData("/locales/" + locale + "/" + componentName + ".json" ,function(response) {
if (callback!=undefined) {
callback(locale)
}
let parsed = JSON.parse(response)
if (callback!=undefined) {
callback(parsed)
}
content.set(parsed)
loaded = 1
})