This commit is contained in:
2021-01-05 01:05:57 +00:00
parent 37d9a3e9bc
commit 3c3264a123
4 changed files with 17 additions and 32 deletions

View File

@@ -685,15 +685,15 @@ export default {
ve.error +
"]";
if (ve.message) {
// if (ve.message.includes("LT:")) {
// ve.message = vm.$ay.t(ve.message.split(":")[1]);
// }
fldErr +=
' - "' +
window.$gz.translation.translateStringWithMultipleKeys(
ve.message
) +
'"';
//NOTE: This is how to handle calling an async function from a sync function
//for reference sync async function async method from sync method
let transMessage = ve.message;
window.$gz.translation
.translateStringWithMultipleKeys(ve.message)
.then(result => {
transMessage = result;
});
fldErr += ' - "' + transMessage + '"';
}
ret.push(fldErr);
});