Set default text button for all SweetAlert in project
Author: hero70411Created Jun 28, 2025Updated Jun 28, 2025
My project using many sweetAlert. Now i changed my project to multi-language project. So i need to change text button of SWAL on everywhere. Iam using this but it's not working. Can u guys help me ?
swal.setDefaults({ buttons: { cancel: LANG.cancel, confirm: LANG.ok } });
Source: t4t5/sweetalert