Files
TREK/shared/src/i18n/ca/trip.ts
T
Konstantinos Thermos 2a0ceb2687 feat(transit): let an admin route transit search through Google
Transitous has no GTFS coverage for much of Asia, so a search between two
Osaka subway stops finds nothing — the stops are not in the feed at all.
Add Google as an optional backend behind an admin setting, reusing the
install's existing Places key, and fall back to Transitous whenever no
key resolves.

Uses the Routes API rather than the legacy Directions endpoint the
request named: every other Google call here already speaks the
v1/X-Goog-Api-Key family, and Google closed the legacy endpoint to Cloud
projects created after March 2025.

Google returns walking as turn-by-turn navigation steps where MOTIS
returns one leg per walking segment, so consecutive walk steps are
coalesced into a single leg — otherwise a finely-sliced walk pushed a
real journey past the 20-leg cap and the whole itinerary was dropped.

Both responses now name the backend that answered. The fallback is
silent by design, which left an empty result ambiguous between "no data
here" and "the provider you picked never ran", and the admin panel warns
when Google is selected but no key resolves — or when only the admin's
own key is set, which serves them and nobody else.

Cost shaped the implementation, since Google bills where Transitous does
not: both field masks are cut to the cheapest SKU tier that still
answers the question, cache TTLs are longer than the Transitous path's,
and route alternatives ride along inside the already-billed request.

Addresses #1699
2026-09-07 09:01:56 +02:00

92 lines
4.2 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.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;