mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-25 22:27:32 +00:00
feat(mail-ingest): tell every address holder once when the import stops
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.
This commit is contained in:
@@ -113,6 +113,10 @@ const he: NotificationLocale = {
|
||||
title: 'הזמנות שהועברו לבדיקה',
|
||||
body: `הזמנות שהועברו וממתינות לכם ב-TREK: ${p.count}. ליד כל אחת כתוב מדוע לא נוספה אוטומטית.`,
|
||||
}),
|
||||
mail_ingest_paused: () => ({
|
||||
title: 'ייבוא הדואר מושהה',
|
||||
body: 'TREK אינו מקבל כרגע הודעות הזמנה שהועברו, לכן המתינו לפני שתעבירו אותן. הכתובות שלכם נשמרות ויעבדו שוב כשהייבוא יחזור, והזמנות שכבר נוספו נשארות בטיולים שלכם.',
|
||||
}),
|
||||
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
|
||||
},
|
||||
passwordReset: {
|
||||
|
||||
@@ -61,6 +61,8 @@ const notif: TranslationStrings = {
|
||||
'notif.mail_booking_added.shared': '{actor} הוסיף/ה את {booking} אל {trip} מדוא״ל שהועבר',
|
||||
'notif.mail_booking_pending.title': 'הזמנות שהועברו לבדיקה',
|
||||
'notif.mail_booking_pending.text': 'הזמנות שהועברו וממתינות לכם: {count}',
|
||||
'notif.mail_ingest_paused.title': 'ייבוא הדואר מושהה',
|
||||
'notif.mail_ingest_paused.text': 'הודעות הזמנה שהועברו אינן מתקבלות כרגע. הכתובות שלכם נשמרות ויעבדו שוב כשהייבוא יחזור.',
|
||||
'notif.action.undo': 'ביטול',
|
||||
'notif.action.keep': 'השארה',
|
||||
'notif.action.review': 'בדיקה',
|
||||
|
||||
Reference in New Issue
Block a user