chore: 🌐 added localization strings

This commit is contained in:
IceToast 2021-12-22 11:07:38 +01:00
parent fe153fdc90
commit 5ed46a1640

View file

@ -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');
});
}