Skip to content

Commit

Permalink
feat: Add reservation number and price fields to lodging information …
Browse files Browse the repository at this point in the history
…across multiple languages
  • Loading branch information
seanmorley15 committed Feb 16, 2025
1 parent b5d6788 commit d31b952
Show file tree
Hide file tree
Showing 10 changed files with 355 additions and 17 deletions.
14 changes: 14 additions & 0 deletions frontend/src/lib/components/LodgingCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,20 @@
</p>
</div>
{/if}
{#if lodging.user_id == user?.uuid || (collection && user && collection.shared_with && collection.shared_with.includes(user.uuid))}
{#if lodging.reservation_number}
<div class="flex items-center gap-2">
<span class="font-medium text-sm">{$t('adventures.reservation_number')}:</span>
<p>{lodging.reservation_number}</p>
</div>
{/if}
{#if lodging.price}
<div class="flex items-center gap-2">
<span class="font-medium text-sm">{$t('adventures.price')}:</span>
<p>{lodging.price}</p>
</div>
{/if}
{/if}
</div>

<!-- Actions -->
Expand Down
40 changes: 38 additions & 2 deletions frontend/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,13 @@
"display_name": "Anzeigename",
"location_details": "Standortdetails",
"lodging": "Unterkunft",
"region": "Region"
"region": "Region",
"delete_lodging": "Unterkunft löschen",
"lodging_delete_confirm": "Sind Sie sicher, dass Sie diesen Standort löschen möchten? \nDiese Aktion kann nicht rückgängig gemacht werden.",
"lodging_information": "Unterkunftsinformationen",
"price": "Preis",
"reservation_number": "Reservierungsnummer",
"welcome_map_info": "Öffentliche Abenteuer auf diesem Server"
},
"home": {
"desc_1": "Entdecken, planen und erkunden Sie mit Leichtigkeit",
Expand Down Expand Up @@ -287,7 +293,8 @@
"tag": "Etikett",
"language_selection": "Sprache",
"support": "Unterstützung",
"calendar": "Kalender"
"calendar": "Kalender",
"admin_panel": "Admin -Panel"
},
"auth": {
"confirm_password": "Passwort bestätigen",
Expand Down Expand Up @@ -577,5 +584,34 @@
"phone": "Telefon",
"recommendation": "Empfehlung",
"website": "Webseite"
},
"lodging": {
"apartment": "Wohnung",
"bnb": "Übernachtung mit Frühstück",
"cabin": "Kabine",
"campground": "Campingplatz",
"check_in": "Einchecken",
"check_out": "Kasse",
"date_and_time": "Datum",
"edit": "Bearbeiten",
"edit_lodging": "Unterkunft bearbeiten",
"error_editing_lodging": "Fehlerbearbeitung",
"hostel": "Herberge",
"hotel": "Hotel",
"house": "Haus",
"lodging_added": "Unterkunft erfolgreich hinzugefügt!",
"lodging_delete_error": "Fehler beim Löschen von Unterkünften",
"lodging_deleted": "Unterkunft erfolgreich gelöscht!",
"lodging_edit_success": "Unterbringung erfolgreich bearbeitet!",
"lodging_type": "Unterkunftstyp",
"motel": "Motel",
"new_lodging": "Neue Unterkunft",
"other": "Andere",
"provide_start_date": "Bitte geben Sie einen Startdatum an",
"reservation_number": "Reservierungsnummer",
"resort": "Resort",
"start": "Start",
"type": "Typ",
"villa": "Villa"
}
}
3 changes: 2 additions & 1 deletion frontend/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@
"other": "Other"
},
"lodging_information": "Lodging Information",
"price": "Price"
"price": "Price",
"reservation_number": "Reservation Number"
},
"worldtravel": {
"country_list": "Country List",
Expand Down
45 changes: 43 additions & 2 deletions frontend/src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"tag": "Etiqueta",
"language_selection": "Idioma",
"support": "Apoyo",
"calendar": "Calendario"
"calendar": "Calendario",
"admin_panel": "Panel de administración"
},
"about": {
"about": "Acerca de",
Expand Down Expand Up @@ -282,7 +283,18 @@
"upload": "Subir",
"view_attachment": "Ver archivo adjunto",
"attachment_name": "Nombre del archivo adjunto",
"of": "de"
"of": "de",
"city": "Ciudad",
"delete_lodging": "Eliminar alojamiento",
"display_name": "Nombre para mostrar",
"location_details": "Detalles de la ubicación",
"lodging": "Alojamiento",
"lodging_delete_confirm": "¿Estás seguro de que quieres eliminar este lugar de alojamiento? \nEsta acción no se puede deshacer.",
"lodging_information": "Información de alojamiento",
"price": "Precio",
"region": "Región",
"reservation_number": "Número de reserva",
"welcome_map_info": "Aventuras públicas en este servidor"
},
"worldtravel": {
"all": "Todo",
Expand Down Expand Up @@ -572,5 +584,34 @@
"phone": "Teléfono",
"recommendation": "Recomendación",
"website": "Sitio web"
},
"lodging": {
"apartment": "Departamento",
"bnb": "Cama y desayuno",
"cabin": "Cabina",
"campground": "Terreno de camping",
"check_in": "Registrarse",
"check_out": "Verificar",
"date_and_time": "Fecha",
"edit": "Editar",
"error_editing_lodging": "Error de edición de alojamiento",
"hostel": "Albergue",
"hotel": "Hotel",
"house": "Casa",
"lodging_added": "¡Alojamiento agregado con éxito!",
"lodging_delete_error": "Error de eliminación de alojamiento",
"lodging_deleted": "¡Alojamiento eliminado con éxito!",
"lodging_edit_success": "¡Alojamiento editado con éxito!",
"lodging_type": "Tipo de alojamiento",
"motel": "Motel",
"new_lodging": "Nuevo alojamiento",
"other": "Otro",
"provide_start_date": "Proporcione una fecha de inicio",
"reservation_number": "Número de reserva",
"resort": "Complejo",
"start": "Comenzar",
"type": "Tipo",
"villa": "Villa",
"edit_lodging": "Editar alojamiento"
}
}
45 changes: 43 additions & 2 deletions frontend/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,18 @@
"primary": "Primaire",
"upload": "Télécharger",
"view_attachment": "Voir la pièce jointe",
"of": "de"
"of": "de",
"city": "Ville",
"delete_lodging": "Supprimer l'hébergement",
"display_name": "Nom d'affichage",
"location_details": "Détails de l'emplacement",
"lodging": "Hébergement",
"lodging_delete_confirm": "Êtes-vous sûr de vouloir supprimer cet emplacement d'hébergement? \nCette action ne peut pas être annulée.",
"lodging_information": "Informations sur l'hébergement",
"price": "Prix",
"region": "Région",
"reservation_number": "Numéro de réservation",
"welcome_map_info": "Aventures publiques sur ce serveur"
},
"home": {
"desc_1": "Découvrez, planifiez et explorez en toute simplicité",
Expand Down Expand Up @@ -282,7 +293,8 @@
"tag": "Étiqueter",
"language_selection": "Langue",
"support": "Soutien",
"calendar": "Calendrier"
"calendar": "Calendrier",
"admin_panel": "Panneau d'administration"
},
"auth": {
"confirm_password": "Confirmez le mot de passe",
Expand Down Expand Up @@ -572,5 +584,34 @@
"phone": "Téléphone",
"recommendation": "Recommandation",
"website": "Site web"
},
"lodging": {
"apartment": "Appartement",
"bnb": "Bed and petit-déjeuner",
"cabin": "Cabine",
"campground": "Camping",
"check_in": "Enregistrement",
"check_out": "Vérifier",
"date_and_time": "Date",
"edit": "Modifier",
"edit_lodging": "Modifier l'hébergement",
"error_editing_lodging": "Édition d'erreurs Hébergement",
"hostel": "Auberge",
"hotel": "Hôtel",
"house": "Maison",
"lodging_added": "L'hébergement a ajouté avec succès!",
"lodging_delete_error": "Erreur de suppression de l'hébergement",
"lodging_deleted": "L'hébergement est supprimé avec succès!",
"lodging_edit_success": "L'hébergement édité avec succès!",
"lodging_type": "Type d'hébergement",
"motel": "Motel",
"new_lodging": "Nouveau logement",
"other": "Autre",
"provide_start_date": "Veuillez fournir une date de début",
"reservation_number": "Numéro de réservation",
"resort": "Station balnéaire",
"start": "Commencer",
"type": "Taper",
"villa": "Villa"
}
}
45 changes: 43 additions & 2 deletions frontend/src/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,18 @@
"primary": "Primario",
"upload": "Caricamento",
"view_attachment": "Visualizza allegato",
"of": "Di"
"of": "Di",
"city": "Città",
"delete_lodging": "Elimina alloggio",
"display_name": "Nome da visualizzare",
"location_details": "Dettagli della posizione",
"lodging": "Alloggio",
"lodging_delete_confirm": "Sei sicuro di voler eliminare questa posizione di alloggio? \nQuesta azione non può essere annullata.",
"lodging_information": "Informazioni di alloggio",
"price": "Prezzo",
"region": "Regione",
"welcome_map_info": "Avventure pubbliche su questo server",
"reservation_number": "Numero di prenotazione"
},
"home": {
"desc_1": "Scopri, pianifica ed esplora con facilità",
Expand Down Expand Up @@ -282,7 +293,8 @@
"tag": "Etichetta",
"language_selection": "Lingua",
"support": "Supporto",
"calendar": "Calendario"
"calendar": "Calendario",
"admin_panel": "Pannello di amministrazione"
},
"auth": {
"confirm_password": "Conferma password",
Expand Down Expand Up @@ -572,5 +584,34 @@
"phone": "Telefono",
"recommendation": "Raccomandazione",
"website": "Sito web"
},
"lodging": {
"apartment": "Appartamento",
"bnb": "Bed and Breakfast",
"cabin": "Cabina",
"campground": "Campeggio",
"check_in": "Check -in",
"check_out": "Guardare",
"date_and_time": "Data",
"edit": "Modificare",
"edit_lodging": "Modifica alloggio",
"error_editing_lodging": "Alloggio di modifica degli errori",
"hostel": "Ostello",
"hotel": "Hotel",
"house": "Casa",
"lodging_added": "Alloggio aggiunto con successo!",
"new_lodging": "Nuovo alloggio",
"other": "Altro",
"provide_start_date": "Si prega di fornire una data di inizio",
"reservation_number": "Numero di prenotazione",
"resort": "Ricorrere",
"start": "Inizio",
"type": "Tipo",
"villa": "Villa",
"lodging_delete_error": "Errore di eliminazione dell'alloggio",
"lodging_deleted": "Alloggio eliminato con successo!",
"lodging_edit_success": "Alloggio modificato con successo!",
"lodging_type": "Tipo di alloggio",
"motel": "Motel"
}
}
45 changes: 43 additions & 2 deletions frontend/src/locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,18 @@
"primary": "Primair",
"upload": "Uploaden",
"view_attachment": "Bijlage bekijken",
"of": "van"
"of": "van",
"city": "Stad",
"delete_lodging": "Verwijder accommodatie",
"display_name": "Weergavenaam",
"location_details": "Locatiegegevens",
"lodging": "Onderdak",
"reservation_number": "Reserveringsnummer",
"welcome_map_info": "Publieke avonturen op deze server",
"lodging_delete_confirm": "Weet u zeker dat u deze accommodatielocatie wilt verwijderen? \nDeze actie kan niet ongedaan worden gemaakt.",
"lodging_information": "Informatie overliggen",
"price": "Prijs",
"region": "Regio"
},
"home": {
"desc_1": "Ontdek, plan en verken met gemak",
Expand Down Expand Up @@ -282,7 +293,8 @@
"tag": "Label",
"language_selection": "Taal",
"support": "Steun",
"calendar": "Kalender"
"calendar": "Kalender",
"admin_panel": "Admin -paneel"
},
"auth": {
"confirm_password": "Bevestig wachtwoord",
Expand Down Expand Up @@ -572,5 +584,34 @@
"phone": "Telefoon",
"recommendation": "Aanbeveling",
"website": "Website"
},
"lodging": {
"apartment": "Appartement",
"bnb": "Bed and breakfast",
"cabin": "Cabine",
"campground": "Camping",
"check_in": "Inchecken",
"check_out": "Uitchecken",
"date_and_time": "Datum",
"edit": "Bewerking",
"edit_lodging": "Bewerkingen bewerken",
"error_editing_lodging": "Foutbewerkingsbewerkingen",
"hostel": "Hostel",
"hotel": "Hotel",
"house": "Huis",
"lodging_added": "Lodging met succes toegevoegd!",
"lodging_delete_error": "Fout bij het verwijderen van accommodatie",
"lodging_deleted": "Met succes verwijderd!",
"lodging_edit_success": "Lodging met succes bewerkt!",
"lodging_type": "Lodging type",
"motel": "Motel",
"new_lodging": "Nieuwe accommodatie",
"other": "Ander",
"provide_start_date": "Geef een startdatum op",
"reservation_number": "Reserveringsnummer",
"resort": "Toevlucht",
"start": "Begin",
"type": "Type",
"villa": "Villa"
}
}
Loading

0 comments on commit d31b952

Please sign in to comment.