Skip to content

Commit

Permalink
Adding spanish translation to the backoffice
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumehussong committed Jan 14, 2025
1 parent 0335b49 commit 65a25cd
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/src/lang/activate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ const strings = new LocalizedStrings({
TOKEN_EXPIRED: 'Your account activation link expired.',
ACTIVATE: 'Activate',
},
es: {
ACTIVATE_HEADING: 'Activación de cuenta',
TOKEN_EXPIRED: 'Su enlace de activación de cuenta ha expirado.',
ACTIVATE: 'Activar',
},
})

langHelper.setLanguage(strings)
Expand Down
4 changes: 4 additions & 0 deletions backend/src/lang/booking-car-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const strings = new LocalizedStrings({
REQUIRED_FIELD: 'Please fill in the field: ',
REQUIRED_FIELDS: 'Please fill in the fields: ',
},
es: {
REQUIRED_FIELD: 'Por favor, complete el campo: ',
REQUIRED_FIELDS: 'Por favor, complete los campos: ',
},
})

langHelper.setLanguage(strings)
Expand Down
4 changes: 4 additions & 0 deletions backend/src/lang/booking-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const strings = new LocalizedStrings({
PICK_UP_LOCATION: 'Pick-up location',
DROP_OFF_LOCATION: 'Drop-off location',
},
es: {
PICK_UP_LOCATION: 'Lugar de recogida',
DROP_OFF_LOCATION: 'Lugar de entrega',
},
})

langHelper.setLanguage(strings)
Expand Down
16 changes: 16 additions & 0 deletions backend/src/lang/booking-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@ const strings = new LocalizedStrings({
DAYS: 'Days',
COST: 'COST',
},
es: {
CAR: 'Coche',
SUPPLIER: 'Proveedor',
DRIVER: 'Conductor',
PRICE: 'Precio',
STATUS: 'Estado',
UPDATE_SELECTION: 'Modificar selección',
DELETE_SELECTION: 'Eliminar selección',
UPDATE_STATUS: 'Modificación del estado',
NEW_STATUS: 'Nuevo estado',
DELETE_BOOKING: '¿Estás seguro de que quieres eliminar esta reserva?',
DELETE_BOOKINGS: '¿Estás seguro de que quieres eliminar las reservas seleccionadas?',
EMPTY_LIST: 'Sin reservas.',
DAYS: 'Días',
COST: 'Coste',
},
})

langHelper.setLanguage(strings)
Expand Down
4 changes: 4 additions & 0 deletions backend/src/lang/booking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const strings = new LocalizedStrings({
TOTAL: 'Total:',
DELETE_BOOKING: 'Are you sure you want to delete this booking?',
},
es: {
TOTAL: 'Total:',
DELETE_BOOKING: '¿Estás seguro de que quieres eliminar esta reserva?',
},
})

langHelper.setLanguage(strings)
Expand Down

0 comments on commit 65a25cd

Please sign in to comment.