Files
TREK/shared/src/i18n/ar/externalNotifications.ts
T
Maurice ec8509f2de feat(collections): backend for the Overall Places addon (#1081)
Adds the Collections addon backend: a server-wide-per-user library of saved
places, independent of any trip, with multiple named lists, an idea/want/visited
status, and Vacay-style fusion invitations to share a list with other users.

- Data: collection / collection_members / collection_places / collection_place_tags
  tables (+ migration and baseline schema). Saved places carry the owner plus a
  nullable saved_by so a member deleting their account can't drop shared content.
- Service: list + place CRUD with owner-or-accepted-member visibility, dedup,
  status, save-from-trip and copy-to-trip (reusing the trip copy column list),
  and the full fusion-invitation state machine mirrored from vacay (send / accept
  / decline / cancel / leave) with a websocket broadcast and an invite
  notification. Deleting a list snapshots its members and notifies them.
- NestJS module + addon guard (404 before auth), registered in the app module.
- Widens the place photo cache reference check to count collection places so the
  nightly sweep no longer evicts photos a saved place still uses.
- collection_invite notification wired across all 22 locales.
2026-07-01 18:02:44 +02:00

67 lines
2.8 KiB
TypeScript

import type { NotificationLocale } from '../externalNotifications/types';
const ar: NotificationLocale = {
email: {
footer: 'تلقيت هذا لأنك قمت بتفعيل الإشعارات في TREK.',
manage: 'إدارة التفضيلات',
madeWith: 'Made with',
openTrek: 'فتح TREK',
},
events: {
trip_invite: (p) => ({
title: `دعوة إلى "${p.trip}"`,
body: `${p.actor} دعا ${p.invitee || 'عضو'} إلى الرحلة "${p.trip}".`,
}),
booking_change: (p) => ({
title: `حجز جديد: ${p.booking}`,
body: `${p.actor} أضاف حجز "${p.booking}" (${p.type}) إلى "${p.trip}".`,
}),
trip_reminder: (p) => ({
title: `تذكير: ${p.trip}`,
body: `رحلتك "${p.trip}" تقترب!`,
}),
todo_due: (p) => ({
title: `مهمة مستحقة: ${p.todo}`,
body: `"${p.todo}" في "${p.trip}" مستحقة في ${p.due}.`,
}),
vacay_invite: (p) => ({
title: 'دعوة دمج الإجازة',
body: `${p.actor} يدعوك لدمج خطط الإجازة. افتح TREK للقبول أو الرفض.`,
}),
collection_invite: (p) => ({
title: 'دعوة إلى مجموعة',
body: `${p.actor} يدعوك لمشاركة مجموعة. افتح TREK للقبول أو الرفض.`,
}),
photos_shared: (p) => ({
title: `${p.count} صور مشتركة`,
body: `${p.actor} شارك ${p.count} صورة في "${p.trip}".`,
}),
collab_message: (p) => ({
title: `رسالة جديدة في "${p.trip}"`,
body: `${p.actor}: ${p.preview}`,
}),
packing_tagged: (p) => ({
title: `قائمة التعبئة: ${p.category}`,
body: `${p.actor} عيّنك في فئة "${p.category}" في "${p.trip}".`,
}),
version_available: (p) => ({
title: 'إصدار TREK جديد متاح',
body: `TREK ${p.version} متاح الآن. تفضل بزيارة لوحة الإدارة للتحديث.`,
}),
synology_session_cleared: () => ({
title: 'تمت إعادة تعيين جلسة Synology',
body: 'تغيّر حسابك أو رابط Synology. تم تسجيل خروجك من Synology Photos.',
}),
},
passwordReset: {
subject: 'إعادة تعيين كلمة المرور',
greeting: 'مرحبا',
body: 'تلقينا طلبًا لإعادة تعيين كلمة المرور لحسابك في TREK. انقر على الزر أدناه لتعيين كلمة مرور جديدة.',
ctaIntro: 'إعادة تعيين كلمة المرور',
expiry: 'تنتهي صلاحية هذا الرابط خلال 60 دقيقة.',
ignore: 'إذا لم تطلب هذا، يمكنك تجاهل هذه الرسالة — لن تتغير كلمة المرور الخاصة بك.',
},
};
export default ar;