mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 02:14:05 +00:00
2a0ceb2687
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
93 lines
4.2 KiB
TypeScript
93 lines
4.2 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
||
|
||
const trip: TranslationStrings = {
|
||
'trip.tabs.plan': 'Planı',
|
||
'trip.tabs.transports': 'Ulaşım',
|
||
'trip.tabs.reservations': 'Rezervasyonlar',
|
||
'trip.tabs.reservationsShort': 'Rezerv.',
|
||
'trip.tabs.packing': 'Paket Listesi',
|
||
'trip.tabs.packingShort': 'Paket',
|
||
'trip.tabs.lists': 'Listeler',
|
||
'trip.tabs.listsShort': 'Liste',
|
||
'trip.tabs.budget': 'Maliyetler',
|
||
'trip.tabs.files': 'Dosyalar',
|
||
'trip.loading': 'Seyahat yükleniyor...',
|
||
'trip.loadingPhotos': 'Yer fotoğrafları yükleniyor...',
|
||
'trip.loadingSteps.pack': 'Bavullar toplanıyor...',
|
||
'trip.loadingSteps.road': 'Yola çıkılıyor...',
|
||
'trip.loadingSteps.arrive': 'Az kaldı...',
|
||
'trip.mobilePlan': 'Planı',
|
||
'trip.mobilePlaces': 'Yerler',
|
||
'trip.toast.placeUpdated': 'Yer güncellendi',
|
||
'trip.toast.tripUpdated': 'Gezi güncellendi',
|
||
'trip.toast.placeAdded': 'Yer eklendi',
|
||
'trip.toast.placeDeleted': 'Yer silindi',
|
||
'trip.toast.selectDay': 'Lütfen önce bir gün seçin',
|
||
'trip.toast.assignedToDay': 'Yer güne atandı',
|
||
'trip.toast.reorderError': 'Sıralama yapılamadı',
|
||
'trip.toast.reservationUpdated': 'Rezervasyon güncellendi',
|
||
'trip.toast.reservationAdded': 'Rezervasyon eklendi',
|
||
'trip.toast.deleted': 'Silindi',
|
||
'trip.confirm.deletePlace': 'Bu yeri silmek istediğinizden emin misiniz?',
|
||
'trip.confirm.deletePlaces': '{count} Yer silinsin mi?',
|
||
'trip.toast.placesDeleted': '{count} yer silindi',
|
||
'trip.invite.linkTitle': 'Seyahat davet bağlantısı',
|
||
'trip.invite.linkHint':
|
||
'TREK hesabı olan ve bu bağlantıyı açan herkes seyahate üye olarak katılır. Eski bağlantıyı geçersiz kılmak için yeniden oluşturun.',
|
||
'trip.invite.create': 'Davet bağlantısı oluştur',
|
||
'trip.invite.regenerate': 'Yeniden oluştur',
|
||
'trip.invite.disable': 'Devre dışı bırak',
|
||
'trip.invite.joinHeading': 'Bu seyahate katıl',
|
||
'trip.invite.joinPrompt': '"{title}" seyahatine katılmaya davet edildiniz.',
|
||
'trip.invite.joinCta': 'Seyahate katıl',
|
||
'trip.invite.joining': 'Katılınıyor…',
|
||
'trip.invite.invalidTitle': 'Davet kullanılamıyor',
|
||
'trip.invite.invalid': 'Bu davet bağlantısı geçersiz veya süresi dolmuş.',
|
||
'trip.invite.backToDashboard': 'Panoya dön',
|
||
'transit.title': 'Toplu taşıma',
|
||
'transit.from': 'Nereden',
|
||
'transit.to': 'Nereye',
|
||
'transit.searchStop': 'Durak veya istasyon ara…',
|
||
'transit.swap': 'Değiştir',
|
||
'transit.depart': 'Kalkış',
|
||
'transit.arrive': 'Varış',
|
||
'transit.mode.rail': 'Tren',
|
||
'transit.mode.subway': 'Metro',
|
||
'transit.mode.tram': 'Tramvay',
|
||
'transit.mode.bus': 'Otobüs',
|
||
'transit.mode.ferry': 'Vapur',
|
||
'transit.mode.cable': 'Teleferik',
|
||
'transit.pref.best': 'En iyi rota',
|
||
'transit.pref.transfers': 'Daha az aktarma',
|
||
'transit.pref.walking': 'Daha az yürüme',
|
||
'transit.search': 'Ara',
|
||
'transit.searching': 'Aranıyor…',
|
||
'transit.searchError': 'Rota araması başarısız oldu. Lütfen tekrar deneyin.',
|
||
'transit.noResultsVia': '{provider} üzerinden bağlantı bulunamadı. Farklı bir saat veya filtre deneyin.',
|
||
'transit.noResults': 'Bağlantı bulunamadı. Farklı bir saat veya filtre deneyin.',
|
||
'transit.direct': 'Aktarmasız',
|
||
'transit.transfers': '{count} aktarma',
|
||
'transit.min': '{count} dk',
|
||
'transit.stops': '{count} durak',
|
||
'transit.walkTo': '{name} durağına yürü',
|
||
'transit.platform': 'Peron {track}',
|
||
'transit.adding': 'Ekleniyor…',
|
||
'transit.addToDay': 'Güne ekle',
|
||
'transit.itinerary': 'Güzergah',
|
||
'transit.attribution': 'Rota verileri:',
|
||
'transport.modeManual': 'Manuel',
|
||
'transport.modeAutomated': 'Otomatik',
|
||
'transit.sectionTitle': 'Otomatik toplu taşıma',
|
||
'transit.changeRoute': 'Rotayı değiştir',
|
||
'transit.editDetails': 'Ayrıntıları düzenle',
|
||
'transit.journey': 'Toplu taşıma yolculuğu',
|
||
'transit.pickDay': 'Bağlantı aramak için bir gün seçin.',
|
||
'transit.noItinerary':
|
||
'Bu kaydın kayıtlı bir güzergâhı yok — bir tane aramak için "Rotayı değiştir" seçeneğini kullanın.',
|
||
'transit.durationLabel': 'Süre',
|
||
'transit.transfersLabel': 'Aktarma',
|
||
'transit.walkLabel': 'Yürüyüş',
|
||
'transit.searchHint': 'Gerçek bağlantıları ara ve doğrudan güne ekle — veriler Transitous üzerinden.',
|
||
};
|
||
export default trip;
|