mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +00:00
1bc82f97fd
Paddle tours are planned on the water by TREK's own router: a water network per paddle region, built from the same Geofabrik extract as the obstacles and searched in a worker thread of the server (no sidecar). Rivers, canals and lakes (direct or along the shore), portages round weirs, locks by policy, whitewater by boat, gaps marked. Found portages and locks become points of their own; an unplannable leg says why and offers a way out. - Shaping points: a click on the line sets a point that steers the route without being a stop (hikes and paddle tours); recompute a single leg. - Lake style direct/shore, suggested from the wind forecast. - Regions load by themselves where a paddler plans (admin setting: automatic, on request, off; size cap and a daily count), with requests for the admins, a notification, and the load followed on the leg. - Portage from the last point, portages follow footways via the walking router (or stay straight), "put in here" on slipways and put-ins. - MCP plan_paddle_route with the REST route's rules.
88 lines
3.6 KiB
TypeScript
88 lines
3.6 KiB
TypeScript
import type { NotificationLocale } from '../externalNotifications/types';
|
|
import { pluralForm } from '../plural';
|
|
|
|
const it: NotificationLocale = {
|
|
email: {
|
|
footer: 'Hai ricevuto questa email perché hai le notifiche abilitate in TREK.',
|
|
manage: 'Gestisci le preferenze nelle impostazioni',
|
|
madeWith: 'Made with',
|
|
openTrek: 'Apri TREK',
|
|
},
|
|
events: {
|
|
trip_invite: (p) => ({
|
|
title: `Invito a "${p.trip}"`,
|
|
body: `${p.actor} ha invitato ${p.invitee || 'un membro'} al viaggio "${p.trip}".`,
|
|
}),
|
|
booking_change: (p) => ({
|
|
title: `Nuova prenotazione: ${p.booking}`,
|
|
body: `${p.actor} ha aggiunto una prenotazione "${p.booking}" (${p.type}) a "${p.trip}".`,
|
|
}),
|
|
trip_reminder: (p) => ({
|
|
title: `Promemoria viaggio: ${p.trip}`,
|
|
body: `Il tuo viaggio "${p.trip}" si avvicina!`,
|
|
}),
|
|
todo_due: (p) => ({
|
|
title: `Attività in scadenza: ${p.todo}`,
|
|
body: `"${p.todo}" in "${p.trip}" scade il ${p.due}.`,
|
|
}),
|
|
vacay_invite: (p) => ({
|
|
title: 'Invito Vacay Fusion',
|
|
body: `${p.actor} ti ha invitato a fondere i piani vacanza. Apri TREK per accettare o rifiutare.`,
|
|
}),
|
|
vacay_share: (p) => ({
|
|
title: 'Calendario Vacay condiviso',
|
|
body: `${p.actor} ha condiviso con te il suo calendario ferie. Apri TREK per vederlo.`,
|
|
}),
|
|
collection_invite: (p) => ({
|
|
title: 'Invito a una raccolta',
|
|
body: `${p.actor} ti ha invitato a condividere una raccolta. Apri TREK per accettare o rifiutare.`,
|
|
}),
|
|
photos_shared: (p) => ({
|
|
title: pluralForm(p.count, 'it', { one: `${p.count} foto condivisa`, other: `${p.count} foto condivise` }),
|
|
body: `${p.actor} ha condiviso ${p.count} foto in "${p.trip}".`,
|
|
}),
|
|
collab_message: (p) => ({
|
|
title: `Nuovo messaggio in "${p.trip}"`,
|
|
body: `${p.actor}: ${p.preview}`,
|
|
}),
|
|
packing_tagged: (p) => ({
|
|
title: `Bagagli: ${p.category}`,
|
|
body: `${p.actor} ti ha assegnato alla categoria "${p.category}" in "${p.trip}".`,
|
|
}),
|
|
version_available: (p) => ({
|
|
title: 'Nuova versione TREK disponibile',
|
|
body: `TREK ${p.version} è ora disponibile. Visita il pannello di amministrazione per aggiornare.`,
|
|
}),
|
|
replica_failure: (p) => ({
|
|
title: "Errore di replica dell'archiviazione",
|
|
body:
|
|
`Scrittura sulla replica non riuscita su '${p.backend}': ${p.op} di ${p.key} — ${p.error}.` +
|
|
(p.suppressed !== '0'
|
|
? pluralForm(p.suppressed, 'it', {
|
|
one: " Dall'ultima notifica è stato soppresso un altro errore.",
|
|
other: ` Dall'ultima notifica sono stati soppressi altri ${p.suppressed} errori.`,
|
|
})
|
|
: ''),
|
|
}),
|
|
paddle_region_requested: (p) => ({
|
|
title: 'Regione canoa richiesta',
|
|
body: `${p.actor} sta pianificando un giro in canoa in ${p.region}. Carica o rifiuta i suoi dati sull'acqua nell'area amministrazione, sotto Componenti.`,
|
|
}),
|
|
synology_session_cleared: () => ({
|
|
title: 'Sessione Synology rimossa',
|
|
body: 'Il tuo account o URL Synology è cambiato. Sei stato disconnesso da Synology Photos.',
|
|
}),
|
|
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
|
|
},
|
|
passwordReset: {
|
|
subject: 'Reimposta la tua password',
|
|
greeting: 'Ciao',
|
|
body: 'Abbiamo ricevuto una richiesta di reimpostazione della password per il tuo account TREK. Clicca il pulsante qui sotto per impostare una nuova password.',
|
|
ctaIntro: 'Reimposta password',
|
|
expiry: 'Questo link scade tra 60 minuti.',
|
|
ignore: 'Se non hai richiesto questa operazione, ignora questa email — la tua password non cambierà.',
|
|
},
|
|
};
|
|
|
|
export default it;
|