소스 검색

chore: 🌐 added localization strings

IceToast 3 년 전
부모
커밋
5ed46a1640
1개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  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) => {
             // 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');
             });
         }