Skip to content

Commit

Permalink
Revert "Fixed a l10n issue on confirm dialog"
Browse files Browse the repository at this point in the history
This reverts commit a3a6743.
  • Loading branch information
iyilm4z committed Dec 19, 2021
1 parent a3a6743 commit 199e40d
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ var abp = abp || {};
return;
}

var localize = function (key) {
return abp.localization.getResource('AbpUi')(key);
};

/* DEFAULTS *************************************************/

abp.libs = abp.libs || {};
Expand Down Expand Up @@ -102,10 +98,9 @@ var abp = abp || {};
};

abp.event.on('abp.configurationInitialized', function () {
abp.libs.sweetAlert.config.confirm.title = localize('AreYouSure');
abp.libs.sweetAlert.config.confirm.confirmButtonText = localize('Yes');
abp.libs.sweetAlert.config.confirm.denyButtonText = localize('No');
abp.libs.sweetAlert.config.confirm.cancelButtonText = localize('Cancel');
var l = abp.localization.getResource('AbpUi');

abp.libs.sweetAlert.config.confirm.title = l('AreYouSure');
abp.libs.sweetAlert.config.confirm.showCancelButton = true;
abp.libs.sweetAlert.config.confirm.reverseButtons = true;
});
Expand Down

0 comments on commit 199e40d

Please sign in to comment.