mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 18:04:18 +00:00
2e1dca9fe9
Settings, Integrations, wanderer gains an optional background check of the trails you imported, off until you switch it on. While on, TREK reads the short record of each such trail at most once a day (never its GPX file) and leaves a hint when the trail may have moved on: "may have changed" when only wanderer's change time moved, "changed" when its name or description proves it, and "not checkable" when the trail is gone, no longer yours or carries no change time. Nothing is ever said to be unchanged. A new hint arrives as a notification that opens the tour (a new ?place= link in the planner); the tour's provenance shows it with the source check right beside it, and the card lists all open hints in a dialog, each leading to its tour. The check reads the source in full as before and spends the hint; taking a change in stays the confirmed reimport. No tour is ever changed or deleted. The check only asks through your own connection, only about trails your account imported into trips you can still open, and stops when you switch it off, remove the connection, wanderer refuses the token (until a test passes or a new token is saved) or the admin switches wanderer off; hints and snapshots stay. A run asks at most 25 connections for at most 10 records each, one after another, and an instance that fails (an outage, a rate limit) is left alone for an hour, doubling up to two days. Server: migration 046120 adds the switch and the run bookkeeping to wanderer_connections and the tour_source_hints table (one row per snapshot, for its importer, gone with it). WandererWatchService and an hourly wanderer-watch job on the CronRegistrar live in the tours domain and read through WandererService; GET and PUT /api/integrations/wanderer/watch and GET /api/trips/:tripId/tours/wanderer/sources/:placeId/hint (place_edit, like the check) answer with @trek/shared contracts. A new user notification event, wanderer_source_hint, can be muted per channel. Saving a new token now clears what the last check said about the old one. There is no MCP tool, as for the rest of the personal wanderer connection. All 27 locales carry the strings, and the admin wiki page says what the check does.
59 lines
3.8 KiB
TypeScript
59 lines
3.8 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const notif: TranslationStrings = {
|
|
'notif.test.title': '[Thử nghiệm] Thông báo',
|
|
'notif.test.simple.text': 'Đây là một thông báo thử nghiệm đơn giản.',
|
|
'notif.test.boolean.text': 'Bạn có chấp nhận thông báo kiểm tra này không?',
|
|
'notif.test.navigate.text': 'Nhấp vào bên dưới để điều hướng đến trang tổng quan.',
|
|
'notif.trip_invite.title': 'Lời mời chuyến đi',
|
|
'notif.trip_invite.text': '{actor} đã mời bạn tham gia {trip}',
|
|
'notif.booking_change.title': 'Đã cập nhật đặt chỗ',
|
|
'notif.booking_change.text': '{actor} đã cập nhật lượt đặt chỗ trong {trip}',
|
|
'notif.trip_reminder.title': 'Nhắc nhở chuyến đi',
|
|
'notif.trip_reminder.text': 'Chuyến đi {trip} của bạn sắp diễn ra!',
|
|
'notif.todo_due.title': 'Việc cần làm đến hạn',
|
|
'notif.todo_due.text': '{todo} trong {trip} đáo hạn vào {due}',
|
|
'notif.vacay_invite.title': 'Lời mời kết hợp Vacay',
|
|
'notif.vacay_invite.text': '{actor} đã mời bạn lên kế hoạch cho kỳ nghỉ',
|
|
'notif.vacay_share.title': 'Đã chia sẻ lịch Vacay',
|
|
'notif.vacay_share.text': '{actor} đã chia sẻ lịch nghỉ phép của họ với bạn',
|
|
'notif.collection_invite.title': 'Lời mời bộ sưu tập',
|
|
'notif.collection_invite.text': '{actor} đã mời bạn vào một bộ sưu tập',
|
|
'notif.photos_shared.title': 'Ảnh được chia sẻ',
|
|
'notif.photos_shared.text': '{actor} đã chia sẻ {count} ảnh trong {trip}',
|
|
'notif.collab_message.title': 'Tin nhắn mới',
|
|
'notif.collab_message.text': '{actor} đã gửi tin nhắn trong {trip}',
|
|
'notif.packing_tagged.title': 'Nhiệm vụ đóng gói',
|
|
'notif.packing_tagged.text': '{actor} đã giao cho bạn {category} trong {trip}',
|
|
'notif.version_available.title': 'Phiên bản mới có sẵn',
|
|
'notif.version_available.text': 'TREK {version} hiện có sẵn',
|
|
'notif.replica_failure.title': 'Lỗi bản sao lưu trữ',
|
|
'notif.replica_failure.text': "Ghi vào bản sao '{backend}' thất bại: {op} của {key} — {error}",
|
|
'notif.replica_failure.textSuppressed':
|
|
"Ghi vào bản sao '{backend}' thất bại: {op} của {key} — {error}. {suppressed} lỗi khác đã bị bỏ qua kể từ thông báo trước đó.",
|
|
'notif.paddle_region_requested.title': 'Có yêu cầu vùng chèo thuyền',
|
|
'notif.paddle_region_requested.text': '{actor} đang lên kế hoạch chèo thuyền ở {region}',
|
|
'notif.action.view_trip': 'Xem chuyến đi',
|
|
'notif.action.view_collab': 'Xem tin nhắn',
|
|
'notif.action.view_packing': 'Xem đóng gói',
|
|
'notif.action.view_photos': 'Xem ảnh',
|
|
'notif.action.view_vacay': 'Xem kỳ nghỉ',
|
|
'notif.action.view_collection': 'Xem bộ sưu tập',
|
|
'notif.action.view_admin': 'Đi tới quản trị viên',
|
|
'notif.wanderer_source_hint.title': 'Tuyến wanderer',
|
|
'notif.wanderer_source_hint.possible_change': '“{tour}” trong {trip} có thể đã thay đổi trên wanderer',
|
|
'notif.wanderer_source_hint.changed': '“{tour}” trong {trip} đã được thay đổi trên wanderer',
|
|
'notif.wanderer_source_hint.unverifiable': '“{tour}” trong {trip} không còn kiểm tra được trên wanderer',
|
|
'notif.action.view_tour': 'Xem chuyến đi',
|
|
'notif.action.view': 'Xem',
|
|
'notif.action.accept': 'Chấp nhận',
|
|
'notif.action.decline': 'Sự suy sụp',
|
|
'notif.plugin.title': '{title}',
|
|
'notif.plugin.text': '{body}',
|
|
'notif.generic.title': 'Thông báo',
|
|
'notif.generic.text': 'Bạn có thông báo mới',
|
|
'notif.dev.unknown_event.title': '[DEV] Sự kiện không xác định',
|
|
'notif.dev.unknown_event.text': 'Loại sự kiện "{event}" chưa được đăng ký trong EVENT_NOTIFICATION_CONFIG',
|
|
};
|
|
export default notif;
|