From 5ed46a1640e8588dc6b19b3d4cfc9649b065161b Mon Sep 17 00:00:00 2001 From: IceToast Date: Wed, 22 Dec 2021 11:07:38 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=8C=90=20added=20localization=20?= =?UTF-8?q?strings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/servers/index.blade.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/resources/views/servers/index.blade.php b/resources/views/servers/index.blade.php index f7f77ad1..dc52669b 100644 --- a/resources/views/servers/index.blade.php +++ b/resources/views/servers/index.blade.php @@ -165,21 +165,20 @@ const confirmSubmit = (serverId, handleServerDelete) => { // Confirm delete submit with sweetalert Swal.fire({ - title: '{{ __('Are you sure?') }}', + title: "{{ __('Are you sure?') }}", text: "{{ __('This is an irreversible action, all files of this server will be removed.') }}", icon: 'warning', confirmButtonColor: '#d9534f', showCancelButton: true, - confirmButtonText: 'Yes, delete it!', - cancelButtonText: 'No, cancel!', + confirmButtonText: "{{ __('Yes, delete it!') }}", + cancelButtonText: "{{ __('No, cancel!') }}", reverseButtons: true }).then((result) => { if (result.value) { - console.log('confirmed'); handleServerDelete(serverId); return } - Swal.fire('Canceled ...', `Deletion has been canceled.`, 'info'); + Swal.fire("{{ __('Canceled ...') }}", `{{ __('Deletion has been canceled.') }}`, 'info'); }); }