v3.1.1 bug fixes (#1228)

* fix(shared-view): render each leg of multi-leg flights correctly

The read-only shared view showed the overall trip start/end airports and
the first leg's flight number on every leg of a multi-leg flight. The Day
Plan already expands legs (each carries __leg), but the renderer ignored it
and read flat top-level metadata; the Bookings tab had the same bug.

- Day Plan: use __leg for per-leg airline/flight number/route, plus dep-arr time
- Bookings tab: list each leg via getFlightLegs()
- unique React keys for multi-leg rows

Closes #1219

* feat(pdf): add legs to pdf export

* fix(demo): skip first-run admin seed in demo mode

When DEMO_MODE is on, the demo seeder creates its own admin (admin@trek.app,
username "admin") right after the generic seeds run. The first-run admin
bootstrap was grabbing username "admin" first, so the demo seeder hit the
UNIQUE(username) constraint and aborted before the demo user was ever created
- which surfaced as a 500 "Demo user not found" on demo-login. Skip the
generic admin bootstrap when demo mode owns the admin account.

* fix(docker): ship the encryption-key migration script in the image

The production image only copied server/dist, so the documented rotation
command `node --import tsx scripts/migrate-encryption.ts` failed inside the
container with a module-not-found error - the raw .ts was never present. The
script runs via tsx straight from source and only pulls node builtins plus
better-sqlite3 (both prod deps), so copying the single file into
/app/server/scripts is enough to make the rotation work again.

* fix(vacay): keep the mode toolbar above the mobile bottom nav

The floating Vacation/Company toolbar was pinned at bottom-3 with z-30, so on
mobile it landed in the same band as the fixed bottom nav (z-60) and got hidden
behind it - and could scroll out of reach entirely. Pin it above the nav with
the shared --bottom-nav-h variable (0px on desktop, so nothing changes there)
and reserve matching space below the calendar grid so it never gets swallowed.

* fix(dashboard): show the correct reservation date regardless of timezone

The upcoming-reservations widget built the date with new Date(reservation_time)
.toISOString(), which reinterprets the stored naive local time as UTC and can
roll the displayed day forward in non-UTC timezones (e.g. a 23:30 reservation
showing the next day). Read the date and time straight from the stored string
parts via splitReservationDateTime, and format the time with the shared
formatTime helper so it also honours the user's 12h/24h preference.

* fix(atlas): cursor-following tooltips and removing countries from search

Two related Atlas fixes:

- Country tooltips were bound with sticky:false, which anchors them at the
  feature's bounds centre. For countries with overseas territories (e.g.
  France) that centre sits far out in the ocean, so the tooltip popped up
  nowhere near the area being hovered. Make them sticky so they track the
  cursor.

- Selecting an already-visited country from the search bar always opened the
  "Mark / Bucket" dialog, with no way to remove it. Tiny countries like
  Vatican City or Singapore are hard to hit on the map, so search was the only
  way in. Mirror the map-click behaviour: a manually-marked country opens the
  Remove confirmation, a trip/place-backed one opens its detail.

* fix(oidc): keep dots in generated usernames

The OIDC username sanitizer stripped dots because they were missing from the
allowed character class, so a name claim like "first.last" became "firstlast".
Dots are valid usernames (the profile validator already allows
^[a-zA-Z0-9_.-]+$), so add the dot to the sanitizer.

* fix(collab): show poll option labels in the UI

The poll API formatted each option as { label, voters }, but the React poll
component renders opt.text - so every option button came out blank. Emit text
alongside label (kept for any other consumer) so options render again.

* feat(backup): make the upload size limit configurable

The restore upload was capped at a hard-coded 500 MB, so instances whose
backup archive (uploads/ included) grew past that got a 413 "File too large"
with no way to raise it. Add a BACKUP_UPLOAD_LIMIT_MB env var (default 500,
invalid values warn and fall back), documented in .env.example.

* feat(costs): create an expense from a booking, fix editing total-only items

Replace the inline price + budget-category fields in the Transport and
Reservation booking modals with a "Create expense" flow: the modal saves the
booking, then opens the full Costs editor prefilled (name + category mapped from
the booking type) and linked to the reservation. A booking with a linked expense
shows it inline with edit / remove.

