feat(flight-live): follow booked flights live from keyless ADS-B feeds

A new flight-live domain polls the open feeds adsb.lol and adsb.fi (no key,
no cost; adsb.fi only on self-hosted installs, its terms are non-commercial)
for every booked flight leg in its watch window, derives phase, take-off,
landing, delay and an arrival estimate, and pushes changes as flight:live.
GET /api/trips/:tripId/flights/live, the MCP tool get_trip_flight_status,
notifications for take-off, landing and delays, and the admin switch
flight_live_enabled (FLIGHT_LIVE_ENABLED wins) come with it.
This commit is contained in:
Maurice
2026-11-13 15:29:03 +01:00
parent 3365511b10
commit 154563f34d
143 changed files with 5048 additions and 14 deletions
@@ -0,0 +1,51 @@
import { flightLiveLegSchema, tripFlightLiveResponseSchema } from './flight-live.schema';
import { describe, it, expect } from 'vitest';
const leg = {
reservation_id: 6,
leg_index: 0,
callsign: 'DLH400',
flight_number: 'LH 400',
service_date: '2026-06-11',
origin: { code: 'FRA', name: 'Frankfurt', lat: 50.03, lng: 8.57, timezone: 'Europe/Berlin' },
destination: { code: 'JFK', name: 'New York JFK', lat: 40.64, lng: -73.78, timezone: 'America/New_York' },
phase: 'scheduled',
scheduled_departure: '2026-06-11T11:50:00.000Z',
scheduled_arrival: '2026-06-11T20:35:00.000Z',
departed_at: null,
landed_at: null,
estimated_arrival: null,
departure_delay_min: null,
arrival_delay_min: null,
progress: null,
distance_total_km: 6200,
distance_remaining_km: null,
position: null,
aircraft: null,
last_seen_at: null,
fetched_at: null,
stale: false,
source: null,
};
describe('flightLiveLegSchema', () => {
it('accepts a leg that has not shown up yet', () => {
expect(flightLiveLegSchema.parse(leg).phase).toBe('scheduled');
});
it('rejects a progress outside 0 to 1', () => {
expect(flightLiveLegSchema.safeParse({ ...leg, progress: 1.2 }).success).toBe(false);
});
it('rejects an unknown phase', () => {
expect(flightLiveLegSchema.safeParse({ ...leg, phase: 'boarding' }).success).toBe(false);
});
});
describe('tripFlightLiveResponseSchema', () => {
it('carries the switch, the credit line and the legs', () => {
const parsed = tripFlightLiveResponseSchema.parse({ enabled: true, attribution: 'adsb.lol', flights: [leg] });
expect(parsed.flights).toHaveLength(1);
});
});
@@ -0,0 +1,105 @@
import { z } from 'zod';
/**
* Live state of a booked flight leg, read from open ADS-B feeds without any key
* (adsb.lol, adsb.fi). These feeds only know where an aircraft is, so everything
* an airline would publish (gate, terminal, belt, cancellation) is out of reach;
* the delays and the arrival estimate are worked out from the positions and are
* marked as estimates in the UI.
*
* Times cross the wire as ISO 8601 UTC strings. A leg is addressed by its
* reservation and its index in the leg chain (client/src/utils/flightLegs.ts),
* so a multi-leg booking gets one state per segment.
*/
/**
* - scheduled: departure is still ahead and the aircraft has not shown up.
* - taxiing: the aircraft is seen on the ground at the departure airport.
* - airborne: in the air.
* - landed: seen on the ground at, or lost low over, the destination.
* - unknown: inside the watch window but the callsign never showed up (an
* airline flying under another callsign, a codeshare, no coverage).
*/
export const flightLivePhaseSchema = z.enum(['scheduled', 'taxiing', 'airborne', 'landed', 'unknown']);
export type FlightLivePhase = z.infer<typeof flightLivePhaseSchema>;
export const flightLiveSourceSchema = z.enum(['adsb.lol', 'adsb.fi']);
export type FlightLiveSource = z.infer<typeof flightLiveSourceSchema>;
export const flightLivePositionSchema = z.object({
lat: z.number(),
lng: z.number(),
altitude_ft: z.number().nullable(),
ground_speed_kt: z.number().nullable(),
/** Degrees clockwise from north, for turning the aircraft icon. */
track_deg: z.number().nullable(),
vertical_rate_fpm: z.number().nullable(),
on_ground: z.boolean(),
});
export type FlightLivePosition = z.infer<typeof flightLivePositionSchema>;
export const flightLiveAirportSchema = z.object({
/** IATA code, e.g. "FRA". */
code: z.string(),
name: z.string().nullable(),
lat: z.number(),
lng: z.number(),
/** IANA zone the schedule is local to, e.g. "Europe/Berlin". */
timezone: z.string().nullable(),
});
export type FlightLiveAirport = z.infer<typeof flightLiveAirportSchema>;
export const flightLiveLegSchema = z.object({
reservation_id: z.number().int(),
leg_index: z.number().int().min(0),
/** ICAO callsign as transmitted, e.g. "DLH400". */
callsign: z.string(),
/** The booked flight number as the user knows it, e.g. "LH 400". */
flight_number: z.string(),
/** Local departure date of the leg, YYYY-MM-DD. */
service_date: z.string(),
/** Both ends of the leg, so the client can show local times and draw the arc. */
origin: flightLiveAirportSchema,
destination: flightLiveAirportSchema,
phase: flightLivePhaseSchema,
scheduled_departure: z.string().nullable(),
scheduled_arrival: z.string().nullable(),
/** Observed wheels-up, or null while unknown. */
departed_at: z.string().nullable(),
/** Observed touchdown, or null while unknown. */
landed_at: z.string().nullable(),
/** Arrival estimate from remaining distance and ground speed; null on the ground. */
estimated_arrival: z.string().nullable(),
/** Minutes late (negative when early) against the schedule; null until observed or estimated. */
departure_delay_min: z.number().int().nullable(),
arrival_delay_min: z.number().int().nullable(),
/** Share of the great-circle distance flown, 0 to 1. */
progress: z.number().min(0).max(1).nullable(),
distance_total_km: z.number().nullable(),
distance_remaining_km: z.number().nullable(),
position: flightLivePositionSchema.nullable(),
aircraft: z
.object({
registration: z.string().nullable(),
/** ICAO type designator, e.g. "A20N". */
type: z.string().nullable(),
})
.nullable(),
/** When the feed last heard the aircraft. */
last_seen_at: z.string().nullable(),
/** When TREK last asked the feed. */
fetched_at: z.string().nullable(),
/** True when the last position is too old to trust, e.g. over an ocean. */
stale: z.boolean(),
source: flightLiveSourceSchema.nullable(),
});
export type FlightLiveLeg = z.infer<typeof flightLiveLegSchema>;
export const tripFlightLiveResponseSchema = z.object({
/** False when the admin switched live flight data off; the client then hides it. */
enabled: z.boolean(),
/** Credit line the feed's terms ask for, shown next to live data. */
attribution: z.string().nullable(),
flights: z.array(flightLiveLegSchema),
});
export type TripFlightLiveResponse = z.infer<typeof tripFlightLiveResponseSchema>;
@@ -17,6 +17,18 @@ const ar: NotificationLocale = {
title: `حجز جديد: ${p.booking}`,
body: `${p.actor} أضاف حجز "${p.booking}" (${p.type}) إلى "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `أقلعت الرحلة ${p.flight}`,
body: `الرحلة ${p.flight} من ${p.from} إلى ${p.to} في الجو.`,
}),
flight_delayed: (p) => ({
title: `الرحلة ${p.flight} متأخرة`,
body: `الرحلة ${p.flight} من ${p.from} إلى ${p.to} متأخرة نحو ${p.delay} دقيقة عن الموعد.`,
}),
flight_landed: (p) => ({
title: `هبطت الرحلة ${p.flight}`,
body: `هبطت الرحلة ${p.flight} القادمة من ${p.from} في ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `تذكير: ${p.trip}`,
body: `رحلتك "${p.trip}" تقترب!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} دعاك إلى {trip}',
'notif.booking_change.title': 'تم تحديث الحجز',
'notif.booking_change.text': '{actor} حدّث حجزاً في {trip}',
'notif.flight_departed.title': 'أقلعت الرحلة',
'notif.flight_departed.text': 'الرحلة {flight} من {from} إلى {to} في الجو',
'notif.flight_delayed.title': 'الرحلة متأخرة',
'notif.flight_delayed.text': 'الرحلة {flight} من {from} إلى {to} متأخرة نحو {delay} دقيقة',
'notif.flight_landed.title': 'هبطت الرحلة',
'notif.flight_landed.text': 'هبطت الرحلة {flight} القادمة من {from} في {to}',
'notif.trip_reminder.title': 'تذكير بالرحلة',
'notif.trip_reminder.text': 'رحلتك {trip} تقترب!',
'notif.todo_due.title': 'مهمة مستحقة',
+3
View File
@@ -106,6 +106,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'الإشعارات',
'settings.notifyTripInvite': 'دعوات الرحلات',
'settings.notifyBookingChange': 'تغييرات الحجز',
'settings.notifyFlightDeparted': 'إقلاع الرحلات',
'settings.notifyFlightDelayed': 'تأخر الرحلات',
'settings.notifyFlightLanded': 'هبوط الرحلات',
'settings.notifyTripReminder': 'تذكيرات الرحلات',
'settings.notifyTodoDue': 'مهمة مستحقة',
'settings.notifyVacayInvite': 'دعوات دمج الإجازات',
@@ -17,6 +17,18 @@ const az: NotificationLocale = {
title: `Yeni rezervasiya: ${p.booking}`,
body: `${p.actor} “${p.trip}” səyahətinə yeni ${p.type} rezervasiyası — “${p.booking}” əlavə etdi.`,
}),
flight_departed: (p) => ({
title: `${p.flight} havaya qalxdı`,
body: `${p.from} hava limanından ${p.to} hava limanına ${p.flight} reysi havadadır.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} gecikir`,
body: `${p.from} hava limanından ${p.to} hava limanına ${p.flight} reysi təxminən ${p.delay} dəqiqə gecikir.`,
}),
flight_landed: (p) => ({
title: `${p.flight} endi`,
body: `${p.from} hava limanından gələn ${p.flight} reysi ${p.to} hava limanına endi.`,
}),
trip_reminder: (p) => ({
title: `Səyahət xatırlatması: ${p.trip}`,
body: `“${p.trip}” səyahətiniz yaxınlaşır!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} sizi {trip} səyahətinə dəvət etdi',
'notif.booking_change.title': 'Rezervasiya yeniləndi',
'notif.booking_change.text': '{actor} {trip} səyahətindəki rezervasiyanı yenilədi',
'notif.flight_departed.title': 'Reys havaya qalxdı',
'notif.flight_departed.text': '{from} hava limanından {to} hava limanına {flight} reysi havadadır',
'notif.flight_delayed.title': 'Reys gecikir',
'notif.flight_delayed.text': '{from} hava limanından {to} hava limanına {flight} reysi təxminən {delay} dəq gecikir',
'notif.flight_landed.title': 'Reys endi',
'notif.flight_landed.text': '{from} hava limanından gələn {flight} reysi {to} hava limanına endi',
'notif.trip_reminder.title': 'Səyahət xatırlatması',
'notif.trip_reminder.text': '{trip} səyahətiniz yaxınlaşır!',
'notif.todo_due.title': 'Tapşırığın son tarixi',
+3
View File
@@ -141,6 +141,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Bildirişlər',
'settings.notifyTripInvite': 'Səyahət dəvətləri',
'settings.notifyBookingChange': 'Rezervasiya dəyişiklikləri',
'settings.notifyFlightDeparted': 'Reyslərin uçuşu',
'settings.notifyFlightDelayed': 'Reyslərin gecikməsi',
'settings.notifyFlightLanded': 'Reyslərin enişi',
'settings.notifyTripReminder': 'Səyahət xatırlatmaları',
'settings.notifyTodoDue': 'Son tarixi yaxınlaşan tapşırıqlar',
'settings.notifyVacayInvite': 'Vacay birləşdirmə dəvətləri',
@@ -17,6 +17,18 @@ const br: NotificationLocale = {
title: `Nova reserva: ${p.booking}`,
body: `${p.actor} adicionou uma reserva "${p.booking}" (${p.type}) em "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} decolou`,
body: `${p.flight} de ${p.from} para ${p.to} está no ar.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} está atrasado`,
body: `${p.flight} de ${p.from} para ${p.to} está cerca de ${p.delay} minutos atrasado.`,
}),
flight_landed: (p) => ({
title: `${p.flight} pousou`,
body: `${p.flight} vindo de ${p.from} pousou em ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Lembrete: ${p.trip}`,
body: `Sua viagem "${p.trip}" está chegando!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} convidou você para {trip}',
'notif.booking_change.title': 'Reserva atualizada',
'notif.booking_change.text': '{actor} atualizou uma reserva em {trip}',
'notif.flight_departed.title': 'Voo decolou',
'notif.flight_departed.text': '{flight} de {from} para {to} está no ar',
'notif.flight_delayed.title': 'Voo atrasado',
'notif.flight_delayed.text': '{flight} de {from} para {to} está cerca de {delay} min atrasado',
'notif.flight_landed.title': 'Voo pousou',
'notif.flight_landed.text': '{flight} vindo de {from} pousou em {to}',
'notif.trip_reminder.title': 'Lembrete de viagem',
'notif.trip_reminder.text': 'Sua viagem {trip} está chegando!',
'notif.todo_due.title': 'Tarefa com vencimento',
+3
View File
@@ -113,6 +113,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Notificações',
'settings.notifyTripInvite': 'Convites de viagem',
'settings.notifyBookingChange': 'Alterações de reserva',
'settings.notifyFlightDeparted': 'Decolagens',
'settings.notifyFlightDelayed': 'Atrasos de voos',
'settings.notifyFlightLanded': 'Pousos',
'settings.notifyTripReminder': 'Lembretes de viagem',
'settings.notifyTodoDue': 'Tarefa com vencimento',
'settings.notifyVacayInvite': 'Convites de fusão Vacay',
@@ -17,6 +17,18 @@ const ca: NotificationLocale = {
title: `Reserva nova: ${p.booking}`,
body: `${p.actor} va afegir una reserva "${p.booking}" (${p.type}) a "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} ha enlairat`,
body: `${p.flight} de ${p.from} a ${p.to} és a l'aire.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} va amb retard`,
body: `${p.flight} de ${p.from} a ${p.to} porta uns ${p.delay} minuts de retard.`,
}),
flight_landed: (p) => ({
title: `${p.flight} ha aterrat`,
body: `${p.flight} des de ${p.from} ha aterrat a ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Recordatori: ${p.trip}`,
body: `El teu viatge "${p.trip}" s'apropa!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} et va convidar a {trip}',
'notif.booking_change.title': 'Reserva actualitzada',
'notif.booking_change.text': '{actor} va actualitzar una reserva a {trip}',
'notif.flight_departed.title': 'Vol enlairat',
'notif.flight_departed.text': "{flight} de {from} a {to} és a l'aire",
'notif.flight_delayed.title': 'Vol amb retard',
'notif.flight_delayed.text': '{flight} de {from} a {to} porta uns {delay} min de retard',
'notif.flight_landed.title': 'Vol aterrat',
'notif.flight_landed.text': '{flight} des de {from} ha aterrat a {to}',
'notif.trip_reminder.title': 'Recordatori del viatge',
'notif.trip_reminder.text': "El teu viatge {trip} s'apropa!",
'notif.todo_due.title': 'Tasca pendent',
+3
View File
@@ -94,6 +94,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Notificacions',
'settings.notifyTripInvite': 'Invitacions de viatge',
'settings.notifyBookingChange': 'Canvis en reserves',
'settings.notifyFlightDeparted': 'Enlairaments',
'settings.notifyFlightDelayed': 'Retards de vols',
'settings.notifyFlightLanded': 'Aterratges',
'settings.notifyTripReminder': 'Recordatoris de viatge',
'settings.notifyTodoDue': 'Tasca propera',
'settings.notifyVacayInvite': 'Invitacions de fusió Vacay',
@@ -17,6 +17,18 @@ const cs: NotificationLocale = {
title: `Nová rezervace: ${p.booking}`,
body: `${p.actor} přidal rezervaci "${p.booking}" (${p.type}) k "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} odletěl`,
body: `${p.flight} z ${p.from} do ${p.to} je ve vzduchu.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} má zpoždění`,
body: `${p.flight} z ${p.from} do ${p.to} má zhruba ${p.delay} minut zpoždění.`,
}),
flight_landed: (p) => ({
title: `${p.flight} přistál`,
body: `${p.flight} z ${p.from} přistál v ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Připomínka výletu: ${p.trip}`,
body: `Váš výlet "${p.trip}" se blíží!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} vás pozval na {trip}',
'notif.booking_change.title': 'Rezervace aktualizována',
'notif.booking_change.text': '{actor} aktualizoval rezervaci v {trip}',
'notif.flight_departed.title': 'Let odletěl',
'notif.flight_departed.text': '{flight} z {from} do {to} je ve vzduchu',
'notif.flight_delayed.title': 'Let má zpoždění',
'notif.flight_delayed.text': '{flight} z {from} do {to} má zhruba {delay} min zpoždění',
'notif.flight_landed.title': 'Let přistál',
'notif.flight_landed.text': '{flight} z {from} přistál v {to}',
'notif.trip_reminder.title': 'Připomínka výletu',
'notif.trip_reminder.text': 'Váš výlet {trip} se blíží!',
'notif.todo_due.title': 'Úkol se blíží',
+3
View File
@@ -108,6 +108,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Oznámení',
'settings.notifyTripInvite': 'Pozvánky na cesty',
'settings.notifyBookingChange': 'Změny rezervací',
'settings.notifyFlightDeparted': 'Odlety',
'settings.notifyFlightDelayed': 'Zpoždění letů',
'settings.notifyFlightLanded': 'Přistání',
'settings.notifyTripReminder': 'Připomínky cest',
'settings.notifyTodoDue': 'Úkol se blíží',
'settings.notifyVacayInvite': 'Pozvánky k propojení Vacay',
@@ -17,6 +17,18 @@ const de: NotificationLocale = {
title: `Neue Buchung: ${p.booking}`,
body: `${p.actor} hat eine neue Buchung "${p.booking}" (${p.type}) zu "${p.trip}" hinzugefügt.`,
}),
flight_departed: (p) => ({
title: `${p.flight} ist gestartet`,
body: `${p.flight} von ${p.from} nach ${p.to} ist in der Luft.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} hat Verspätung`,
body: `${p.flight} von ${p.from} nach ${p.to} liegt etwa ${p.delay} Minuten hinter dem Flugplan.`,
}),
flight_landed: (p) => ({
title: `${p.flight} ist gelandet`,
body: `${p.flight} aus ${p.from} ist in ${p.to} gelandet.`,
}),
trip_reminder: (p) => ({
title: `Reiseerinnerung: ${p.trip}`,
body: `Deine Reise "${p.trip}" steht bald an!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} hat dich zu {trip} eingeladen',
'notif.booking_change.title': 'Buchung aktualisiert',
'notif.booking_change.text': '{actor} hat eine Buchung in {trip} aktualisiert',
'notif.flight_departed.title': 'Flug gestartet',
'notif.flight_departed.text': '{flight} von {from} nach {to} ist in der Luft',
'notif.flight_delayed.title': 'Flug verspätet',
'notif.flight_delayed.text': '{flight} von {from} nach {to} hat etwa {delay} Min. Verspätung',
'notif.flight_landed.title': 'Flug gelandet',
'notif.flight_landed.text': '{flight} aus {from} ist in {to} gelandet',
'notif.trip_reminder.title': 'Reiseerinnerung',
'notif.trip_reminder.text': 'Deine Reise {trip} steht bald an!',
'notif.todo_due.title': 'Aufgabe fällig',
+3
View File
@@ -113,6 +113,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Mitteilungen',
'settings.notifyTripInvite': 'Trip-Einladungen',
'settings.notifyBookingChange': 'Buchungsänderungen',
'settings.notifyFlightDeparted': 'Abflüge',
'settings.notifyFlightDelayed': 'Flugverspätungen',
'settings.notifyFlightLanded': 'Landungen',
'settings.notifyTripReminder': 'Trip-Erinnerungen',
'settings.notifyTodoDue': 'Aufgabe bald fällig',
'settings.notifyVacayInvite': 'Vacay Fusion-Einladungen',
@@ -17,6 +17,18 @@ const en: NotificationLocale = {
title: `New booking: ${p.booking}`,
body: `${p.actor} added a new ${p.type} "${p.booking}" to "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} departed`,
body: `${p.flight} from ${p.from} to ${p.to} is in the air.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} is running late`,
body: `${p.flight} from ${p.from} to ${p.to} is running about ${p.delay} minutes behind schedule.`,
}),
flight_landed: (p) => ({
title: `${p.flight} has landed`,
body: `${p.flight} from ${p.from} has landed in ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Trip reminder: ${p.trip}`,
body: `Your trip "${p.trip}" is coming up soon!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} invited you to {trip}',
'notif.booking_change.title': 'Booking Updated',
'notif.booking_change.text': '{actor} updated a booking in {trip}',
'notif.flight_departed.title': 'Flight departed',
'notif.flight_departed.text': '{flight} from {from} to {to} is in the air',
'notif.flight_delayed.title': 'Flight running late',
'notif.flight_delayed.text': '{flight} from {from} to {to} is about {delay} min behind schedule',
'notif.flight_landed.title': 'Flight landed',
'notif.flight_landed.text': '{flight} from {from} has landed in {to}',
'notif.trip_reminder.title': 'Trip Reminder',
'notif.trip_reminder.text': 'Your trip {trip} is coming up soon!',
'notif.todo_due.title': 'To-do due',
+3
View File
@@ -122,6 +122,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Notifications',
'settings.notifyTripInvite': 'Trip invitations',
'settings.notifyBookingChange': 'Booking changes',
'settings.notifyFlightDeparted': 'Flight departures',
'settings.notifyFlightDelayed': 'Flight delays',
'settings.notifyFlightLanded': 'Flight landings',
'settings.notifyTripReminder': 'Trip reminders',
'settings.notifyTodoDue': 'Todo due soon',
'settings.notifyVacayInvite': 'Vacay fusion invitations',
@@ -17,6 +17,18 @@ const es: NotificationLocale = {
title: `Nueva reserva: ${p.booking}`,
body: `${p.actor} añadió una reserva "${p.booking}" (${p.type}) a "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} ha despegado`,
body: `${p.flight} de ${p.from} a ${p.to} está en el aire.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} va con retraso`,
body: `${p.flight} de ${p.from} a ${p.to} lleva unos ${p.delay} minutos de retraso.`,
}),
flight_landed: (p) => ({
title: `${p.flight} ha aterrizado`,
body: `${p.flight} desde ${p.from} ha aterrizado en ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Recordatorio: ${p.trip}`,
body: `¡Tu viaje "${p.trip}" se acerca!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} te invitó a {trip}',
'notif.booking_change.title': 'Reserva actualizada',
'notif.booking_change.text': '{actor} actualizó una reserva en {trip}',
'notif.flight_departed.title': 'Vuelo despegado',
'notif.flight_departed.text': '{flight} de {from} a {to} está en el aire',
'notif.flight_delayed.title': 'Vuelo con retraso',
'notif.flight_delayed.text': '{flight} de {from} a {to} lleva unos {delay} min de retraso',
'notif.flight_landed.title': 'Vuelo aterrizado',
'notif.flight_landed.text': '{flight} desde {from} ha aterrizado en {to}',
'notif.trip_reminder.title': 'Recordatorio de viaje',
'notif.trip_reminder.text': '¡Tu viaje {trip} se acerca!',
'notif.todo_due.title': 'Tarea pendiente',
+3
View File
@@ -112,6 +112,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Notificaciones',
'settings.notifyTripInvite': 'Invitaciones de viaje',
'settings.notifyBookingChange': 'Cambios en reservas',
'settings.notifyFlightDeparted': 'Despegues',
'settings.notifyFlightDelayed': 'Retrasos de vuelos',
'settings.notifyFlightLanded': 'Aterrizajes',
'settings.notifyTripReminder': 'Recordatorios de viaje',
'settings.notifyTodoDue': 'Tarea próxima',
'settings.notifyVacayInvite': 'Invitaciones de fusión Vacay',
@@ -18,6 +18,18 @@ const et: NotificationLocale = {
title: `Uus broneering: ${p.booking}`,
body: `${p.actor} lisas reisile „${p.trip}” uue broneeringu „${p.booking}” (tüüp: ${reservations[`reservations.type.${p.type}`] ?? (p.type === 'booking' ? 'broneering' : p.type)}).`,
}),
flight_departed: (p) => ({
title: `${p.flight} tõusis õhku`,
body: `Lend ${p.flight} lennujaamast ${p.from} lennujaama ${p.to} on õhus.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} hilineb`,
body: `Lend ${p.flight} lennujaamast ${p.from} lennujaama ${p.to} hilineb umbes ${p.delay} minutit.`,
}),
flight_landed: (p) => ({
title: `${p.flight} maandus`,
body: `Lend ${p.flight} lennujaamast ${p.from} maandus lennujaamas ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Reisi meeldetuletus: ${p.trip}`,
body: `Sinu reis „${p.trip}” algab peagi!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} kutsus sind reisile {trip}',
'notif.booking_change.title': 'Broneering uuendatud',
'notif.booking_change.text': '{actor} uuendas reisi {trip} broneeringut',
'notif.flight_departed.title': 'Lend tõusis õhku',
'notif.flight_departed.text': 'Lend {flight} lennujaamast {from} lennujaama {to} on õhus',
'notif.flight_delayed.title': 'Lend hilineb',
'notif.flight_delayed.text': 'Lend {flight} lennujaamast {from} lennujaama {to} hilineb umbes {delay} min',
'notif.flight_landed.title': 'Lend maandus',
'notif.flight_landed.text': 'Lend {flight} lennujaamast {from} maandus lennujaamas {to}',
'notif.trip_reminder.title': 'Reisimeeldetuletus',
'notif.trip_reminder.text': 'Sinu reis {trip} algab peagi!',
'notif.todo_due.title': 'Ülesande tähtaeg',
+3
View File
@@ -127,6 +127,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Teavitused',
'settings.notifyTripInvite': 'Reisikutsed',
'settings.notifyBookingChange': 'Broneeringute muudatused',
'settings.notifyFlightDeparted': 'Väljalennud',
'settings.notifyFlightDelayed': 'Lendude hilinemised',
'settings.notifyFlightLanded': 'Maandumised',
'settings.notifyTripReminder': 'Reisimeeldetuletused',
'settings.notifyTodoDue': 'Ülesande tähtaeg läheneb',
'settings.notifyVacayInvite': 'Vacay ühendamiskutsed',
@@ -24,6 +24,9 @@ export interface PasswordResetStrings {
export type NotificationEventKey =
| 'trip_invite'
| 'booking_change'
| 'flight_departed'
| 'flight_delayed'
| 'flight_landed'
| 'trip_reminder'
| 'todo_due'
| 'vacay_invite'
@@ -17,6 +17,18 @@ const fr: NotificationLocale = {
title: `Nouvelle réservation : ${p.booking}`,
body: `${p.actor} a ajouté une réservation "${p.booking}" (${p.type}) à "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} a décollé`,
body: `${p.flight} de ${p.from} à ${p.to} est en vol.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} est en retard`,
body: `${p.flight} de ${p.from} à ${p.to} a environ ${p.delay} minutes de retard.`,
}),
flight_landed: (p) => ({
title: `${p.flight} a atterri`,
body: `${p.flight} en provenance de ${p.from} a atterri à ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Rappel de voyage : ${p.trip}`,
body: `Votre voyage "${p.trip}" approche !`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} vous a invité à {trip}',
'notif.booking_change.title': 'Réservation mise à jour',
'notif.booking_change.text': '{actor} a mis à jour une réservation dans {trip}',
'notif.flight_departed.title': 'Vol parti',
'notif.flight_departed.text': '{flight} de {from} à {to} est en vol',
'notif.flight_delayed.title': 'Vol en retard',
'notif.flight_delayed.text': '{flight} de {from} à {to} a environ {delay} min de retard',
'notif.flight_landed.title': 'Vol arrivé',
'notif.flight_landed.text': '{flight} en provenance de {from} a atterri à {to}',
'notif.trip_reminder.title': 'Rappel de voyage',
'notif.trip_reminder.text': 'Votre voyage {trip} approche !',
'notif.todo_due.title': 'Tâche à échéance',
+3
View File
@@ -114,6 +114,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Notifications', // same-as-en
'settings.notifyTripInvite': 'Invitations de voyage',
'settings.notifyBookingChange': 'Modifications de réservation',
'settings.notifyFlightDeparted': 'Décollages',
'settings.notifyFlightDelayed': 'Retards de vol',
'settings.notifyFlightLanded': 'Atterrissages',
'settings.notifyTripReminder': 'Rappels de voyage',
'settings.notifyTodoDue': 'Tâche à échéance',
'settings.notifyVacayInvite': 'Invitations de fusion Vacay',
@@ -17,6 +17,18 @@ const gr: NotificationLocale = {
title: `Νέα κράτηση: ${p.booking}`,
body: `Ο/Η ${p.actor} πρόσθεσε μια νέα κράτηση "${p.booking}" (${p.type}) στο "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `Η πτήση ${p.flight} αναχώρησε`,
body: `Η πτήση ${p.flight} από ${p.from} προς ${p.to} είναι στον αέρα.`,
}),
flight_delayed: (p) => ({
title: `Η πτήση ${p.flight} έχει καθυστέρηση`,
body: `Η πτήση ${p.flight} από ${p.from} προς ${p.to} έχει καθυστέρηση περίπου ${p.delay} λεπτών.`,
}),
flight_landed: (p) => ({
title: `Η πτήση ${p.flight} προσγειώθηκε`,
body: `Η πτήση ${p.flight} από ${p.from} προσγειώθηκε στο ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Υπενθύμιση ταξιδιού: ${p.trip}`,
body: `Το ταξίδι σας "${p.trip}" πλησιάζει!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': 'Ο/Η {actor} σας προσκάλεσε στο {trip}',
'notif.booking_change.title': 'Η Κράτηση Ενημερώθηκε',
'notif.booking_change.text': 'Ο/Η {actor} ενημέρωσε μια κράτηση στο {trip}',
'notif.flight_departed.title': 'Η πτήση αναχώρησε',
'notif.flight_departed.text': 'Η πτήση {flight} από {from} προς {to} είναι στον αέρα',
'notif.flight_delayed.title': 'Καθυστέρηση πτήσης',
'notif.flight_delayed.text': 'Η πτήση {flight} από {from} προς {to} έχει καθυστέρηση περίπου {delay} λεπτών',
'notif.flight_landed.title': 'Η πτήση προσγειώθηκε',
'notif.flight_landed.text': 'Η πτήση {flight} από {from} προσγειώθηκε στο {to}',
'notif.trip_reminder.title': 'Υπενθύμιση Ταξιδιού',
'notif.trip_reminder.text': 'Το ταξίδι σας {trip} πλησιάζει!',
'notif.todo_due.title': 'Εργασία προς λήξη',
+3
View File
@@ -119,6 +119,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Ειδοποιήσεις',
'settings.notifyTripInvite': 'Προσκλήσεις ταξιδιού',
'settings.notifyBookingChange': 'Αλλαγές κρατήσεων',
'settings.notifyFlightDeparted': 'Αναχωρήσεις πτήσεων',
'settings.notifyFlightDelayed': 'Καθυστερήσεις πτήσεων',
'settings.notifyFlightLanded': 'Προσγειώσεις πτήσεων',
'settings.notifyTripReminder': 'Υπενθυμίσεις ταξιδιού',
'settings.notifyTodoDue': 'Εκκρεμότητα λήγει σύντομα',
'settings.notifyVacayInvite': 'Προσκλήσεις Vacay fusion',
@@ -17,6 +17,18 @@ const he: NotificationLocale = {
title: `הזמנה חדשה: ${p.booking}`,
body: `${p.actor} הוסיף/ה ${p.type} חדש/ה "${p.booking}" אל "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `טיסה ${p.flight} המריאה`,
body: `טיסה ${p.flight} מ-${p.from} ל-${p.to} באוויר.`,
}),
flight_delayed: (p) => ({
title: `טיסה ${p.flight} מתעכבת`,
body: `טיסה ${p.flight} מ-${p.from} ל-${p.to} מאחרת בכ-${p.delay} דקות.`,
}),
flight_landed: (p) => ({
title: `טיסה ${p.flight} נחתה`,
body: `טיסה ${p.flight} מ-${p.from} נחתה ב-${p.to}.`,
}),
trip_reminder: (p) => ({
title: `תזכורת לטיול: ${p.trip}`,
body: `הטיול "${p.trip}" מתקרב!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} הזמין/ה אתכם אל {trip}',
'notif.booking_change.title': 'הזמנה עודכנה',
'notif.booking_change.text': '{actor} עדכן/ה הזמנה ב-{trip}',
'notif.flight_departed.title': 'הטיסה המריאה',
'notif.flight_departed.text': 'טיסה {flight} מ-{from} ל-{to} באוויר',
'notif.flight_delayed.title': 'הטיסה מתעכבת',
'notif.flight_delayed.text': 'טיסה {flight} מ-{from} ל-{to} מאחרת בכ-{delay} דקות',
'notif.flight_landed.title': 'הטיסה נחתה',
'notif.flight_landed.text': 'טיסה {flight} מ-{from} נחתה ב-{to}',
'notif.trip_reminder.title': 'תזכורת לטיול',
'notif.trip_reminder.text': 'הטיול {trip} מתקרב!',
'notif.todo_due.title': 'משימה לביצוע',
+3
View File
@@ -120,6 +120,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'התראות',
'settings.notifyTripInvite': 'הזמנות לטיולים',
'settings.notifyBookingChange': 'שינויים בהזמנות',
'settings.notifyFlightDeparted': 'המראות',
'settings.notifyFlightDelayed': 'עיכובי טיסות',
'settings.notifyFlightLanded': 'נחיתות',
'settings.notifyTripReminder': 'תזכורות לטיולים',
'settings.notifyTodoDue': 'משימות שמועדן מתקרב',
'settings.notifyVacayInvite': 'הזמנות לאיחוד חופשות',
@@ -17,6 +17,18 @@ const hu: NotificationLocale = {
title: `Új foglalás: ${p.booking}`,
body: `${p.actor} hozzáadott egy "${p.booking}" (${p.type}) foglalást a(z) "${p.trip}" utazáshoz.`,
}),
flight_departed: (p) => ({
title: `A(z) ${p.flight} felszállt`,
body: `A(z) ${p.flight} járat ${p.from} és ${p.to} között a levegőben van.`,
}),
flight_delayed: (p) => ({
title: `A(z) ${p.flight} késik`,
body: `A(z) ${p.flight} járat ${p.from} és ${p.to} között körülbelül ${p.delay} percet késik.`,
}),
flight_landed: (p) => ({
title: `A(z) ${p.flight} leszállt`,
body: `A(z) ${p.flight} járat ${p.from} felől leszállt itt: ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Utazás emlékeztető: ${p.trip}`,
body: `A(z) "${p.trip}" utazás hamarosan kezdődik!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} meghívott a(z) {trip} utazásra',
'notif.booking_change.title': 'Foglalás frissítve',
'notif.booking_change.text': '{actor} frissített egy foglalást a(z) {trip} utazásban',
'notif.flight_departed.title': 'Járat felszállt',
'notif.flight_departed.text': 'A(z) {flight} járat {from} és {to} között a levegőben van',
'notif.flight_delayed.title': 'Járat késik',
'notif.flight_delayed.text': 'A(z) {flight} járat {from} és {to} között körülbelül {delay} percet késik',
'notif.flight_landed.title': 'Járat leszállt',
'notif.flight_landed.text': 'A(z) {flight} járat {from} felől leszállt itt: {to}',
'notif.trip_reminder.title': 'Utazás emlékeztető',
'notif.trip_reminder.text': 'A(z) {trip} utazás hamarosan kezdődik!',
'notif.todo_due.title': 'Teendő esedékes',
+3
View File
@@ -112,6 +112,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Értesítések',
'settings.notifyTripInvite': 'Utazási meghívók',
'settings.notifyBookingChange': 'Foglalási változások',
'settings.notifyFlightDeparted': 'Felszállások',
'settings.notifyFlightDelayed': 'Járatkésések',
'settings.notifyFlightLanded': 'Leszállások',
'settings.notifyTripReminder': 'Utazási emlékeztetők',
'settings.notifyTodoDue': 'Teendő esedékes',
'settings.notifyVacayInvite': 'Vacay összevonási meghívók',
@@ -16,6 +16,18 @@ const id: NotificationLocale = {
title: `Pemesanan baru: ${p.booking}`,
body: `${p.actor} menambahkan "${p.booking}" (${p.type}) baru ke "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} telah lepas landas`,
body: `${p.flight} dari ${p.from} ke ${p.to} sedang mengudara.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} terlambat`,
body: `${p.flight} dari ${p.from} ke ${p.to} terlambat sekitar ${p.delay} menit dari jadwal.`,
}),
flight_landed: (p) => ({
title: `${p.flight} telah mendarat`,
body: `${p.flight} dari ${p.from} telah mendarat di ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Pengingat perjalanan: ${p.trip}`,
body: `Perjalanan Anda "${p.trip}" akan segera tiba!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} mengundangmu ke {trip}',
'notif.booking_change.title': 'Pemesanan Diperbarui',
'notif.booking_change.text': '{actor} memperbarui pemesanan di {trip}',
'notif.flight_departed.title': 'Penerbangan lepas landas',
'notif.flight_departed.text': '{flight} dari {from} ke {to} sedang mengudara',
'notif.flight_delayed.title': 'Penerbangan terlambat',
'notif.flight_delayed.text': '{flight} dari {from} ke {to} terlambat sekitar {delay} menit',
'notif.flight_landed.title': 'Penerbangan mendarat',
'notif.flight_landed.text': '{flight} dari {from} telah mendarat di {to}',
'notif.trip_reminder.title': 'Pengingat Perjalanan',
'notif.trip_reminder.text': 'Perjalananmu {trip} akan segera dimulai!',
'notif.todo_due.title': 'Tugas jatuh tempo',
+3
View File
@@ -109,6 +109,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Notifikasi',
'settings.notifyTripInvite': 'Undangan perjalanan',
'settings.notifyBookingChange': 'Perubahan pemesanan',
'settings.notifyFlightDeparted': 'Penerbangan lepas landas',
'settings.notifyFlightDelayed': 'Penerbangan terlambat',
'settings.notifyFlightLanded': 'Penerbangan mendarat',
'settings.notifyTripReminder': 'Pengingat perjalanan',
'settings.notifyTodoDue': 'Tugas jatuh tempo',
'settings.notifyVacayInvite': 'Undangan Vacay fusion',
@@ -17,6 +17,18 @@ const it: NotificationLocale = {
title: `Nuova prenotazione: ${p.booking}`,
body: `${p.actor} ha aggiunto una prenotazione "${p.booking}" (${p.type}) a "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} è decollato`,
body: `${p.flight} da ${p.from} a ${p.to} è in volo.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} è in ritardo`,
body: `${p.flight} da ${p.from} a ${p.to} ha circa ${p.delay} minuti di ritardo.`,
}),
flight_landed: (p) => ({
title: `${p.flight} è atterrato`,
body: `${p.flight} da ${p.from} è atterrato a ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Promemoria viaggio: ${p.trip}`,
body: `Il tuo viaggio "${p.trip}" si avvicina!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} ti ha invitato a {trip}',
'notif.booking_change.title': 'Prenotazione aggiornata',
'notif.booking_change.text': '{actor} ha aggiornato una prenotazione in {trip}',
'notif.flight_departed.title': 'Volo decollato',
'notif.flight_departed.text': '{flight} da {from} a {to} è in volo',
'notif.flight_delayed.title': 'Volo in ritardo',
'notif.flight_delayed.text': '{flight} da {from} a {to} ha circa {delay} min di ritardo',
'notif.flight_landed.title': 'Volo atterrato',
'notif.flight_landed.text': '{flight} da {from} è atterrato a {to}',
'notif.trip_reminder.title': 'Promemoria viaggio',
'notif.trip_reminder.text': 'Il tuo viaggio {trip} si avvicina!',
'notif.todo_due.title': 'Attività in scadenza',
+3
View File
@@ -111,6 +111,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Notifiche',
'settings.notifyTripInvite': 'Inviti di viaggio',
'settings.notifyBookingChange': 'Modifiche alle prenotazioni',
'settings.notifyFlightDeparted': 'Decolli',
'settings.notifyFlightDelayed': 'Ritardi dei voli',
'settings.notifyFlightLanded': 'Atterraggi',
'settings.notifyTripReminder': 'Promemoria di viaggio',
'settings.notifyTodoDue': 'Attività in scadenza',
'settings.notifyVacayInvite': 'Inviti fusione Vacay',
@@ -16,6 +16,18 @@ const ja: NotificationLocale = {
title: `新しい予約:${p.booking}`,
body: `${p.actor}が「${p.trip}」に「${p.booking}」(${p.type})を追加しました。`,
}),
flight_departed: (p) => ({
title: `${p.flight}が出発しました`,
body: `${p.from}発${p.to}行きの${p.flight}は飛行中です。`,
}),
flight_delayed: (p) => ({
title: `${p.flight}に遅れ`,
body: `${p.from}発${p.to}行きの${p.flight}は予定より約${p.delay}分遅れています。`,
}),
flight_landed: (p) => ({
title: `${p.flight}が着陸しました`,
body: `${p.from}発の${p.flight}が${p.to}に着陸しました。`,
}),
trip_reminder: (p) => ({
title: `旅行リマインダー:${p.trip}`,
body: `「${p.trip}」の旅行が近づいています!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor}が「{trip}」に招待しました',
'notif.booking_change.title': '予約が更新されました',
'notif.booking_change.text': '{actor}が「{trip}」の予約を更新しました',
'notif.flight_departed.title': 'フライトが出発しました',
'notif.flight_departed.text': '{from}発{to}行きの{flight}は飛行中です',
'notif.flight_delayed.title': 'フライトの遅れ',
'notif.flight_delayed.text': '{from}発{to}行きの{flight}は約{delay}分遅れています',
'notif.flight_landed.title': 'フライトが着陸しました',
'notif.flight_landed.text': '{from}発の{flight}が{to}に着陸しました',
'notif.trip_reminder.title': '旅行リマインド',
'notif.trip_reminder.text': '旅行「{trip}」がまもなく始まります!',
'notif.todo_due.title': 'ToDoの期限',
+3
View File
@@ -109,6 +109,9 @@ const settings: TranslationStrings = {
'settings.notifications': '通知',
'settings.notifyTripInvite': '旅行の招待',
'settings.notifyBookingChange': '予約の変更',
'settings.notifyFlightDeparted': 'フライトの出発',
'settings.notifyFlightDelayed': 'フライトの遅延',
'settings.notifyFlightLanded': 'フライトの着陸',
'settings.notifyTripReminder': '旅行リマインダー',
'settings.notifyTodoDue': 'ToDoの期限',
'settings.notifyVacayInvite': 'Vacay fusion の招待',
@@ -16,6 +16,18 @@ const ko: NotificationLocale = {
title: `새 예약: ${p.booking}`,
body: `${p.actor}이(가) "${p.trip}"에 "${p.booking}" (${p.type}) 예약을 추가했습니다.`,
}),
flight_departed: (p) => ({
title: `${p.flight} 출발`,
body: `${p.from}발 ${p.to}행 ${p.flight}편이 비행 중입니다.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} 지연`,
body: `${p.from}발 ${p.to}행 ${p.flight}편이 예정보다 약 ${p.delay}분 늦어지고 있습니다.`,
}),
flight_landed: (p) => ({
title: `${p.flight} 착륙`,
body: `${p.from}발 ${p.flight}편이 ${p.to}에 착륙했습니다.`,
}),
trip_reminder: (p) => ({
title: `여행 알림: ${p.trip}`,
body: `"${p.trip}" 여행이 곧 시작됩니다!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor}이(가) {trip}에 초대했습니다',
'notif.booking_change.title': '예약 업데이트됨',
'notif.booking_change.text': '{actor}이(가) {trip}의 예약을 업데이트했습니다',
'notif.flight_departed.title': '항공편 출발',
'notif.flight_departed.text': '{from}발 {to}행 {flight}편이 비행 중입니다',
'notif.flight_delayed.title': '항공편 지연',
'notif.flight_delayed.text': '{from}발 {to}행 {flight}편이 약 {delay}분 지연되고 있습니다',
'notif.flight_landed.title': '항공편 착륙',
'notif.flight_landed.text': '{from}발 {flight}편이 {to}에 착륙했습니다',
'notif.trip_reminder.title': '여행 리마인더',
'notif.trip_reminder.text': '여행 {trip}이(가) 곧 시작됩니다!',
'notif.todo_due.title': '할 일 마감',
+3
View File
@@ -110,6 +110,9 @@ const settings: TranslationStrings = {
'settings.notifications': '알림',
'settings.notifyTripInvite': '여행 초대',
'settings.notifyBookingChange': '예약 변경',
'settings.notifyFlightDeparted': '항공편 출발',
'settings.notifyFlightDelayed': '항공편 지연',
'settings.notifyFlightLanded': '항공편 착륙',
'settings.notifyTripReminder': '여행 리마인더',
'settings.notifyTodoDue': '할 일 마감 임박',
'settings.notifyVacayInvite': 'Vacay 퓨전 초대',
@@ -17,6 +17,18 @@ const nl: NotificationLocale = {
title: `Nieuwe boeking: ${p.booking}`,
body: `${p.actor} heeft een boeking "${p.booking}" (${p.type}) toegevoegd aan "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} is vertrokken`,
body: `${p.flight} van ${p.from} naar ${p.to} is in de lucht.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} heeft vertraging`,
body: `${p.flight} van ${p.from} naar ${p.to} loopt ongeveer ${p.delay} minuten achter op schema.`,
}),
flight_landed: (p) => ({
title: `${p.flight} is geland`,
body: `${p.flight} uit ${p.from} is geland in ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Reisherinnering: ${p.trip}`,
body: `Je reis "${p.trip}" komt eraan!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} heeft je uitgenodigd voor {trip}',
'notif.booking_change.title': 'Boeking bijgewerkt',
'notif.booking_change.text': '{actor} heeft een boeking bijgewerkt in {trip}',
'notif.flight_departed.title': 'Vlucht vertrokken',
'notif.flight_departed.text': '{flight} van {from} naar {to} is in de lucht',
'notif.flight_delayed.title': 'Vlucht vertraagd',
'notif.flight_delayed.text': '{flight} van {from} naar {to} heeft ongeveer {delay} min vertraging',
'notif.flight_landed.title': 'Vlucht geland',
'notif.flight_landed.text': '{flight} uit {from} is geland in {to}',
'notif.trip_reminder.title': 'Reisherinnering',
'notif.trip_reminder.text': 'Je reis {trip} komt eraan!',
'notif.todo_due.title': 'Taak verloopt',
+3
View File
@@ -111,6 +111,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Meldingen',
'settings.notifyTripInvite': 'Reisuitnodigingen',
'settings.notifyBookingChange': 'Boekingswijzigingen',
'settings.notifyFlightDeparted': 'Vertrekken',
'settings.notifyFlightDelayed': 'Vluchtvertragingen',
'settings.notifyFlightLanded': 'Landingen',
'settings.notifyTripReminder': 'Reisherinneringen',
'settings.notifyTodoDue': 'Taak verloopt',
'settings.notifyVacayInvite': 'Vacay-fusieuitnodigingen',
@@ -17,6 +17,18 @@ const pl: NotificationLocale = {
title: `Nowa rezerwacja: ${p.booking}`,
body: `${p.actor} dodał rezerwację "${p.booking}" (${p.type}) do "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} wystartował`,
body: `${p.flight} z ${p.from} do ${p.to} jest w powietrzu.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} jest opóźniony`,
body: `${p.flight} z ${p.from} do ${p.to} ma około ${p.delay} minut opóźnienia.`,
}),
flight_landed: (p) => ({
title: `${p.flight} wylądował`,
body: `${p.flight} z ${p.from} wylądował w ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Przypomnienie o podróży: ${p.trip}`,
body: `Twoja podróż "${p.trip}" zbliża się!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} zaprosił Cię do {trip}',
'notif.booking_change.title': 'Rezerwacja zaktualizowana',
'notif.booking_change.text': '{actor} zaktualizował rezerwację w {trip}',
'notif.flight_departed.title': 'Lot wystartował',
'notif.flight_departed.text': '{flight} z {from} do {to} jest w powietrzu',
'notif.flight_delayed.title': 'Lot opóźniony',
'notif.flight_delayed.text': '{flight} z {from} do {to} ma około {delay} min opóźnienia',
'notif.flight_landed.title': 'Lot wylądował',
'notif.flight_landed.text': '{flight} z {from} wylądował w {to}',
'notif.trip_reminder.title': 'Przypomnienie o podróży',
'notif.trip_reminder.text': 'Twoja podróż {trip} zbliża się!',
'notif.todo_due.title': 'Zadanie z terminem',
+3
View File
@@ -109,6 +109,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Powiadomienia',
'settings.notifyTripInvite': 'Zaproszenia do podróży',
'settings.notifyBookingChange': 'Zmiany w rezerwacjach',
'settings.notifyFlightDeparted': 'Starty',
'settings.notifyFlightDelayed': 'Opóźnienia lotów',
'settings.notifyFlightLanded': 'Lądowania',
'settings.notifyTripReminder': 'Przypomnienia o podróżach',
'settings.notifyTodoDue': 'Zadanie z terminem',
'settings.notifyVacayInvite': 'Zaproszenia do połączenia kalendarzy',
@@ -17,6 +17,18 @@ const ru: NotificationLocale = {
title: `Новое бронирование: ${p.booking}`,
body: `${p.actor} добавил бронирование "${p.booking}" (${p.type}) в "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} вылетел`,
body: `${p.flight} из ${p.from} в ${p.to} в воздухе.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} задерживается`,
body: `${p.flight} из ${p.from} в ${p.to} отстаёт от расписания примерно на ${p.delay} мин.`,
}),
flight_landed: (p) => ({
title: `${p.flight} приземлился`,
body: `${p.flight} из ${p.from} приземлился в ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Напоминание: ${p.trip}`,
body: `Ваша поездка "${p.trip}" скоро начнётся!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} пригласил вас в {trip}',
'notif.booking_change.title': 'Бронирование обновлено',
'notif.booking_change.text': '{actor} обновил бронирование в {trip}',
'notif.flight_departed.title': 'Рейс вылетел',
'notif.flight_departed.text': '{flight} из {from} в {to} в воздухе',
'notif.flight_delayed.title': 'Рейс задерживается',
'notif.flight_delayed.text': '{flight} из {from} в {to} задерживается примерно на {delay} мин',
'notif.flight_landed.title': 'Рейс приземлился',
'notif.flight_landed.text': '{flight} из {from} приземлился в {to}',
'notif.trip_reminder.title': 'Напоминание о поездке',
'notif.trip_reminder.text': 'Ваша поездка {trip} скоро начнётся!',
'notif.todo_due.title': 'Задача к сроку',
+3
View File
@@ -110,6 +110,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Уведомления',
'settings.notifyTripInvite': 'Приглашения в поездку',
'settings.notifyBookingChange': 'Изменения бронирований',
'settings.notifyFlightDeparted': 'Вылеты',
'settings.notifyFlightDelayed': 'Задержки рейсов',
'settings.notifyFlightLanded': 'Посадки',
'settings.notifyTripReminder': 'Напоминания о поездке',
'settings.notifyTodoDue': 'Задача к сроку',
'settings.notifyVacayInvite': 'Приглашения слияния Vacay',
@@ -17,6 +17,18 @@ const sk: NotificationLocale = {
title: `Nová rezervácia: ${p.booking}`,
body: `${p.actor} pridal(a) novú rezerváciu ${p.type} "${p.booking}" do "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} odletel`,
body: `${p.flight} z ${p.from} do ${p.to} je vo vzduchu.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} mešká`,
body: `${p.flight} z ${p.from} do ${p.to} mešká približne ${p.delay} minút.`,
}),
flight_landed: (p) => ({
title: `${p.flight} pristál`,
body: `${p.flight} z ${p.from} pristál v ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Pripomienka cesty: ${p.trip}`,
body: `Vaša cesta "${p.trip}" sa čoskoro blíži!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} vás pozval na {trip}',
'notif.booking_change.title': 'Rezervácia aktualizovaná',
'notif.booking_change.text': '{actor} aktualizoval rezerváciu vo {trip}',
'notif.flight_departed.title': 'Let odletel',
'notif.flight_departed.text': '{flight} z {from} do {to} je vo vzduchu',
'notif.flight_delayed.title': 'Let mešká',
'notif.flight_delayed.text': '{flight} z {from} do {to} mešká približne {delay} min',
'notif.flight_landed.title': 'Let pristál',
'notif.flight_landed.text': '{flight} z {from} pristál v {to}',
'notif.trip_reminder.title': 'Pripomienka výletu',
'notif.trip_reminder.text': 'Váš výlet {trip} sa čoskoro blíži!',
'notif.todo_due.title': 'Úloha sa blíži',
+3
View File
@@ -123,6 +123,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Oznámenia',
'settings.notifyTripInvite': 'Pozvánky na cesty',
'settings.notifyBookingChange': 'Zmeny rezervácií',
'settings.notifyFlightDeparted': 'Odlety',
'settings.notifyFlightDelayed': 'Meškania letov',
'settings.notifyFlightLanded': 'Pristátia',
'settings.notifyTripReminder': 'Pripomienky ciest',
'settings.notifyTodoDue': 'Úloha sa blíži',
'settings.notifyVacayInvite': 'Pozvánky na prepojenie Vacay',
@@ -17,6 +17,18 @@ const en: NotificationLocale = {
title: `Ny bokning: ${p.booking}`,
body: `${p.actor} la till en ny ${p.type} "${p.booking}" till "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} har lyft`,
body: `${p.flight} från ${p.from} till ${p.to} är i luften.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} är försenat`,
body: `${p.flight} från ${p.from} till ${p.to} ligger cirka ${p.delay} minuter efter tidtabellen.`,
}),
flight_landed: (p) => ({
title: `${p.flight} har landat`,
body: `${p.flight} från ${p.from} har landat i ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Resepåminnelse: ${p.trip}`,
body: `Din resa "${p.trip}" kommer snart!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} bjöd in dig till {trip}',
'notif.booking_change.title': 'Bokningen har uppdaterats',
'notif.booking_change.text': '{actor} uppdaterat en bokning i {trip}',
'notif.flight_departed.title': 'Flyget har lyft',
'notif.flight_departed.text': '{flight} från {from} till {to} är i luften',
'notif.flight_delayed.title': 'Flyget är försenat',
'notif.flight_delayed.text': '{flight} från {from} till {to} är cirka {delay} min försenat',
'notif.flight_landed.title': 'Flyget har landat',
'notif.flight_landed.text': '{flight} från {from} har landat i {to}',
'notif.trip_reminder.title': 'Påminnelse om resan',
'notif.trip_reminder.text': 'Din resa {trip} kommer snart!',
'notif.todo_due.title': 'Uppgift förfaller',
+3
View File
@@ -116,6 +116,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Meddelanden',
'settings.notifyTripInvite': 'Inbjudningar till resor',
'settings.notifyBookingChange': 'Ändringar i bokningen',
'settings.notifyFlightDeparted': 'Avgångar',
'settings.notifyFlightDelayed': 'Förseningar',
'settings.notifyFlightLanded': 'Landningar',
'settings.notifyTripReminder': 'Påminnelser inför resan',
'settings.notifyTodoDue': 'Att göra ska göras snart',
'settings.notifyVacayInvite': 'Vacay samanslagnings inbjudningar',
@@ -16,6 +16,18 @@ const th: NotificationLocale = {
title: `การจองใหม่: ${p.booking}`,
body: `${p.actor} เพิ่ม${p.type}ใหม่ "${p.booking}" ลงใน "${p.trip}"`,
}),
flight_departed: (p) => ({
title: `เที่ยวบิน ${p.flight} ออกเดินทางแล้ว`,
body: `เที่ยวบิน ${p.flight} จาก ${p.from} ไป ${p.to} อยู่บนอากาศแล้ว`,
}),
flight_delayed: (p) => ({
title: `เที่ยวบิน ${p.flight} ล่าช้า`,
body: `เที่ยวบิน ${p.flight} จาก ${p.from} ไป ${p.to} ล่าช้ากว่ากำหนดประมาณ ${p.delay} นาที`,
}),
flight_landed: (p) => ({
title: `เที่ยวบิน ${p.flight} ลงจอดแล้ว`,
body: `เที่ยวบิน ${p.flight} จาก ${p.from} ลงจอดที่ ${p.to} แล้ว`,
}),
trip_reminder: (p) => ({
title: `แจ้งเตือนทริป: ${p.trip}`,
body: `ทริป "${p.trip}" ของคุณกำลังจะมาถึงเร็ว ๆ นี้!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} เชิญคุณเข้าร่วม {trip}',
'notif.booking_change.title': 'อัปเดตการจองแล้ว',
'notif.booking_change.text': '{actor} อัปเดตการจองใน {trip}',
'notif.flight_departed.title': 'เที่ยวบินออกเดินทางแล้ว',
'notif.flight_departed.text': 'เที่ยวบิน {flight} จาก {from} ไป {to} อยู่บนอากาศแล้ว',
'notif.flight_delayed.title': 'เที่ยวบินล่าช้า',
'notif.flight_delayed.text': 'เที่ยวบิน {flight} จาก {from} ไป {to} ล่าช้าประมาณ {delay} นาที',
'notif.flight_landed.title': 'เที่ยวบินลงจอดแล้ว',
'notif.flight_landed.text': 'เที่ยวบิน {flight} จาก {from} ลงจอดที่ {to} แล้ว',
'notif.trip_reminder.title': 'การแจ้งเตือนการเดินทาง',
'notif.trip_reminder.text': 'การเดินทาง {trip} ของคุณกำลังจะมาถึงเร็วๆ นี้!',
'notif.todo_due.title': 'งานที่ถึงกำหนด',
+3
View File
@@ -108,6 +108,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'การแจ้งเตือน',
'settings.notifyTripInvite': 'คำเชิญการเดินทาง',
'settings.notifyBookingChange': 'การเปลี่ยนแปลงการจอง',
'settings.notifyFlightDeparted': 'เที่ยวบินออกเดินทาง',
'settings.notifyFlightDelayed': 'เที่ยวบินล่าช้า',
'settings.notifyFlightLanded': 'เที่ยวบินลงจอด',
'settings.notifyTripReminder': 'การแจ้งเตือนการเดินทาง',
'settings.notifyTodoDue': 'สิ่งที่ต้องทำจะครบกำหนดเร็วๆ นี้',
'settings.notifyVacayInvite': 'คำเชิญรวมปฏิทินวันลา',
@@ -17,6 +17,18 @@ const tr: NotificationLocale = {
title: `Yeni rezervasyon: ${p.booking}`,
body: `${p.actor}, "${p.trip}" seyahatine "${p.booking}" (${p.type}) rezervasyonu ekledi.`,
}),
flight_departed: (p) => ({
title: `${p.flight} kalktı`,
body: `${p.from} çıkışlı ${p.to} varışlı ${p.flight} havada.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} rötarlı`,
body: `${p.from} çıkışlı ${p.to} varışlı ${p.flight} yaklaşık ${p.delay} dakika rötarlı.`,
}),
flight_landed: (p) => ({
title: `${p.flight} indi`,
body: `${p.from} çıkışlı ${p.flight} ${p.to} varış noktasına indi.`,
}),
trip_reminder: (p) => ({
title: `Seyahat hatırlatıcısı: ${p.trip}`,
body: `"${p.trip}" seyahatiniz yaklaşıyor!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} sizi {trip} seyahatine davet etti',
'notif.booking_change.title': 'Rezervasyon Güncellendi',
'notif.booking_change.text': '{actor}, {trip} içindeki bir rezervasyonu güncelledi',
'notif.flight_departed.title': 'Uçuş kalktı',
'notif.flight_departed.text': '{from} çıkışlı {to} varışlı {flight} havada',
'notif.flight_delayed.title': 'Uçuş rötarlı',
'notif.flight_delayed.text': '{from} çıkışlı {to} varışlı {flight} yaklaşık {delay} dk rötarlı',
'notif.flight_landed.title': 'Uçuş indi',
'notif.flight_landed.text': '{from} çıkışlı {flight} {to} varış noktasına indi',
'notif.trip_reminder.title': 'Seyahat Hatırlatıcısı',
'notif.trip_reminder.text': '{trip} Seyahatiniz yaklaşıyor!',
'notif.todo_due.title': 'Yapılacak vadesi',
+3
View File
@@ -113,6 +113,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Bildirimler',
'settings.notifyTripInvite': 'Seyahat davetleri',
'settings.notifyBookingChange': 'Rezervasyon değişiklikleri',
'settings.notifyFlightDeparted': 'Kalkışlar',
'settings.notifyFlightDelayed': 'Rötarlar',
'settings.notifyFlightLanded': 'İnişler',
'settings.notifyTripReminder': 'Seyahat hatırlatıcıları',
'settings.notifyTodoDue': 'Yapılacak vadesi yakında',
'settings.notifyVacayInvite': 'Vacay birleştirme davetleri',
@@ -17,6 +17,18 @@ const uk: NotificationLocale = {
title: `Нове бронювання: ${p.booking}`,
body: `${p.actor} додав бронювання "${p.booking}" (${p.type}) до "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} вилетів`,
body: `${p.flight} з ${p.from} до ${p.to} у повітрі.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} затримується`,
body: `${p.flight} з ${p.from} до ${p.to} відстає від розкладу приблизно на ${p.delay} хв.`,
}),
flight_landed: (p) => ({
title: `${p.flight} приземлився`,
body: `${p.flight} з ${p.from} приземлився в ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Нагадування про подорож: ${p.trip}`,
body: `Ваша подорож "${p.trip}" наближається!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} запросив вас до {trip}',
'notif.booking_change.title': 'Бронювання оновлено',
'notif.booking_change.text': '{actor} оновив бронювання в {trip}',
'notif.flight_departed.title': 'Рейс вилетів',
'notif.flight_departed.text': '{flight} з {from} до {to} у повітрі',
'notif.flight_delayed.title': 'Рейс затримується',
'notif.flight_delayed.text': '{flight} з {from} до {to} затримується приблизно на {delay} хв',
'notif.flight_landed.title': 'Рейс приземлився',
'notif.flight_landed.text': '{flight} з {from} приземлився в {to}',
'notif.trip_reminder.title': 'Нагадування про поїздку',
'notif.trip_reminder.text': 'Ваша поїздка {trip} скоро почнеться!',
'notif.todo_due.title': 'Завдання до терміну',
+3
View File
@@ -112,6 +112,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Сповіщення',
'settings.notifyTripInvite': 'Запрошення до поїздки',
'settings.notifyBookingChange': 'Зміни бронювань',
'settings.notifyFlightDeparted': 'Вильоти',
'settings.notifyFlightDelayed': 'Затримки рейсів',
'settings.notifyFlightLanded': 'Посадки',
'settings.notifyTripReminder': 'Нагадування про поїздку',
'settings.notifyTodoDue': 'Завдання до терміну',
'settings.notifyVacayInvite': "Запрошення об'єднання Vacay",
@@ -16,6 +16,18 @@ const en: NotificationLocale = {
title: `Đặt chổ mới: ${p.booking}`,
body: `${p.actor} đã thêm mới một ${p.type} "${p.booking}" vào "${p.trip}".`,
}),
flight_departed: (p) => ({
title: `${p.flight} đã cất cánh`,
body: `Chuyến bay ${p.flight} từ ${p.from} đến ${p.to} đang bay.`,
}),
flight_delayed: (p) => ({
title: `${p.flight} bị trễ`,
body: `Chuyến bay ${p.flight} từ ${p.from} đến ${p.to} đang trễ khoảng ${p.delay} phút so với lịch.`,
}),
flight_landed: (p) => ({
title: `${p.flight} đã hạ cánh`,
body: `Chuyến bay ${p.flight} từ ${p.from} đã hạ cánh tại ${p.to}.`,
}),
trip_reminder: (p) => ({
title: `Nhắc nhở chuyến đi: ${p.trip}`,
body: `Hành trình "${p.trip}" sắp bất đầu!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} đã mời bạn tham gia {trip}',
'notif.booking_change.title': 'Đã cập nhật đặt chỗ',
'notif.booking_change.text': '{actor} đã cập nhật lượt đặt chỗ trong {trip}',
'notif.flight_departed.title': 'Chuyến bay đã cất cánh',
'notif.flight_departed.text': 'Chuyến bay {flight} từ {from} đến {to} đang bay',
'notif.flight_delayed.title': 'Chuyến bay bị trễ',
'notif.flight_delayed.text': 'Chuyến bay {flight} từ {from} đến {to} trễ khoảng {delay} phút',
'notif.flight_landed.title': 'Chuyến bay đã hạ cánh',
'notif.flight_landed.text': 'Chuyến bay {flight} từ {from} đã hạ cánh tại {to}',
'notif.trip_reminder.title': 'Nhắc nhở chuyến đi',
'notif.trip_reminder.text': 'Chuyến đi {trip} của bạn sắp diễn ra!',
'notif.todo_due.title': 'Việc cần làm đến hạn',
+3
View File
@@ -117,6 +117,9 @@ const settings: TranslationStrings = {
'settings.notifications': 'Thông báo',
'settings.notifyTripInvite': 'Lời mời chuyến đi',
'settings.notifyBookingChange': 'Thay đổi đặt chỗ',
'settings.notifyFlightDeparted': 'Chuyến bay cất cánh',
'settings.notifyFlightDelayed': 'Chuyến bay bị trễ',
'settings.notifyFlightLanded': 'Chuyến bay hạ cánh',
'settings.notifyTripReminder': 'Lời nhắc chuyến đi',
'settings.notifyTodoDue': 'Việc cần làm sắp đến hạn',
'settings.notifyVacayInvite': 'Lời mời kết hợp Vacay',
@@ -17,6 +17,18 @@ const zhTW: NotificationLocale = {
title: `新預訂:${p.booking}`,
body: `${p.actor} 在「${p.trip}」中新增了預訂「${p.booking}」(${p.type})。`,
}),
flight_departed: (p) => ({
title: `${p.flight}已起飛`,
body: `從${p.from}飛往${p.to}的${p.flight}已在空中。`,
}),
flight_delayed: (p) => ({
title: `${p.flight}延誤`,
body: `從${p.from}飛往${p.to}的${p.flight}比預定晚約${p.delay}分鐘。`,
}),
flight_landed: (p) => ({
title: `${p.flight}已降落`,
body: `從${p.from}出發的${p.flight}已降落在${p.to}。`,
}),
trip_reminder: (p) => ({
title: `行程提醒:${p.trip}`,
body: `您的行程「${p.trip}」即將開始!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} 邀請你加入 {trip}',
'notif.booking_change.title': '預訂已更新',
'notif.booking_change.text': '{actor} 更新了 {trip} 中的預訂',
'notif.flight_departed.title': '航班已起飛',
'notif.flight_departed.text': '從{from}飛往{to}的{flight}已在空中',
'notif.flight_delayed.title': '航班延誤',
'notif.flight_delayed.text': '從{from}飛往{to}的{flight}晚點約{delay}分鐘',
'notif.flight_landed.title': '航班已降落',
'notif.flight_landed.text': '從{from}出發的{flight}已降落在{to}',
'notif.trip_reminder.title': '旅行提醒',
'notif.trip_reminder.text': '你的旅行 {trip} 即將開始!',
'notif.todo_due.title': '待辦事項即將到期',
+3
View File
@@ -104,6 +104,9 @@ const settings: TranslationStrings = {
'settings.notifications': '通知',
'settings.notifyTripInvite': '旅行邀請',
'settings.notifyBookingChange': '預訂變更',
'settings.notifyFlightDeparted': '航班起飛',
'settings.notifyFlightDelayed': '航班延誤',
'settings.notifyFlightLanded': '航班降落',
'settings.notifyTripReminder': '旅行提醒',
'settings.notifyTodoDue': '待辦事項即將到期',
'settings.notifyVacayInvite': 'Vacay 融合邀請',
@@ -17,6 +17,18 @@ const zh: NotificationLocale = {
title: `新预订:${p.booking}`,
body: `${p.actor} 在"${p.trip}"中添加了预订"${p.booking}"(${p.type})。`,
}),
flight_departed: (p) => ({
title: `${p.flight}已起飞`,
body: `从${p.from}飞往${p.to}的${p.flight}已在空中。`,
}),
flight_delayed: (p) => ({
title: `${p.flight}延误`,
body: `从${p.from}飞往${p.to}的${p.flight}比计划晚约${p.delay}分钟。`,
}),
flight_landed: (p) => ({
title: `${p.flight}已降落`,
body: `从${p.from}出发的${p.flight}已降落在${p.to}。`,
}),
trip_reminder: (p) => ({
title: `旅行提醒:${p.trip}`,
body: `你的旅行"${p.trip}"即将开始!`,
+6
View File
@@ -9,6 +9,12 @@ const notif: TranslationStrings = {
'notif.trip_invite.text': '{actor} 邀请您加入 {trip}',
'notif.booking_change.title': '预订已更新',
'notif.booking_change.text': '{actor} 更新了 {trip} 中的预订',
'notif.flight_departed.title': '航班已起飞',
'notif.flight_departed.text': '从{from}飞往{to}的{flight}已在空中',
'notif.flight_delayed.title': '航班延误',
'notif.flight_delayed.text': '从{from}飞往{to}的{flight}晚点约{delay}分钟',
'notif.flight_landed.title': '航班已降落',
'notif.flight_landed.text': '从{from}出发的{flight}已降落在{to}',
'notif.trip_reminder.title': '旅行提醒',
'notif.trip_reminder.text': '您的旅行 {trip} 即将开始!',
'notif.todo_due.title': '待办事项即将到期',
+3
View File
@@ -103,6 +103,9 @@ const settings: TranslationStrings = {
'settings.notifications': '通知',
'settings.notifyTripInvite': '旅行邀请',
'settings.notifyBookingChange': '预订变更',
'settings.notifyFlightDeparted': '航班起飞',
'settings.notifyFlightDelayed': '航班延误',
'settings.notifyFlightLanded': '航班降落',
'settings.notifyTripReminder': '旅行提醒',
'settings.notifyTodoDue': '待办事项即将到期',
'settings.notifyVacayInvite': '假期合并邀请',
+1
View File
@@ -22,6 +22,7 @@ export * from './paddle/paddle-regions.schema';
export * from './paddle/paddle-route.schema';
export * from './public-api/public-api.schema';
export * from './airport/airport.schema';
export * from './flight-live/flight-live.schema';
export * from './config/config.schema';
export * from './system-notice/system-notice.schema';
export * from './maps/maps.schema';
+40 -2
View File
@@ -69,6 +69,44 @@ const FIXTURES: Record<TrekWsEventName, Record<string, unknown>> = {
'reservation:deleted': { reservationId: 6 },
'reservation:positions': { positions: [{ id: 6, position: 0 }], day_id: 2 },
'reservation:travelers-updated': { reservationId: 6, travelers: [{ user_id: 1 }] },
'flight:live': {
flights: [
{
reservation_id: 6,
leg_index: 0,
callsign: 'DLH400',
flight_number: 'LH 400',
service_date: '2026-06-11',
origin: { code: 'FRA', name: 'Frankfurt', lat: 50.03, lng: 8.57, timezone: 'Europe/Berlin' },
destination: { code: 'JFK', name: 'New York JFK', lat: 40.64, lng: -73.78, timezone: 'America/New_York' },
phase: 'airborne',
scheduled_departure: '2026-06-11T11:50:00.000Z',
scheduled_arrival: '2026-06-11T20:35:00.000Z',
departed_at: '2026-06-11T12:14:00.000Z',
landed_at: null,
estimated_arrival: '2026-06-11T20:51:00.000Z',
departure_delay_min: 24,
arrival_delay_min: 16,
progress: 0.42,
distance_total_km: 6200,
distance_remaining_km: 3596,
position: {
lat: 55.1,
lng: -20.4,
altitude_ft: 37000,
ground_speed_kt: 470,
track_deg: 285,
vertical_rate_fpm: 0,
on_ground: false,
},
aircraft: { registration: 'D-AIXA', type: 'A359' },
last_seen_at: '2026-06-11T15:40:00.000Z',
fetched_at: '2026-06-11T15:40:10.000Z',
stale: false,
source: 'adsb.lol',
},
],
},
'accommodation:created': { accommodation: { id: 8 } },
'accommodation:updated': { accommodation: { id: 8 } },
'accommodation:deleted': { accommodationId: 8 },
@@ -177,9 +215,9 @@ describe('@trek/shared realtime event registry', () => {
// notification:read-all, trips:changed, settings:updated, tags:changed,
// atlas:changed, journey:updated, journey:deleted). Registered first, the
// writes that send them follow.
expect(TREK_WS_TRIP_EVENT_NAMES).toHaveLength(79);
expect(TREK_WS_TRIP_EVENT_NAMES).toHaveLength(80);
expect(TREK_WS_USER_EVENT_NAMES).toHaveLength(41);
expect(TREK_WS_EVENT_NAMES).toHaveLength(120);
expect(TREK_WS_EVENT_NAMES).toHaveLength(121);
});
it('WSEVT-REG-002: every name is domain:action shaped and outside the reserved plugin: namespace', () => {
+3
View File
@@ -1,3 +1,4 @@
import { flightLiveLegSchema } from '../flight-live/flight-live.schema';
import { roadtripDayBoundaryListSchema } from '../roadtrip/day-boundary.schema';
import { roadtripPreferencesSchema } from '../roadtrip/preferences.schema';
@@ -215,6 +216,8 @@ export const TREK_WS_EVENTS = {
scope: 'trip',
payload: z.object({ reservationId: id, travelers: z.array(z.unknown()) }),
},
// Live flight states of the trip that changed in the last poll (flight-live job).
'flight:live': { scope: 'trip', payload: z.object({ flights: z.array(flightLiveLegSchema) }) },
// ── Accommodations ───────────────────────────────────────────────────────
// DRIFT: `{ accommodation }` vs empty refetch ping `{}` (reservation cascade