Add i18n for sweetalert2 in admin panel

This commit is contained in:
gplane 2017-04-25 17:31:08 +08:00
parent 293cb0e457
commit b0f29c5036

View File

@ -1,8 +1,8 @@
/* /*
* @Author: printempw * @Author: printempw
* @Date: 2016-07-22 14:02:44 * @Date: 2016-07-22 14:02:44
* @Last Modified by: printempw * @Last Modified by: g-plane
* @Last Modified time: 2017-01-21 10:58:50 * @Last Modified time: 2017-04-25 17:30:11
*/ */
'use strict'; 'use strict';
@ -11,6 +11,10 @@ $(document).ready(function() {
$('input').iCheck({ $('input').iCheck({
checkboxClass: 'icheckbox_square-blue' checkboxClass: 'icheckbox_square-blue'
}); });
swal.setDefaults({
confirmButtonText: trans('general.confirm'),
cancelButtonText: trans('general.cancel')
});
$.extend(true, $.fn.dataTable.defaults, { $.extend(true, $.fn.dataTable.defaults, {
language: trans('vendor.datatables'), language: trans('vendor.datatables'),