Browse Source

chore: 🌐 added localization strings

IceToast 3 years ago
parent
commit
5ed46a1640
1 changed files with 4 additions and 5 deletions
  1. 4 5
      resources/views/servers/index.blade.php

+ 4 - 5
resources/views/servers/index.blade.php

@@ -165,21 +165,20 @@
         const confirmSubmit = (serverId, handleServerDelete) => {
         const confirmSubmit = (serverId, handleServerDelete) => {
             // Confirm delete submit with sweetalert
             // Confirm delete submit with sweetalert
             Swal.fire({
             Swal.fire({
-                title: '{{ __('Are you sure?') }}',
+                title: "{{ __('Are you sure?') }}",
                 text: "{{ __('This is an irreversible action, all files of this server will be removed.') }}",
                 text: "{{ __('This is an irreversible action, all files of this server will be removed.') }}",
                 icon: 'warning',
                 icon: 'warning',
                 confirmButtonColor: '#d9534f',
                 confirmButtonColor: '#d9534f',
                 showCancelButton: true,
                 showCancelButton: true,
-                confirmButtonText: 'Yes, delete it!',
-                cancelButtonText: 'No, cancel!',
+                confirmButtonText: "{{ __('Yes, delete it!') }}",
+                cancelButtonText: "{{ __('No, cancel!') }}",
                 reverseButtons: true
                 reverseButtons: true
             }).then((result) => {
             }).then((result) => {
                 if (result.value) {
                 if (result.value) {
-                    console.log('confirmed');
                     handleServerDelete(serverId);
                     handleServerDelete(serverId);
                     return
                     return
                 }
                 }
-                Swal.fire('Canceled ...', `Deletion has been canceled.`, 'info');
+                Swal.fire("{{ __('Canceled ...') }}", `{{ __('Deletion has been canceled.') }}`, 'info');
             });
             });
         }
         }