Files
TREK/shared/src/i18n/ja/externalNotifications.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

91 lines
4.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { NotificationLocale } from '../externalNotifications/types';
const ja: 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.trip}」に「${p.booking}」(${p.type})を追加しました。`,
}),
trip_reminder: (p) => ({
title: `旅行リマインダー:${p.trip}`,
body: `「${p.trip}」の旅行が近づいています!`,
}),
todo_due: (p) => ({
title: `期限のタスク:${p.todo}`,
body: `「${p.trip}」の「${p.todo}」は${p.due}が期限です。`,
}),
vacay_invite: (p) => ({
title: 'Vacay Fusion招待',
body: `${p.actor}が休暇プランの統合に招待しています。TREKを開いて承認または拒否してください。`,
}),
vacay_share: (p) => ({
title: 'Vacayカレンダーが共有されました',
body: `${p.actor}が休暇カレンダーを共有しました。TREKを開いて確認してください。`,
}),
collection_invite: (p) => ({
title: 'コレクション招待',
body: `${p.actor}がコレクションの共有に招待しています。TREKを開いて承認または拒否してください。`,
}),
photos_shared: (p) => ({
title: `${p.count}枚の写真が共有されました`,
body: `${p.actor}が「${p.trip}」で${p.count}枚の写真を共有しました。`,
}),
collab_message: (p) => ({
title: `「${p.trip}」の新しいメッセージ`,
body: `${p.actor}:${p.preview}`,
}),
packing_tagged: (p) => ({
title: `パッキング:${p.category}`,
body: `${p.actor}が「${p.trip}」の「${p.category}」カテゴリにあなたを割り当てました。`,
}),
version_available: (p) => ({
title: '新しいTREKバージョンが利用可能',
body: `TREK ${p.version}が利用可能になりました。管理パネルからアップデートしてください。`,
}),
replica_failure: (p) => ({
title: 'ストレージレプリカの障害',
body:
`レプリカ '${p.backend}' への書き込みに失敗しました:${p.op} / ${p.key} — ${p.error}。` +
(p.suppressed !== '0' ? `前回の通知以降、${p.suppressed}件の追加の失敗が抑制されました。` : ''),
}),
paddle_region_requested: (p) => ({
title: 'パドル地域のリクエスト',
body: `${p.actor}が${p.region}でパドルツアーを計画しています。管理画面のアドオンで水域データを読み込むか却下してください。`,
}),
synology_session_cleared: () => ({
title: 'Synologyセッションがクリアされました',
body: 'SynologyアカウントまたはURLが変更されました。Synology Photosからログアウトされました。',
}),
wanderer_source_hint: (p) => ({
title: `wanderer のトレイル: ${p.tour}`,
body:
p.state === 'changed'
? `「${p.trip}」の「${p.tour}」が wanderer で変更されました。ツアーを開いてソースを確認すると、すべての変更を確認できます。旅行の内容が勝手に変わることはありません。`
: p.state === 'unverifiable'
? `「${p.trip}」の「${p.tour}」は wanderer で確認できなくなりました。旅行内のツアーはそのまま残ります。`
: `「${p.trip}」の「${p.tour}」が wanderer で変更された可能性があります。ツアーを開いてソースを確認してください。旅行の内容が勝手に変わることはありません。`,
}),
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
},
passwordReset: {
subject: 'パスワードをリセット',
greeting: 'こんにちは',
body: 'TREKアカウントのパスワードリセットリクエストを受け付けました。以下のボタンをクリックして新しいパスワードを設定してください。',
ctaIntro: 'パスワードをリセット',
expiry: 'このリンクは60分後に期限切れになります。',
ignore: 'このリクエストをご自身でしていない場合は、このメールを無視してください — パスワードは変更されません。',
},
};
export default ja;