Files
TREK/shared/src/i18n/zh/notif.ts
T
Maurice 2e1dca9fe9 feat(tours): let a background check hint at changes of your own wanderer trails
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.
2026-10-20 15:35:32 +02:00

59 lines
3.2 KiB
TypeScript

import type { TranslationStrings } from '../types';
const notif: TranslationStrings = {
'notif.test.title': '[测试] 通知',
'notif.test.simple.text': '这是一条简单的测试通知。',
'notif.test.boolean.text': '您是否接受此测试通知?',
'notif.test.navigate.text': '点击下方前往控制台。',
'notif.trip_invite.title': '旅行邀请',
'notif.trip_invite.text': '{actor} 邀请您加入 {trip}',
'notif.booking_change.title': '预订已更新',
'notif.booking_change.text': '{actor} 更新了 {trip} 中的预订',
'notif.trip_reminder.title': '旅行提醒',
'notif.trip_reminder.text': '您的旅行 {trip} 即将开始!',
'notif.todo_due.title': '待办事项即将到期',
'notif.todo_due.text': '{trip} 中的 {todo} 将于 {due} 到期',
'notif.vacay_invite.title': '假期合并邀请',
'notif.vacay_invite.text': '{actor} 邀请您合并假期计划',
'notif.vacay_share.title': 'Vacay 日历共享',
'notif.vacay_share.text': '{actor} 与您共享了假期日历',
'notif.collection_invite.title': '收藏邀请',
'notif.collection_invite.text': '{actor} 邀请你加入收藏',
'notif.photos_shared.title': '照片已分享',
'notif.photos_shared.text': '{actor} 在 {trip} 中分享了 {count} 张照片',
'notif.collab_message.title': '新消息',
'notif.collab_message.text': '{actor} 在 {trip} 中发送了消息',
'notif.packing_tagged.title': '行李分配',
'notif.packing_tagged.text': '{actor} 将您分配到 {trip} 中的 {category}',
'notif.version_available.title': '新版本可用',
'notif.version_available.text': 'TREK {version} 现已可用',
'notif.replica_failure.title': '存储副本故障',
'notif.replica_failure.text': "写入副本 '{backend}' 失败:{op} / {key} — {error}",
'notif.replica_failure.textSuppressed':
"写入副本 '{backend}' 失败:{op} / {key} — {error}。自上次通知以来,还有 {suppressed} 个失败被抑制。",
'notif.paddle_region_requested.title': '划桨区域申请',
'notif.paddle_region_requested.text': '{actor} 正在 {region} 规划划桨行程',
'notif.action.view_trip': '查看旅行',
'notif.action.view_collab': '查看消息',
'notif.action.view_packing': '查看行李',
'notif.action.view_photos': '查看照片',
'notif.action.view_vacay': '查看假期',
'notif.action.view_collection': '查看收藏',
'notif.action.view_admin': '前往管理',
'notif.wanderer_source_hint.title': 'wanderer 路线',
'notif.wanderer_source_hint.possible_change': '{trip} 中的“{tour}”可能已在 wanderer 中变化',
'notif.wanderer_source_hint.changed': '{trip} 中的“{tour}”已在 wanderer 中更改',
'notif.wanderer_source_hint.unverifiable': '{trip} 中的“{tour}”已无法在 wanderer 中检查',
'notif.action.view_tour': '查看行程',
'notif.action.view': '查看',
'notif.action.accept': '接受',
'notif.action.decline': '拒绝',
'notif.plugin.title': '{title}',
'notif.plugin.text': '{body}',
'notif.generic.title': '通知',
'notif.generic.text': '您有一条新通知',
'notif.dev.unknown_event.title': '[DEV] 未知事件',
'notif.dev.unknown_event.text': '事件类型 "{event}" 未在 EVENT_NOTIFICATION_CONFIG 中注册',
};
export default notif;