From af036fa2af00fed25c5c73941a6d4d93e1242334 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Wed, 29 Dec 2021 17:48:59 +0800 Subject: [PATCH] Fixed sweetalert2 button l10n issue --- .../sweetalert2/abp-sweetalert2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; });