mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 18:04:18 +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:
@@ -100,6 +100,10 @@ const en: NotificationLocale = {
|
||||
title: 'Đặt chỗ chuyển tiếp cần xem lại',
|
||||
body: `Đặt chỗ chuyển tiếp đang chờ bạn trong TREK: ${p.count}. Mỗi mục cho biết vì sao nó không được tự động thêm.`,
|
||||
}),
|
||||
mail_ingest_paused: () => ({
|
||||
title: 'Đã tạm dừng nhập email',
|
||||
body: 'Hiện tại TREK chưa nhận email đặt chỗ được chuyển tiếp, vì vậy hãy tạm chưa chuyển tiếp. Địa chỉ của bạn vẫn được giữ và sẽ hoạt động lại khi tính năng nhập quay lại, còn các đặt chỗ đã thêm vẫn nằm trong chuyến đi của bạn.',
|
||||
}),
|
||||
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
|
||||
},
|
||||
passwordReset: {
|
||||
|
||||
@@ -59,6 +59,8 @@ const notif: TranslationStrings = {
|
||||
'notif.mail_booking_added.shared': '{actor} đã thêm {booking} vào {trip} từ một email được chuyển tiếp',
|
||||
'notif.mail_booking_pending.title': 'Đặt chỗ chuyển tiếp cần xem lại',
|
||||
'notif.mail_booking_pending.text': 'Đặt chỗ chuyển tiếp đang chờ bạn: {count}',
|
||||
'notif.mail_ingest_paused.title': 'Đã tạm dừng nhập email',
|
||||
'notif.mail_ingest_paused.text': 'Hiện tại email đặt chỗ được chuyển tiếp chưa được nhận. Địa chỉ của bạn vẫn được giữ và sẽ hoạt động lại khi tính năng nhập quay lại.',
|
||||
'notif.action.undo': 'Hoàn tác',
|
||||
'notif.action.keep': 'Giữ lại',
|
||||
'notif.action.review': 'Xem lại',
|
||||
|
||||
Reference in New Issue
Block a user