Phrasen Plugin: Bugfix this

This commit is contained in:
cgfhtw
2024-03-19 08:45:10 +01:00
parent b147f73954
commit 8f0e837fb7
+2 -1
View File
@@ -23,7 +23,8 @@ function getValueForLoadedPhrase(category, phrase, params) {
const phrasen = {
loadCategory(category) {
if (Array.isArray(category))
return Promise.all(category.map(cat => this.loadCategory(cat)));
return Promise.all(category.map(cat => this.config.globalProperties
.$fhcApi.factory.phrasen.loadCategory(cat)));
if (!loadingModules[category])
loadingModules[category] = this.config.globalProperties
.$fhcApi.factory.phrasen.loadCategory(category)