This commit is contained in:
@@ -654,16 +654,14 @@ export default {
|
||||
ve.error +
|
||||
"]";
|
||||
if (ve.message) {
|
||||
//NOTE: This is (**still not**) how to handle calling an async function from a sync function
|
||||
//for reference sync async function async method from sync method
|
||||
//it just can't be done and this needs to go away and not be expected to do this
|
||||
let transMessage = ve.message;
|
||||
window.$gz.translation
|
||||
.translateStringWithMultipleKeys(ve.message)
|
||||
.then(result => {
|
||||
transMessage = result;
|
||||
});
|
||||
fldErr += ' - "' + transMessage + '"';
|
||||
//NOTE: call sync version here as can't call async code from here
|
||||
//so translations must already be pre-fetched to work here
|
||||
fldErr +=
|
||||
' - "' +
|
||||
window.$gz.translation.translateStringWithMultipleKeys(
|
||||
ve.message
|
||||
) +
|
||||
'"';
|
||||
ret.push(fldErr);
|
||||
} else {
|
||||
ret.push(fldErr);
|
||||
|
||||
Reference in New Issue
Block a user