Also fix the Costs editor so an expense with a recorded total but no payers
(transport-derived or pre-rework items) opens with its amount, lets you set the
currency, and saves - it previously showed 0 everywhere and could not be saved.
Legacy / localized categories now map to the fixed keys, and changing a booking's
type keeps its linked expense category in sync (unless it was manually set).

- shared: reservation_id on budget create, typeToCostCategory helper, i18n keys
- server: createBudgetItem stores reservation_id; keep total_price for payerless
  items; a booking update no longer wipes its linked expense and syncs the
  category on type change
- client: shared BookingCostsSection, exported ExpenseModal with prefill and an
  editable total, page-level save-then-open wiring

* test(reservations): align syncBudgetOnUpdate unit tests with no-wipe + type-sync

The service now leaves a linked expense alone when no budget entry is on the
payload (only an explicit total_price 0 deletes it) and syncs the category on a
booking type change. Update the unit tests accordingly - the old "price cleared"
case passed entry: undefined, which is now a no-op and left a mocked return
queued that leaked into the next test.

* fix(planner): keep a reservation on its day when edited (#1237)

Editing a booking forced its day_id to the globally selected day, which is null
when editing from the Book tab - so the booking lost its day and vanished from
the Plan. Preserve the reservation own day_id on edit instead.

* fix(planner): derive a booking day from its date when none is set (#1237)

The client always sends day_id on a reservation update, so the server only
derived it from reservation_time when the field was absent. A non-transport
booking saved without a selected day (Book tab) therefore got day_id null and
vanished from the Plan, even though its date matched a day. Derive the day from
reservation_time whenever day_id is null, mirroring create.

* fix(planner): let a booking's day follow its date when edited (#1237)

Preserving the old day_id on edit left a re-dated booking on its previous start
day while end_day_id followed the new date, so it spanned both. Stop sending
day_id from the edit modal entirely - the server derives both ends from the
booking's date (and keeps the current day when there is no date), so a re-dated
booking moves cleanly to the matching day.

* fix(atlas): keep the continent breakdown in sync on mark/unmark (#1225)

The optimistic mark/unmark updates bumped the country total but never the
per-continent counts, so the continent column froze until a full reload. Move
the country to continent map into @trek/shared (single source for server and
client) and adjust the matching continent count at every optimistic site: the
country confirm flow plus the choose / region mark and region unmark handlers.

* feat(admin): let admins set a default currency for new users

Adds a currency picker to Admin > User Defaults. Stored as the default_currency
user-default, so users who have not picked their own currency inherit it in
Costs.

* fix(atlas): give every sub-national region a distinct code (#1217)

geoBoundaries fills shapeISO with the bare country code for some countries (every
Spanish region got "ESP", every Chinese "CHN", also Chile/Oman), so marking one
region lit up the whole country. build-atlas-geo.mjs now keeps shapeISO only when
it is a real "XX-..." subdivision code and otherwise synthesizes a unique
per-country id from the region name. Regenerated admin1.geojson.gz: Spain/China/
Chile/Oman now carry distinct region codes (countries with real codes, e.g.
Germany, are unchanged).

* fix(dashboard): never crash on a malformed reservation date

A reservation with an invalid date blanked the whole My Trips page: the old
Upcoming widget did new Date(value).toISOString(), which throws "Invalid time
value" (fixed in #1222 by reading the string parts). Also guard splitDate so a
bad date renders a dash instead of "Invalid Date" or throwing.

* fix(airtrail): gate airtrail update behind a user setting, on airtrail update: rebuild payload from fresh data to prevent any data loss

* fix(airtrail): add back missing tests

* fix(costs): rework the cost panel UX wise and apply prettier on the shared package

* chore(prettier) prettier this file

* fix(airtrail): don't use cabin class as seat on import

When an AirTrail flight has a cabin class but no seat number, the mapper
fell back to the class for metadata.seat, so reservations showed e.g.
"economy" as the seat. Use only the seat number; leave the seat blank
otherwise. The class is still surfaced separately in the import picker.

Closes #1246

* fix(airtrail): import scheduled flight times instead of actual

AirTrail exposes both scheduled (departureScheduled/arrivalScheduled) and
actual (departure/arrival) times. TREK read the actual times, so a delayed or
early flight imported the wrong time for planning.

Read the scheduled times on import and on poll-sync (both go through
mapFlightToReservation); when a flight has no scheduled time, leave the clock
blank (date preserved) rather than fabricating 00:00 or falling back to actual.
The change-detection hash now tracks the scheduled values, so existing linked
reservations re-sync once on the next poll. The opt-in writeback mirrors the
read, pushing TREK edits to the scheduled fields so they round-trip.

* fix(planner): hydrate per-assignment times when editing a place from the pool

Times live per day-assignment, not on the pool place, so reopening a
place from the Places panel / inspector showed empty Start/End fields
(#1247). The editor now resolves a place's lone assignment when no day
is in context and hydrates the fields from it; ambiguous (0 or 2+ days)
edits hide the fields instead of showing non-persisting inputs.

* fix(mcp): make write tools return client-valid, hydrated entities

Audit of all write tools under server/src/mcp/tools (issue #1244 anchor).

S1 (broken):
- create_budget_item / create_budget_item_with_members now default the
  split to all trip members when member_ids omitted, so the entry passes
  the client save-gate instead of being member-less (#1244).
- create_transport / update_transport backfill lat/lng/timezone for
  code-only flight endpoints (NOT NULL columns) and return a clean error
  for unresolvable endpoints instead of crashing.

S2 (under-hydration): set_budget_item_members, create_journey,
create_journey_entry, create_packing_bag, bulk_import_packing and
update_vacay_plan now return the hydrated shape the matching read/REST
route returns; bulk_import widened to accept bag/weight_grams/checked.

S3 (parity): check_in_end added to accommodation tools; atlas
mark_region_visited echoes the client shape; update_journey_entry/
update_journey_preferences, set_bag_members, set_packing_category_assignees,
apply_packing_template return hydrated payloads; set_vacay_color echoes
the color.

Auth: save_packing_template now requires admin, matching the REST gate.

Also refactors server/src/config.ts (JWT-secret handling).

Adds getBudgetItem hydrated getter, exports EndpointInput, and MCP
regression tests (incl. new tools-transports and tools-journey suites).

* fix(mcp): fix ICS/maps/accommodation bugs, add settlement & template tools

Bugs:
- export_trip_ics: include flights that store times per-endpoint
  (local_date/local_time) instead of a top-level reservation_time
- resolve_maps_url: follow redirects for cid=/share links and fall back
  to parsing the page body, all SSRF-guarded
- link_hotel_accommodation: normalize accommodation_id (TEXT column) to an
  integer in the reservation read paths so it no longer returns "14.0"

Gaps:
- packing: save_packing_template returns the new template id; add
  list_packing_templates (read) and delete_packing_template (admin)
- budget: update_budget_item accepts payers/member_ids; clarify create/
  update/members descriptions to ask which members share the expense and
  who paid
- budget: add settlement tools — get_settlement_summary, list_settlements,
  create/update/delete_settlement (budget_edit, mirrors REST + WS events)

* chore: bump nodemailer

* chore: bump multer

---------

Co-authored-by: Maurice <mauriceboe@icloud.com>
This commit is contained in:
jubnl
2026-06-18 20:13:30 +02:00
committed by GitHub
parent f6af1d67a2
commit d152f9d02b
659 changed files with 10954 additions and 12275 deletions
+38 -59
View File
@@ -14,12 +14,10 @@ const settings: TranslationStrings = {
'settings.mapTemplate': '地図テンプレート',
'settings.mapTemplatePlaceholder.select': 'テンプレートを選択…',
'settings.mapDefaultHint': '空欄の場合は OpenStreetMap(既定)を使用',
'settings.mapTemplatePlaceholder':
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
'settings.mapTemplatePlaceholder': 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
'settings.mapHint': '地図タイルのURLテンプレート',
'settings.mapProvider': '地図プロバイダー',
'settings.mapProviderHint':
'旅程プランナーと日記地図に影響します。Atlas は常に Leaflet を使用します。',
'settings.mapProviderHint': '旅程プランナーと日記地図に影響します。Atlas は常に Leaflet を使用します。',
'settings.mapLeafletSubtitle': 'クラシックな2D、任意のラスタータイル',
'settings.mapMapboxSubtitle': 'ベクタータイル、3D建物・地形',
'settings.mapExperimental': '実験的',
@@ -30,23 +28,18 @@ const settings: TranslationStrings = {
'settings.mapStylePlaceholder': 'Mapboxスタイルを選択',
'settings.mapStyleHint': 'プリセットまたは mapbox://styles/USER/ID のURL',
'settings.map3dBuildings': '3D建物・地形',
'settings.map3dHint':
'ピッチ+実際の3D押し出し表示。衛星含む全スタイルで動作。',
'settings.map3dHint': 'ピッチ+実際の3D押し出し表示。衛星含む全スタイルで動作。',
'settings.mapHighQuality': '高品質モード',
'settings.mapHighQualityHint':
'アンチエイリアス+地球投影で、より鮮明でリアルに表示。',
'settings.mapHighQualityWarning':
'低性能デバイスではパフォーマンスに影響する場合があります。',
'settings.mapHighQualityHint': 'アンチエイリアス+地球投影で、より鮮明でリアルに表示。',
'settings.mapHighQualityWarning': '低性能デバイスではパフォーマンスに影響する場合があります。',
'settings.mapTipLabel': 'ヒント:',
'settings.mapTip':
'右クリック+ドラッグで回転/傾き。中クリックで場所を追加(右クリックは回転用)。',
'settings.mapTip': '右クリック+ドラッグで回転/傾き。中クリックで場所を追加(右クリックは回転用)。',
'settings.latitude': '緯度',
'settings.longitude': '経度',
'settings.saveMap': '地図を保存',
'settings.apiKeys': 'APIキー',
'settings.mapsKey': 'Google Maps APIキー',
'settings.mapsKeyHint':
'場所検索用。Places API(新)が必要。console.cloud.google.com で取得',
'settings.mapsKeyHint': '場所検索用。Places API(新)が必要。console.cloud.google.com で取得',
'settings.weatherKey': 'OpenWeatherMap APIキー',
'settings.weatherKeyHint': '天気情報用。openweathermap.org/api で無料取得',
'settings.keyPlaceholder': 'キーを入力…',
@@ -61,8 +54,7 @@ const settings: TranslationStrings = {
'settings.temperature': '温度単位',
'settings.timeFormat': '時刻形式',
'settings.bookingLabels': '予約ルートのラベル',
'settings.bookingLabelsHint':
'地図に駅・空港名を表示。オフ時はアイコンのみ。',
'settings.bookingLabelsHint': '地図に駅・空港名を表示。オフ時はアイコンのみ。',
'settings.blurBookingCodes': '予約コードをぼかす',
'settings.optimizeFromAccommodation': '宿泊先を起点にルートを最適化',
'settings.optimizeFromAccommodationHint':
@@ -82,12 +74,10 @@ const settings: TranslationStrings = {
'settings.notificationPreferences.webhook': 'Webhook',
'settings.notificationPreferences.inapp': 'アプリ内',
'settings.notificationPreferences.ntfy': 'Ntfy',
'settings.notificationPreferences.noChannels':
'通知チャネルが未設定です。管理者に設定を依頼してください。',
'settings.notificationPreferences.noChannels': '通知チャネルが未設定です。管理者に設定を依頼してください。',
'settings.webhookUrl.label': 'Webhook URL',
'settings.webhookUrl.placeholder': 'https://discord.com/api/webhooks/...',
'settings.webhookUrl.hint':
'Discord、Slack、または独自のWebhook URLを入力してください。',
'settings.webhookUrl.hint': 'Discord、Slack、または独自のWebhook URLを入力してください。',
'settings.webhookUrl.saved': 'Webhook URLを保存しました',
'settings.webhookUrl.test': 'テスト',
'settings.webhookUrl.testSuccess': 'テストWebhookを送信しました',
@@ -96,8 +86,7 @@ const settings: TranslationStrings = {
'settings.ntfyUrl.topicPlaceholder': 'my-trek-alerts',
'settings.ntfyUrl.serverLabel': 'Ntfy サーバーURL(任意)',
'settings.ntfyUrl.serverPlaceholder': 'https://ntfy.sh',
'settings.ntfyUrl.hint':
'ntfyトピックを入力してください。サーバー未入力時は管理者設定の既定値を使用します。',
'settings.ntfyUrl.hint': 'ntfyトピックを入力してください。サーバー未入力時は管理者設定の既定値を使用します。',
'settings.ntfyUrl.tokenLabel': 'アクセストークン(任意)',
'settings.ntfyUrl.tokenHint': 'パスワード保護トピックに必要です。',
'settings.ntfyUrl.saved': 'Ntfy設定を保存しました',
@@ -105,8 +94,7 @@ const settings: TranslationStrings = {
'settings.ntfyUrl.testSuccess': 'テスト通知を送信しました',
'settings.ntfyUrl.testFailed': 'テスト通知に失敗しました',
'settings.ntfyUrl.tokenCleared': 'アクセストークンを削除しました',
'settings.notificationsDisabled':
'通知が未設定です。管理者に有効化を依頼してください。',
'settings.notificationsDisabled': '通知が未設定です。管理者に有効化を依頼してください。',
'settings.notificationsActive': '有効なチャネル',
'settings.notificationsManagedByAdmin': '通知イベントは管理者が設定します。',
'settings.on': 'オン',
@@ -114,8 +102,7 @@ const settings: TranslationStrings = {
'settings.mcp.title': 'MCP設定',
'settings.mcp.endpoint': 'MCPエンドポイント',
'settings.mcp.clientConfig': 'クライアント設定',
'settings.mcp.clientConfigHint':
'<your_token> を下のAPIトークンに置き換えてください。',
'settings.mcp.clientConfigHint': '<your_token> を下のAPIトークンに置き換えてください。',
'settings.mcp.clientConfigHintOAuth':
'<your_client_id> と <your_client_secret> をOAuth 2.1の認証情報に置き換えてください。',
'settings.mcp.copy': 'コピー',
@@ -133,15 +120,13 @@ const settings: TranslationStrings = {
'settings.mcp.modal.creating': '作成中…',
'settings.mcp.modal.create': '作成',
'settings.mcp.modal.createdTitle': 'トークン作成完了',
'settings.mcp.modal.createdWarning':
'表示は一度きりです。今すぐ保存してください。',
'settings.mcp.modal.createdWarning': '表示は一度きりです。今すぐ保存してください。',
'settings.mcp.modal.done': '完了',
'settings.mcp.toast.created': 'トークンを作成しました',
'settings.mcp.toast.createError': 'トークン作成に失敗しました',
'settings.mcp.toast.deleted': 'トークンを削除しました',
'settings.mcp.toast.deleteError': 'トークン削除に失敗しました',
'settings.mcp.apiTokensDeprecated':
'APIトークンは非推奨です。OAuth 2.1 クライアントを使用してください。',
'settings.mcp.apiTokensDeprecated': 'APIトークンは非推奨です。OAuth 2.1 クライアントを使用してください。',
'settings.oauth.clients': 'OAuth 2.1 クライアント',
'settings.oauth.clientsHint': '第三者アプリが接続できるよう登録します。',
'settings.oauth.createClient': '新規クライアント',
@@ -149,40 +134,34 @@ const settings: TranslationStrings = {
'settings.oauth.clientId': 'クライアントID',
'settings.oauth.clientSecret': 'クライアントシークレット',
'settings.oauth.deleteClient': 'クライアント削除',
'settings.oauth.deleteClientMessage':
'このクライアントは完全に削除されます。',
'settings.oauth.deleteClientMessage': 'このクライアントは完全に削除されます。',
'settings.oauth.rotateSecret': 'シークレット更新',
'settings.oauth.rotateSecretMessage': '新しいシークレットを生成します。',
'settings.oauth.rotateSecretConfirm': '更新',
'settings.oauth.rotateSecretConfirming': '更新中…',
'settings.oauth.rotateSecretDoneTitle': '新しいシークレット',
'settings.oauth.rotateSecretDoneWarning':
'表示は一度きりです。今すぐ保存してください。',
'settings.oauth.rotateSecretDoneWarning': '表示は一度きりです。今すぐ保存してください。',
'settings.oauth.activeSessions': '有効なセッション',
'settings.oauth.sessionScopes': 'スコープ',
'settings.oauth.sessionExpires': '有効期限',
'settings.oauth.revoke': '取り消し',
'settings.oauth.revokeSession': 'セッション取り消し',
'settings.oauth.revokeSessionMessage':
'このセッションのアクセスを即時無効にします。',
'settings.oauth.revokeSessionMessage': 'このセッションのアクセスを即時無効にします。',
'settings.oauth.modal.createTitle': 'OAuthクライアント登録',
'settings.oauth.modal.presets': '簡単設定',
'settings.oauth.modal.clientName': 'アプリ名',
'settings.oauth.modal.clientNamePlaceholder': '例:Claude Web',
'settings.oauth.modal.redirectUris': 'リダイレクトURI',
'settings.oauth.modal.redirectUrisPlaceholder':
'https://your-app.com/callback',
'settings.oauth.modal.redirectUrisPlaceholder': 'https://your-app.com/callback',
'settings.oauth.modal.redirectUrisHint': '1行につき1つ。HTTPS必須。',
'settings.oauth.modal.scopes': '許可スコープ',
'settings.oauth.modal.scopesHint':
'list_trips と get_trip_summary は常に利用可能です。',
'settings.oauth.modal.scopesHint': 'list_trips と get_trip_summary は常に利用可能です。',
'settings.oauth.modal.selectAll': 'すべて選択',
'settings.oauth.modal.deselectAll': 'すべて解除',
'settings.oauth.modal.creating': '登録中…',
'settings.oauth.modal.create': '登録',
'settings.oauth.modal.createdTitle': '登録完了',
'settings.oauth.modal.createdWarning':
'シークレットは一度しか表示されません。',
'settings.oauth.modal.createdWarning': 'シークレットは一度しか表示されません。',
'settings.oauth.toast.createError': '登録に失敗しました',
'settings.oauth.toast.deleted': 'クライアントを削除しました',
'settings.oauth.toast.deleteError': '削除に失敗しました',
@@ -198,8 +177,7 @@ const settings: TranslationStrings = {
'settings.about.wikiHint': 'ドキュメント・ガイド',
'settings.about.supporters.badge': '月額サポーター',
'settings.about.supporters.title': 'TREKの旅仲間',
'settings.about.supporters.subtitle':
'皆さんの支援がTREKの未来を支えています。',
'settings.about.supporters.subtitle': '皆さんの支援がTREKの未来を支えています。',
'settings.about.supporters.since': '{date}からサポート',
'settings.about.supporters.tierEmpty': '最初の一人に',
'settings.about.supporter.tier.noReturnTicket': '片道切符',
@@ -232,8 +210,7 @@ const settings: TranslationStrings = {
'settings.deleteAccountWarning': 'すべてのデータが完全に削除されます。',
'settings.deleteAccountConfirm': '完全に削除',
'settings.deleteBlockedTitle': '削除できません',
'settings.deleteBlockedMessage':
'唯一の管理者です。別のユーザーを管理者にしてください。',
'settings.deleteBlockedMessage': '唯一の管理者です。別のユーザーを管理者にしてください。',
'settings.roleUser': 'ユーザー',
'settings.saveProfile': 'プロフィールを保存',
'settings.toast.mapSaved': '地図設定を保存しました',
@@ -250,8 +227,7 @@ const settings: TranslationStrings = {
'settings.mfa.requiredByPolicy': '管理者により2FAが必須です。',
'settings.mfa.backupTitle': 'バックアップコード',
'settings.mfa.backupDescription': '認証アプリが使えない場合に使用します。',
'settings.mfa.backupWarning':
'今すぐ保存してください。各コードは1回限りです。',
'settings.mfa.backupWarning': '今すぐ保存してください。各コードは1回限りです。',
'settings.mfa.backupCopy': 'コードをコピー',
'settings.mfa.backupDownload': 'TXTでダウンロード',
'settings.mfa.backupPrint': '印刷 / PDF',
@@ -270,15 +246,14 @@ const settings: TranslationStrings = {
'settings.mfa.toastEnabled': '2FAを有効にしました',
'settings.mfa.toastDisabled': '2FAを無効にしました',
'settings.mfa.demoBlocked': 'デモモードでは利用できません',
'settings.oauth.modal.machineClient':
'マシンクライアント(ブラウザログインなし)',
'settings.oauth.modal.machineClient': 'マシンクライアント(ブラウザログインなし)',
'settings.oauth.modal.machineClientHint':
'client_credentials グラントを使用します — リダイレクト URI は不要です。トークンは client_id + client_secret を介して直接発行され、選択したスコープ内であなたとして動作します。',
'settings.oauth.modal.machineClientUsage':
'トークンを取得するには、grant_type=client_credentials、client_id、client_secret を指定して POST /oauth/token を呼び出します。ブラウザもリフレッシュトークンも不要です。',
'settings.oauth.badge.machine': 'マシン',
"settings.currency": "Currency",
"settings.currencyHint": "All amounts in Costs are converted to and shown in this currency.",
'settings.currency': 'Currency',
'settings.currencyHint': 'All amounts in Costs are converted to and shown in this currency.',
'settings.passkey.title': 'パスキー',
'settings.passkey.description':
'指紋、顔認証、PIN、またはハードウェアキーを使うパスキーで、より速く、フィッシングに強いサインインができます。パスワードはバックアップとして残ります。',
@@ -286,8 +261,7 @@ const settings: TranslationStrings = {
'パスキーは有効ですが、このサーバーではまだ完全には設定されていません。管理者に WebAuthn ドメインの設定を依頼してください。',
'settings.passkey.add': 'パスキーを追加',
'settings.passkey.addTitle': 'パスキーを追加',
'settings.passkey.passwordPrompt':
'現在のパスワードを確認し、デバイスの指示に従ってください。',
'settings.passkey.passwordPrompt': '現在のパスワードを確認し、デバイスの指示に従ってください。',
'settings.passkey.passwordRequired': '現在のパスワードが必要です。',
'settings.passkey.namePlaceholder': '名前(任意、例:"iPhone"',
'settings.passkey.addedToast': 'パスキーを追加しました',
@@ -295,8 +269,7 @@ const settings: TranslationStrings = {
'settings.passkey.addError': 'パスキーを追加できませんでした',
'settings.passkey.cancelled': 'パスキーの設定をキャンセルしました',
'settings.passkey.deleted': 'パスキーを削除しました',
'settings.passkey.deleteConfirm':
'このパスキーを削除しますか?パスワードで確認してください。',
'settings.passkey.deleteConfirm': 'このパスキーを削除しますか?パスワードで確認してください。',
'settings.passkey.rename': '名前を変更',
'settings.passkey.defaultName': 'パスキー',
'settings.passkey.synced': '同期済み',
@@ -304,15 +277,21 @@ const settings: TranslationStrings = {
'settings.passkey.lastUsed': '最終使用',
'settings.passkey.neverUsed': '未使用',
'settings.mapPoiPill': '地図でスポットを探す',
'settings.mapPoiPillHint': '旅行の地図にカテゴリピルを表示して、OpenStreetMapから近くのレストランや宿泊施設などを見つけられます。',
'settings.mapPoiPillHint':
'旅行の地図にカテゴリピルを表示して、OpenStreetMapから近くのレストランや宿泊施設などを見つけられます。',
'settings.airtrail.title': 'AirTrail',
'settings.airtrail.hint': 'セルフホストの AirTrail を接続して、フライトをインポート・同期します。AirTrail の「設定 → セキュリティ」で API キーを作成してください。',
'settings.airtrail.hint':
'セルフホストの AirTrail を接続して、フライトをインポート・同期します。AirTrail の「設定 → セキュリティ」で API キーを作成してください。',
'settings.airtrail.url': 'インスタンス URL',
'settings.airtrail.apiKey': 'API キー',
'settings.airtrail.apiKeyPlaceholder': 'Bearer API キー',
'settings.airtrail.apiKeyHint': 'AirTrail の「設定 → セキュリティ」で生成します。暗号化して保存されます。',
'settings.airtrail.allowInsecureTls': '自己署名証明書を許可する',
'settings.airtrail.allowInsecureTlsHint': '自分のネットワーク内の信頼できるインスタンスの場合にのみ有効にしてください。',
'settings.airtrail.allowInsecureTlsHint':
'自分のネットワーク内の信頼できるインスタンスの場合にのみ有効にしてください。',
'settings.airtrail.writeBack': '変更を AirTrail に書き戻す',
'settings.airtrail.writeBackHint':
'既定ではオフ: AirTrail が信頼できる情報源で、TREK は読み取りのみを行います。TREK で行った編集を AirTrail に書き戻すにはオンにします。',
'settings.airtrail.connected': '接続済み',
'settings.airtrail.notConnected': '未接続',
'settings.airtrail.toast.saved': 'AirTrail の接続を保存しました',