diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/sweetalert2/abp-sweetalert2.js b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/sweetalert2/abp-sweetalert2.js index 6f2a5cd727..fcdaca076d 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/sweetalert2/abp-sweetalert2.js +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/sweetalert2/abp-sweetalert2.js @@ -100,10 +100,10 @@ var abp = abp || {}; abp.event.on('abp.configurationInitialized', function () { var l = abp.localization.getResource('AbpUi'); + abp.libs.sweetAlert.config.default.confirmButtonText = l('Yes'); + abp.libs.sweetAlert.config.default.denyButtonText = l('No'); + abp.libs.sweetAlert.config.default.cancelButtonText = l('Cancel'); abp.libs.sweetAlert.config.confirm.title = l('AreYouSure'); - abp.libs.sweetAlert.config.confirm.confirmButtonText = l('Yes'); - abp.libs.sweetAlert.config.confirm.denyButtonText = l('No'); - abp.libs.sweetAlert.config.confirm.cancelButtonText = l('Cancel'); abp.libs.sweetAlert.config.confirm.showCancelButton = true; abp.libs.sweetAlert.config.confirm.reverseButtons = true; });