Files
TREK/shared/src/i18n/fr/trip.ts
T
Maurice 45f1ff7799 feat(planner): public transit routing via Transitous (#1065)
Each day header gets a transit button (replacing the rename pencil, which
moved next to the day name in the day detail panel). It opens a route search
backed by Transitous/MOTIS — free, open data, no paid provider: from/to stop
search with the day's own places as quick picks, depart/arrive time, mode
filters (train, subway, tram, bus, ferry, cable car) and ranking by best
route, fewer transfers or less walking. Results show local times, duration,
transfers, walking time and line badges in their official colors, with a
stop-by-stop breakdown per connection.

Adding a connection saves it as a regular transport reservation — typed by
its dominant leg, timed from the itinerary's wall-clock departure/arrival
converted to station-local time (tz-lookup), with the origin, transfer stops
and destination as endpoints and the compact legs in metadata.transit. It
slots into the day timeline by time and inherits editing, deletion and
drag-reordering from the existing transport machinery; the transport detail
view renders the full itinerary. Re-saving a transit transport through the
edit modal preserves the stored itinerary while the route is unchanged.

The server proxies the Transitous API (JWT-guarded, rate-limited, identifying
User-Agent, short response cache, strict mode whitelist); TRANSIT_API_URL
lets self-hosters use their own MOTIS instance. New i18n keys in every
locale, wiki page updated.

Discussion #1065
2026-07-03 15:06:31 +02:00

74 lines
3.3 KiB
TypeScript

import type { TranslationStrings } from '../types';
const trip: TranslationStrings = {
'trip.tabs.plan': 'Plan',
'trip.tabs.transports': 'Transports',
'trip.tabs.reservations': 'Réservations',
'trip.tabs.reservationsShort': 'Résa',
'trip.tabs.packing': 'Liste de bagages',
'trip.tabs.packingShort': 'Bagages',
'trip.tabs.lists': 'Listes',
'trip.tabs.listsShort': 'Listes',
'trip.tabs.budget': 'Costs',
'trip.tabs.files': 'Fichiers',
'trip.loading': 'Chargement du voyage…',
'trip.loadingPhotos': 'Chargement des photos des lieux...',
'trip.mobilePlan': 'Plan',
'trip.mobilePlaces': 'Lieux',
'trip.toast.placeUpdated': 'Lieu mis à jour',
'trip.toast.placeAdded': 'Lieu ajouté',
'trip.toast.placeDeleted': 'Lieu supprimé',
'trip.toast.selectDay': "Veuillez d'abord sélectionner un jour",
'trip.toast.assignedToDay': 'Lieu attribué au planning',
'trip.toast.reorderError': 'Échec de la réorganisation',
'trip.toast.reservationUpdated': 'Réservation mise à jour',
'trip.toast.reservationAdded': 'Réservation ajoutée',
'trip.toast.deleted': 'Supprimé',
'trip.confirm.deletePlace': 'Voulez-vous vraiment supprimer ce lieu ?',
'trip.confirm.deletePlaces': 'Supprimer {count} lieux?',
'trip.toast.placesDeleted': '{count} lieux supprimés',
'trip.invite.linkTitle': 'Lien d\'invitation au voyage',
'trip.invite.linkHint': 'Toute personne disposant d\'un compte TREK qui ouvre ce lien rejoint le voyage en tant que membre. Régénérez le lien pour invalider l\'ancien.',
'trip.invite.create': 'Créer un lien d\'invitation',
'trip.invite.regenerate': 'Régénérer',
'trip.invite.disable': 'Désactiver',
'trip.invite.joinHeading': 'Rejoindre ce voyage',
'trip.invite.joinPrompt': 'Vous avez été invité à rejoindre « {title} ».',
'trip.invite.joinCta': 'Rejoindre le voyage',
'trip.invite.joining': 'Ajout en cours…',
'trip.invite.invalidTitle': 'Invitation indisponible',
'trip.invite.invalid': 'Ce lien d\'invitation est invalide ou a expiré.',
'trip.invite.backToDashboard': 'Retour au tableau de bord',
'transit.title': 'Transports en commun',
'transit.from': 'Départ',
'transit.to': 'Arrivée',
'transit.searchStop': 'Rechercher un arrêt ou une gare…',
'transit.swap': 'Inverser',
'transit.depart': 'Départ',
'transit.arrive': 'Arrivée',
'transit.mode.rail': 'Train',
'transit.mode.subway': 'Métro',
'transit.mode.tram': 'Tramway',
'transit.mode.bus': 'Bus',
'transit.mode.ferry': 'Ferry',
'transit.mode.cable': 'Téléphérique',
'transit.pref.best': 'Meilleur itinéraire',
'transit.pref.transfers': 'Moins de correspondances',
'transit.pref.walking': 'Moins de marche',
'transit.search': 'Rechercher',
'transit.searching': 'Recherche…',
'transit.searchError': 'Échec de la recherche d\'itinéraire. Veuillez réessayer.',
'transit.noResults': 'Aucune connexion trouvée. Essayez un autre horaire ou d\'autres filtres.',
'transit.direct': 'Direct',
'transit.transfers': '{count} correspondances',
'transit.min': '{count} min',
'transit.stops': '{count} arrêts',
'transit.walkTo': 'Marcher jusqu\'à {name}',
'transit.platform': 'Voie {track}',
'transit.adding': 'Ajout…',
'transit.addToDay': 'Ajouter au jour',
'transit.itinerary': 'Itinéraire',
'transit.attribution': 'Données d\'itinéraire via',
};
export default trip;