mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 13:23:04 +00:00
44f669cd0e
A plan without the import switches it off from outside the server, and an admin can switch it off too; the plan promises a "mail import paused" note. An hourly job sends mail_ingest_paused to each holder of a live address with their own import on, notes the pause first, and forgets it once it is back.
127 lines
5.7 KiB
TypeScript
127 lines
5.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}".`,
|
||
}),
|
||
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!`,
|
||
}),
|
||
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.`,
|
||
}),
|
||
wanderer_source_hint: (p) => ({
|
||
title: `Camí de wanderer: ${p.tour}`,
|
||
body:
|
||
p.state === 'changed'
|
||
? `«${p.tour}» a «${p.trip}» s'ha canviat a wanderer. Obre el recorregut i comprova'n la font per veure tots els canvis. Res del viatge canvia sol.`
|
||
: p.state === 'unverifiable'
|
||
? `«${p.tour}» a «${p.trip}» ja no es pot comprovar a wanderer. El recorregut del teu viatge es queda com està.`
|
||
: `«${p.tour}» a «${p.trip}» pot haver canviat a wanderer. Obre el recorregut i comprova'n la font per saber-ho. Res del viatge canvia sol.`,
|
||
}),
|
||
mail_booking_added: (p) => ({
|
||
title: `Afegit des d’un correu: ${p.booking}`,
|
||
body:
|
||
p.role === 'traveller'
|
||
? `${p.actor} ha afegit «${p.booking}» a «${p.trip}» des d’un correu reenviat.`
|
||
: `«${p.booking}» del teu correu reenviat s’ha afegit a «${p.trip}». Pots desfer-ho a TREK durant 7 dies.`,
|
||
}),
|
||
mail_booking_pending: (p) => ({
|
||
title: 'Reserves reenviades per revisar',
|
||
body: `Reserves reenviades pendents a TREK: ${p.count}. Cadascuna diu per què no s’ha afegit sola.`,
|
||
}),
|
||
mail_ingest_paused: () => ({
|
||
title: 'Importació de correus en pausa',
|
||
body: 'De moment TREK no accepta correus de reserva reenviats, així que espera abans de reenviar-ne. Les teves adreces es mantenen i tornaran a funcionar quan torni la importació, i les reserves ja afegides continuen als teus viatges.',
|
||
}),
|
||
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;
|