diff --git a/src/core/services/utils/dom.ts b/src/core/services/utils/dom.ts index 3ea323352..f41dd5961 100644 --- a/src/core/services/utils/dom.ts +++ b/src/core/services/utils/dom.ts @@ -934,14 +934,15 @@ export class CoreDomUtilsProvider { * @param options More options. See https://ionicframework.com/docs/v3/api/components/alert/AlertController/ * @returns Promise resolved if the user confirms and rejected with a canceled error if he cancels. */ - showDeleteConfirm( + async showDeleteConfirm( translateMessage: string = 'core.areyousure', translateArgs: Record = {}, options: AlertOptions = {}, ): Promise { - return new Promise((resolve, reject): void => { - options.message = Translate.instant(translateMessage, translateArgs); + options.message = Translate.instant(translateMessage, translateArgs); + options.message = await CoreLang.filterMultilang(options.message); + return new Promise((resolve, reject): void => { options.buttons = [ { text: Translate.instant('core.cancel'),