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.
82 lines
3.3 KiB
TypeScript
82 lines
3.3 KiB
TypeScript
import type { NotificationLocale } from '../externalNotifications/types';
|
|
|
|
const id: NotificationLocale = {
|
|
email: {
|
|
footer: 'Anda menerima ini karena Anda telah mengaktifkan notifikasi di TREK.',
|
|
manage: 'Kelola preferensi di Pengaturan',
|
|
madeWith: 'Dibuat dengan',
|
|
openTrek: 'Buka TREK',
|
|
},
|
|
events: {
|
|
trip_invite: (p) => ({
|
|
title: `Undangan perjalanan: "${p.trip}"`,
|
|
body: `${p.actor} mengundang ${p.invitee || 'seorang anggota'} ke perjalanan "${p.trip}".`,
|
|
}),
|
|
booking_change: (p) => ({
|
|
title: `Pemesanan baru: ${p.booking}`,
|
|
body: `${p.actor} menambahkan "${p.booking}" (${p.type}) baru ke "${p.trip}".`,
|
|
}),
|
|
trip_reminder: (p) => ({
|
|
title: `Pengingat perjalanan: ${p.trip}`,
|
|
body: `Perjalanan Anda "${p.trip}" akan segera tiba!`,
|
|
}),
|
|
todo_due: (p) => ({
|
|
title: `Tugas jatuh tempo: ${p.todo}`,
|
|
body: `"${p.todo}" di "${p.trip}" jatuh tempo pada ${p.due}.`,
|
|
}),
|
|
vacay_invite: (p) => ({
|
|
title: 'Undangan Penggabungan Vacay',
|
|
body: `${p.actor} mengundang Anda untuk menggabungkan rencana liburan. Buka TREK untuk menerima atau menolak.`,
|
|
}),
|
|
vacay_share: (p) => ({
|
|
title: 'Kalender Vacay Dibagikan',
|
|
body: `${p.actor} membagikan kalender cutinya dengan Anda. Buka TREK untuk melihatnya.`,
|
|
}),
|
|
collection_invite: (p) => ({
|
|
title: 'Undangan koleksi',
|
|
body: `${p.actor} mengundang Anda untuk berbagi koleksi. Buka TREK untuk menerima atau menolak.`,
|
|
}),
|
|
photos_shared: (p) => ({
|
|
title: `${p.count} foto dibagikan`,
|
|
body: `${p.actor} membagikan ${p.count} foto di "${p.trip}".`,
|
|
}),
|
|
collab_message: (p) => ({
|
|
title: `Pesan baru di "${p.trip}"`,
|
|
body: `${p.actor}: ${p.preview}`,
|
|
}),
|
|
packing_tagged: (p) => ({
|
|
title: `Pengepakan: ${p.category}`,
|
|
body: `${p.actor} menugaskan Anda ke kategori "${p.category}" di "${p.trip}".`,
|
|
}),
|
|
version_available: (p) => ({
|
|
title: 'Versi TREK baru tersedia',
|
|
body: `TREK ${p.version} sekarang tersedia. Kunjungi panel admin untuk memperbarui.`,
|
|
}),
|
|
replica_failure: (p) => ({
|
|
title: 'Kegagalan replika penyimpanan',
|
|
body:
|
|
`Penulisan replika gagal pada '${p.backend}': ${p.op} dari ${p.key} — ${p.error}.` +
|
|
(p.suppressed !== '0' ? ` ${p.suppressed} kegagalan lainnya tidak dilaporkan sejak notifikasi terakhir.` : ''),
|
|
}),
|
|
paddle_region_requested: (p) => ({
|
|
title: 'Wilayah dayung diminta',
|
|
body: `${p.actor} merencanakan tur dayung di ${p.region}. Muat atau tolak data airnya di area admin pada Add-on.`,
|
|
}),
|
|
synology_session_cleared: () => ({
|
|
title: 'Sesi Synology dihapus',
|
|
body: 'Akun atau URL Synology Anda berubah. Anda telah keluar dari Synology Photos.',
|
|
}),
|
|
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
|
|
},
|
|
passwordReset: {
|
|
subject: 'Setel ulang kata sandi Anda',
|
|
greeting: 'Halo',
|
|
body: 'Kami menerima permintaan untuk menyetel ulang kata sandi akun TREK Anda. Klik tombol di bawah untuk menetapkan kata sandi baru.',
|
|
ctaIntro: 'Setel ulang kata sandi',
|
|
expiry: 'Tautan ini kedaluwarsa dalam 60 menit.',
|
|
ignore: 'Jika Anda tidak meminta ini, Anda dapat mengabaikan email ini — kata sandi Anda tidak akan berubah.',
|
|
},
|
|
};
|
|
|
|
export default id;
|