add: finish translation feature

This commit is contained in:
Alexandro Uc Santos
2024-06-08 17:26:02 -06:00
parent b32b2c310c
commit bb30443faa
15 changed files with 269 additions and 133 deletions

View File

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