add: finish translation feature
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
|
||||
const handleDeleteVehicle = async() => {
|
||||
Swal.fire({
|
||||
title: `Eliminar vehiculo "${props.vehicle.vehicle_code}""`,
|
||||
text: '¿Estás seguro de eliminar este vehiculo?',
|
||||
title: `${t('vehicles.titleDel')} "${props.vehicle.vehicle_code}""`,
|
||||
text: t('vehicles.textDel'),
|
||||
icon: 'warning',
|
||||
showCancelButton: true,
|
||||
cancelButtonColor: "#d33",
|
||||
@@ -32,7 +32,7 @@
|
||||
if(result.isConfirmed) {
|
||||
Swal.fire({
|
||||
title: t('messages.loading'),
|
||||
html: 'Eliminando vehiculo...',// add html attribute if you want or remove
|
||||
html: t('vehicles.loadingDel') + '...',// add html attribute if you want or remove
|
||||
allowOutsideClick: false,
|
||||
didOpen: () => {
|
||||
Swal.showLoading()
|
||||
@@ -43,14 +43,14 @@
|
||||
|
||||
if(resp != null) {
|
||||
Swal.fire({
|
||||
title: "vehiculo eliminado!",
|
||||
text: "Tu vehiculo ha sido eliminado exitosamente.",
|
||||
title: t('vehicles.msgTitleDel'),
|
||||
text: t('vehicles.msgDel'),
|
||||
icon: "success"
|
||||
});
|
||||
} else {
|
||||
Swal.fire({
|
||||
title: "Error!",
|
||||
text: "Tu vehiculo no se pudo eliminar, intente más tarde.",
|
||||
text: t('vehicles.msgNotDel'),
|
||||
icon: "error"
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user