Files
TREK/shared/src/i18n/hu/externalNotifications.ts
T
Maurice 2e1dca9fe9 feat(tours): let a background check hint at changes of your own wanderer trails
Settings, Integrations, wanderer gains an optional background check of the
trails you imported, off until you switch it on. While on, TREK reads the
short record of each such trail at most once a day (never its GPX file) and
leaves a hint when the trail may have moved on: "may have changed" when only
wanderer's change time moved, "changed" when its name or description proves
it, and "not checkable" when the trail is gone, no longer yours or carries no
change time. Nothing is ever said to be unchanged. A new hint arrives as a
notification that opens the tour (a new ?place= link in the planner); the
tour's provenance shows it with the source check right beside it, and the
card lists all open hints in a dialog, each leading to its tour. The check
reads the source in full as before and spends the hint; taking a change in
stays the confirmed reimport. No tour is ever changed or deleted.

The check only asks through your own connection, only about trails your
account imported into trips you can still open, and stops when you switch it
off, remove the connection, wanderer refuses the token (until a test passes
or a new token is saved) or the admin switches wanderer off; hints and
snapshots stay. A run asks at most 25 connections for at most 10 records
each, one after another, and an instance that fails (an outage, a rate
limit) is left alone for an hour, doubling up to two days.

Server: migration 046120 adds the switch and the run bookkeeping to
wanderer_connections and the tour_source_hints table (one row per snapshot,
for its importer, gone with it). WandererWatchService and an hourly
wanderer-watch job on the CronRegistrar live in the tours domain and read
through WandererService; GET and PUT /api/integrations/wanderer/watch and GET
/api/trips/:tripId/tours/wanderer/sources/:placeId/hint (place_edit, like the
check) answer with @trek/shared contracts. A new user notification event,
wanderer_source_hint, can be muted per channel. Saving a new token now clears
what the last check said about the old one. There is no MCP tool, as for the
rest of the personal wanderer connection. All 27 locales carry the strings,
and the admin wiki page says what the check does.
2026-10-20 15:35:32 +02:00

100 lines
4.6 KiB
TypeScript

import type { NotificationLocale } from '../externalNotifications/types';
import { pluralForm } from '../plural';
const hu: NotificationLocale = {
email: {
footer: 'Ezt az értesítést azért kaptad, mert engedélyezted az értesítéseket a TREK-ben.',
manage: 'Beállítások kezelése',
madeWith: 'Made with',
openTrek: 'TREK megnyitása',
},
events: {
trip_invite: (p) => ({
title: `Meghívó a(z) "${p.trip}" utazásra`,
body: `${p.actor} meghívta ${p.invitee || 'egy tagot'} a(z) "${p.trip}" utazásra.`,
}),
booking_change: (p) => ({
title: `Új foglalás: ${p.booking}`,
body: `${p.actor} hozzáadott egy "${p.booking}" (${p.type}) foglalást a(z) "${p.trip}" utazáshoz.`,
}),
trip_reminder: (p) => ({
title: `Utazás emlékeztető: ${p.trip}`,
body: `A(z) "${p.trip}" utazás hamarosan kezdődik!`,
}),
todo_due: (p) => ({
title: `Teendő esedékes: ${p.todo}`,
body: `"${p.todo}" (${p.trip}) határideje: ${p.due}.`,
}),
vacay_invite: (p) => ({
title: 'Vacay Fusion meghívó',
body: `${p.actor} meghívott a nyaralási tervek összevonásához. Nyissa meg a TREK-et az elfogadáshoz vagy elutasításhoz.`,
}),
vacay_share: (p) => ({
title: 'Vacay naptár megosztva',
body: `${p.actor} megosztotta veled a szabadságnaptárát. Nyissa meg a TREK-et a megtekintéshez.`,
}),
collection_invite: (p) => ({
title: 'Gyűjtemény meghívó',
body: `${p.actor} meghívott egy gyűjtemény megosztására. Nyissa meg a TREK-et az elfogadáshoz vagy elutasításhoz.`,
}),
photos_shared: (p) => ({
title: pluralForm(p.count, 'hu', { one: `${p.count} fotó megosztva`, other: `${p.count} fotó megosztva` }),
body: pluralForm(p.count, 'hu', {
one: `${p.actor} ${p.count} fotót osztott meg a(z) "${p.trip}" utazásban.`,
other: `${p.actor} ${p.count} fotót osztott meg a(z) "${p.trip}" utazásban.`,
}),
}),
collab_message: (p) => ({
title: `Új üzenet a(z) "${p.trip}" utazásban`,
body: `${p.actor}: ${p.preview}`,
}),
packing_tagged: (p) => ({
title: `Csomagolás: ${p.category}`,
body: `${p.actor} hozzárendelte Önt a "${p.category}" csomagolási kategóriához a(z) "${p.trip}" utazásban.`,
}),
version_available: (p) => ({
title: 'Új TREK verzió érhető el',
body: `A TREK ${p.version} elérhető. Látogasson el az adminisztrációs panelre a frissítéshez.`,
}),
replica_failure: (p) => ({
title: 'Tárhely-replika hiba',
body:
`Sikertelen írás a(z) '${p.backend}' replikán: ${p.op} / ${p.key} — ${p.error}.` +
(p.suppressed !== '0'
? pluralForm(p.suppressed, 'hu', {
one: ` Az utolsó értesítés óta ${p.suppressed} további hiba lett elnyomva.`,
other: ` Az utolsó értesítés óta ${p.suppressed} további hiba lett elnyomva.`,
})
: ''),
}),
paddle_region_requested: (p) => ({
title: 'Evezős régiót kértek',
body: `${p.actor} evezős túrát tervez itt: ${p.region}. Töltsd be vagy utasítsd el a vízadatait az adminfelületen a Bővítmények alatt.`,
}),
synology_session_cleared: () => ({
title: 'Synology munkamenet törölve',
body: 'A Synology fiókja vagy URL-je megváltozott. Kijelentkeztek a Synology Photos-ból.',
}),
wanderer_source_hint: (p) => ({
title: `wanderer útvonal: ${p.tour}`,
body:
p.state === 'changed'
? `„${p.tour}” („${p.trip}”) megváltozott a wandererben. Nyisd meg a túrát, és ellenőrizd a forrását, hogy minden változást láss. Az utazásban semmi sem változik magától.`
: p.state === 'unverifiable'
? `„${p.tour}” („${p.trip}”) már nem ellenőrizhető a wandererben. A túra az utazásodban változatlan marad.`
: `„${p.tour}” („${p.trip}”) megváltozhatott a wandererben. Nyisd meg a túrát, és ellenőrizd a forrását. Az utazásban semmi sem változik magától.`,
}),
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
},
passwordReset: {
subject: 'Jelszó visszaállítása',
greeting: 'Szia',
body: 'Kérést kaptunk a TREK-fiókod jelszavának visszaállítására. Kattints az alábbi gombra az új jelszó beállításához.',
ctaIntro: 'Jelszó visszaállítása',
expiry: 'Ez a link 60 perc után lejár.',
ignore: 'Ha nem te kérted ezt, nyugodtan hagyd figyelmen kívül ezt az e-mailt — a jelszavad változatlan marad.',
},
};
export default hu;