mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 15:17:30 +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.
91 lines
3.7 KiB
TypeScript
91 lines
3.7 KiB
TypeScript
import type { NotificationLocale } from '../externalNotifications/types';
|
|
import { pluralForm } from '../plural';
|
|
|
|
const ca: NotificationLocale = {
|
|
email: {
|
|
footer: 'Has rebut això perquè tens les notificacions activades a TREK.',
|
|
manage: 'Gestiona les preferències',
|
|
madeWith: 'Fet amb',
|
|
openTrek: 'Obre TREK',
|
|
},
|
|
events: {
|
|
trip_invite: (p) => ({
|
|
title: `Invitació a "${p.trip}"`,
|
|
body: `${p.actor} va convidar ${p.invitee || 'un membre'} al viatge "${p.trip}".`,
|
|
}),
|
|
booking_change: (p) => ({
|
|
title: `Reserva nova: ${p.booking}`,
|
|
body: `${p.actor} va afegir una reserva "${p.booking}" (${p.type}) a "${p.trip}".`,
|
|
}),
|
|
trip_reminder: (p) => ({
|
|
title: `Recordatori: ${p.trip}`,
|
|
body: `El teu viatge "${p.trip}" s'apropa!`,
|
|
}),
|
|
todo_due: (p) => ({
|
|
title: `Tasca pendent: ${p.todo}`,
|
|
body: `"${p.todo}" a "${p.trip}" venç el ${p.due}.`,
|
|
}),
|
|
vacay_invite: (p) => ({
|
|
title: 'Invitació a Vacay Fusion',
|
|
body: `${p.actor} et va convidar a fusionar plans de vacances. Obre TREK per acceptar o rebutjar.`,
|
|
}),
|
|
vacay_share: (p) => ({
|
|
title: 'Calendari de Vacay compartit',
|
|
body: `${p.actor} va compartir el seu calendari de vacances amb tu. Obre TREK per veure'l.`,
|
|
}),
|
|
photos_shared: (p) => ({
|
|
title: pluralForm(p.count, 'ca', { one: `${p.count} foto compartida`, other: `${p.count} fotos compartides` }),
|
|
body: pluralForm(p.count, 'ca', {
|
|
one: `${p.actor} va compartir ${p.count} foto a "${p.trip}".`,
|
|
other: `${p.actor} va compartir ${p.count} fotos a "${p.trip}".`,
|
|
}),
|
|
}),
|
|
collab_message: (p) => ({
|
|
title: `Missatge nou a "${p.trip}"`,
|
|
body: `${p.actor}: ${p.preview}`,
|
|
}),
|
|
packing_tagged: (p) => ({
|
|
title: `Equipatge: ${p.category}`,
|
|
body: `${p.actor} et va assignar a la categoria "${p.category}" a "${p.trip}".`,
|
|
}),
|
|
version_available: (p) => ({
|
|
title: 'Versió nova de TREK disponible',
|
|
body: `TREK ${p.version} ja està disponible. Visita el panell d'administració per actualitzar.`,
|
|
}),
|
|
replica_failure: (p) => ({
|
|
title: "Error de rèplica d'emmagatzematge",
|
|
body:
|
|
`L'escriptura a la rèplica '${p.backend}' ha fallat: ${p.op} de ${p.key} — ${p.error}.` +
|
|
(p.suppressed !== '0'
|
|
? pluralForm(p.suppressed, 'ca', {
|
|
one: ` S'ha suprimit ${p.suppressed} error més des de l'última notificació.`,
|
|
other: ` S'han suprimit ${p.suppressed} errors més des de l'última notificació.`,
|
|
})
|
|
: ''),
|
|
}),
|
|
paddle_region_requested: (p) => ({
|
|
title: 'Regió de caiac demanada',
|
|
body: `${p.actor} planifica una ruta en caiac a ${p.region}. Carrega o rebutja les seves dades d'aigua a l'administració, a Complements.`,
|
|
}),
|
|
synology_session_cleared: () => ({
|
|
title: 'Sessió de Synology tancada',
|
|
body: 'El teu compte o URL de Synology ha canviat. Has tancat la sessió a Synology Photos.',
|
|
}),
|
|
collection_invite: (p) => ({
|
|
title: 'Invitació a una col·lecció',
|
|
body: `${p.actor} t'ha convidat a compartir una col·lecció. Obre TREK per acceptar-la o rebutjar-la.`,
|
|
}),
|
|
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
|
|
},
|
|
passwordReset: {
|
|
subject: 'Restableix la teva contrasenya',
|
|
greeting: 'Hola',
|
|
body: 'Vam rebre una sol·licitud per restablir la contrasenya del teu compte de TREK. Fes clic al botó de sota per establir una contrasenya nova.',
|
|
ctaIntro: 'Restableix la contrasenya',
|
|
expiry: 'Aquest enllaç caduca en 60 minuts.',
|
|
ignore: 'Si no ho vas sol·licitar tu, pots ignorar aquest correu — la teva contrasenya no canviarà.',
|
|
},
|
|
};
|
|
|
|
export default ca;
|