mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 08:30:05 +00:00
61880ce7d6
Choosing another road on a leg that already carried a via appended the new point behind the old one, so the day drove south to the first and north to the second: a zigzag matching neither the line drawn under the button nor the distance printed on it. The alternatives are computed for the two bare endpoints, so the write has to replace the leg, which is what the direct branch beside it already did. A day's vias were only loaded while road-trip mode was being looked at, and the three handlers that re-anchor them after a stop is added, removed or reordered are reachable from the place inspector in both modes. With the switch off they computed their correction from an empty list and wrote nothing, so a deleted stop left the detour on a leg nobody chose, for the traveller and for every collaborator. They are loaded whenever the addon is on now. Seam routing paced itself by sleeping after each request, and storing a result shortened the key its own effect depends on: React tore the effect down mid-sleep, the cleanup aborted it, and the next request went out immediately. Thirteen seams left at round-trip speed, the shared routing hosts refused the tail, and a refused seam changes no state so nothing ever retried it. The wait now happens before the request, against a clock that outlives the effect. The "avoidance not honoured" badge could never appear on the rail: the field behind it was published every round and never written. Only the second engine reports what it achieved against what was asked, and the rail plans in the browser, so it never saw the server's own copy — a motorway crossing read as a motorway-free drive. Two smaller ones. `trip.toast.loadError` has been called since the first commit and exists in no locale, so both call sites printed the key itself; it is written now in all 23. And the phone shell honoured the road-trip session flag while having no rail, no drive lines and no switch to leave it, so narrowing a desktop window took the trip overview away and listed every booked night twice.
93 lines
4.3 KiB
TypeScript
93 lines
4.3 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const trip: TranslationStrings = {
|
|
'trip.tabs.plan': 'Planificació',
|
|
'trip.tabs.transports': 'Transports',
|
|
'trip.tabs.reservations': 'Reserves',
|
|
'trip.tabs.reservationsShort': 'Reserves',
|
|
'trip.tabs.packing': 'Llista de maletes',
|
|
'trip.tabs.packingShort': 'Maletes',
|
|
'trip.tabs.lists': 'Llistes',
|
|
'trip.tabs.listsShort': 'Llistes',
|
|
'trip.tabs.budget': 'Despeses',
|
|
'trip.tabs.files': 'Fitxers',
|
|
'trip.loading': 'Carregant el viatge...',
|
|
'trip.loadingPhotos': 'Carregant les fotos del lloc...',
|
|
'trip.mobilePlan': 'Planificació',
|
|
'trip.mobilePlaces': 'Llocs',
|
|
'trip.toast.placeUpdated': 'Lloc actualitzat',
|
|
'trip.toast.placeAdded': 'Lloc afegit',
|
|
'trip.toast.placeDeleted': 'Lloc eliminat',
|
|
'trip.toast.selectDay': 'Selecciona un dia primer',
|
|
'trip.toast.assignedToDay': 'Lloc assignat al dia',
|
|
'trip.toast.loadError': "No s'ha pogut carregar el viatge",
|
|
'trip.toast.reorderError': "No s'ha pogut reordenar",
|
|
'trip.toast.reservationUpdated': 'Reserva actualitzada',
|
|
'trip.toast.reservationAdded': 'Reserva afegida',
|
|
'trip.toast.deleted': 'Eliminat',
|
|
'trip.confirm.deletePlace': 'Segur que vols eliminar aquest lloc?',
|
|
'trip.confirm.deletePlaces': 'Vols eliminar {count} llocs?',
|
|
'trip.toast.placesDeleted': '{count} llocs eliminats',
|
|
'trip.invite.linkTitle': "Enllaç d'invitació al viatge",
|
|
'trip.invite.linkHint':
|
|
"Qualsevol persona amb un compte de TREK que obri aquest enllaç s'unirà al viatge com a membre. Torna'l a generar si vols invalidar l'enllaç antic.",
|
|
'trip.invite.create': "Crear enllaç d'invitació",
|
|
'trip.invite.regenerate': 'Tornar a generar',
|
|
'trip.invite.disable': 'Desactivar',
|
|
'trip.invite.joinHeading': 'Unir-se a aquest viatge',
|
|
'trip.invite.joinPrompt': "T'han convidat a unir-te a «{title}».",
|
|
'trip.invite.joinCta': 'Unir-se al viatge',
|
|
'trip.invite.joining': 'Unint-se…',
|
|
'trip.invite.invalidTitle': 'Invitació no disponible',
|
|
'trip.invite.invalid': "Aquest enllaç d'invitació no és vàlid o ha caducat.",
|
|
'trip.invite.backToDashboard': 'Tornar al tauler',
|
|
'transit.title': 'Transport públic',
|
|
'transit.from': 'Des de',
|
|
'transit.to': 'Fins a',
|
|
'transit.searchStop': 'Cerca una parada o estació…',
|
|
'transit.swap': 'Intercanviar',
|
|
'transit.depart': 'Sortida',
|
|
'transit.arrive': 'Arribada',
|
|
'transit.mode.rail': 'Tren',
|
|
'transit.mode.subway': 'Metro',
|
|
'transit.mode.tram': 'Tramvia',
|
|
'transit.mode.bus': 'Autobús',
|
|
'transit.mode.ferry': 'Ferri',
|
|
'transit.mode.cable': 'Telefèric',
|
|
'transit.pref.best': 'La millor ruta',
|
|
'transit.pref.transfers': 'Menys transbords',
|
|
'transit.pref.walking': 'Caminar menys',
|
|
'transit.search': 'Cercar',
|
|
'transit.searching': 'Cercant…',
|
|
'transit.searchError': 'Ha fallat la cerca de la ruta. Torna-ho a provar.',
|
|
'transit.noResultsVia': 'No s\'ha trobat cap connexió mitjançant {provider}. Prova una altra hora o altres filtres.',
|
|
'transit.noResults': "No s'han trobat connexions. Prova amb un altre horari o filtres.",
|
|
'transit.direct': 'Directe',
|
|
'transit.transfers': '{count} transbords',
|
|
'transit.min': '{count} min',
|
|
'transit.stops': '{count} parades',
|
|
'transit.walkTo': 'Camina fins a {name}',
|
|
'transit.platform': 'Andana {track}',
|
|
'transit.adding': 'Afegint…',
|
|
'transit.addToDay': 'Afegir al dia',
|
|
'transit.itinerary': 'Itinerari',
|
|
'transit.attribution': 'Dades de ruta via',
|
|
'transport.modeManual': 'Transport manual',
|
|
'transport.modeAutomated': 'Transport automatitzat',
|
|
'transit.sectionTitle': 'Transport públic automatitzat',
|
|
'transit.changeRoute': 'Canviar de ruta',
|
|
'transit.editDetails': 'Editar detalls',
|
|
'transit.journey': 'Trajecte en transport públic',
|
|
'transit.pickDay': 'Tria un dia per cercar connexions.',
|
|
'transit.noItinerary': 'Aquesta entrada no té cap itinerari desat — utilitza «Canviar de ruta» per cercar-ne un.',
|
|
'transit.durationLabel': 'Durada',
|
|
'transit.transfersLabel': 'Transbords',
|
|
'transit.walkLabel': 'A peu',
|
|
'transit.searchHint': 'Cerca connexions reals i afegeix-les directament al dia — dades via Transitous.',
|
|
'trip.loadingSteps.pack': 'Fent les maletes...',
|
|
'trip.loadingSteps.road': 'Sortint de camí...',
|
|
'trip.loadingSteps.arrive': 'Gairebé hi som...',
|
|
'trip.toast.tripUpdated': 'Viatge actualitzat',
|
|
};
|
|
export default trip;
|