Files
TREK/shared/src/i18n/ja/settings.ts
T
jubnl 91025683bb 3.2.1 (#1433)
* fix(plugins): prevent arbitrary api access

* fix(planner): disable drag & drop on mobile so the places list scrolls (#1432)

On touch devices the draggable rows hijack the scroll gesture, so dragging
to scroll started an HTML5 drag and popped up the file-import overlay instead
of scrolling. Gate the draggable rows and the sidebar file-drop handlers on
!isMobile across the places sidebar and the day plan (places, transports,
notes), and hide the grip handle — the arrow reorder buttons take over there.

* fix(inspector): make the remove-from-day button icon-only on mobile

* fix(collections): show the save picker above the mobile place detail

* fix(plugins): seal IPC parent/child for good

* test(inspector): match the icon-only remove-from-day button

* feat(sdk): switch plain ts for clack/prompts interactive session

* feat(plugins): force-refresh the registry from the rescan button

The registry is cached for 30 min server-side and GitHub serves it with a
5-min CDN cache, so a freshly published plugin could take up to ~35 min to
appear. The rescan/reload button now force-pulls the registry: it bypasses the
in-memory cache and appends a cache-buster + no-cache headers to beat the CDN,
and refreshes the browse grid immediately.

* feat(sdk): bump plugin version

* fix(stored settings): prevent local storage drop when update not successful

* feat(plugins): sideload plugins by uploading a .zip

Adds an admin "Upload plugin" button + drag-and-drop to the plugins panel for
installing a plugin archive directly — handy for testing a build before it goes
to the registry. It reuses the registry install pipeline (slip/bomb-safe
extract, strict manifest validation, native-binary scan) via a new
POST /admin/plugins/upload, and only skips the registry sha256/signature checks
that a sideload can't have.

Sideloaded plugins are flagged (source "local:upload", a "Sideloaded" badge, no
GitHub link, no auto-update) and always land INACTIVE — replacing a running or
active plugin stops it and clears the active flag first, so new code never runs
without a fresh activation + permission consent.

* fix(planner): keep the day-plan collapse state after fully closing the page

The expanded/collapsed days were stored in sessionStorage, which survives a
reload but is wiped when the tab or window is closed — so every fresh open
re-expanded all days, which is tedious to re-collapse on long (10+ day) trips.
Store it in localStorage instead so a collapsed layout sticks until it's
changed.

* fix(i18n): correct Vietnamese translation of 'Disabled' (#1438)

'Tàn tật' means physically handicapped/disabled-person, not the
off/disabled state of a toggle. Replace with 'Tắt' (off), matching
the existing 'admin.plugins.stateOff' translation.

Affects admin.notifications.none and admin.addons.disabled.

* add the code of conduct

* fix(plugins): let widgets follow the in-app dark-mode toggle

The plugin frame is sandboxed at an opaque origin (no parent DOM access) and we
only sent the context — including the theme — once, on trek:ready. So toggling
dark mode in TREK left already-mounted widgets on the old theme until a reload.
Watch the <html> `dark` class and re-post the context when it flips; plugins
already re-apply the theme on trek:context.

* fix(plugins): deliver widget context on load so the theme is right on first paint

* fix(plugins): give widget cards the native glassy look and auto-height

Widget plugins rendered in a plain card with a fixed 180px body, so they looked
foreign next to the glassy dashboard tools and taller widgets had their controls
clipped. Mirror the native `.tool` surface (glass background/border/blur, uppercase
title) and let the body grow to the height the widget reports over trek:resize.

* feat(plugins): add read/rwite costs

* feat(plugin): better readme/index.js

* feat(plugin): better readme/index.js

* feat(plugins): hand widgets TREK's theme tokens, formats and display identity

Extends trek:context with a non-secret `tokens` map (TREK's resolved CSS design
tokens for the current theme), `formats` (currency/date/units/timezone) and a
`user` display object (name/avatar/isAdmin — never the email, role only as a
boolean). Re-sent on every theme toggle. A widget can now apply the tokens and
match the host exactly, in both themes and under a custom appearance, instead of
hard-coding a palette that drifts — so plugins feel native, not bolted-on.

* feat(plugins): hand plugins the full palette and appearance state

The theme context only carried a ~19-token subset read off <html> and only
followed the dark-mode toggle. Widen it to the whole global (:root/.dark)
palette — surfaces, text, borders, the accent family, semantic + soft fills,
shadows, radii and fonts — so a plugin tracks the user's chosen accent scheme,
custom accent and high-contrast live, not just light/dark. Also send an
`appearance` block (scheme, density, reduced-motion, no-transparency) mirrored
from the attributes applyAppearance writes on <html>, and re-post the context
whenever any of those actually change (a small signature dedupes unrelated
mutations) so plugins restyle in step with the app.

* feat(plugins): ship a design kit so plugin UIs look native

A plugin's UI is a sandboxed, opaque-origin iframe that can't load TREK's
stylesheet — so authors had to re-derive the whole look by hand, and most
didn't. Ship it instead: a token-driven stylesheet (glass, hover, buttons,
inputs, chips, rows) that consumes the tokens the host already sends and swaps
light/dark, plus a small bootstrap that applies those tokens, mirrors the
appearance flags, auto-reports the frame height and exposes a `window.trek`
helper over the existing bridge. Both are plain strings meant to be inlined
(the CSP forbids external assets for an opaque frame); `injectTrekUi` expands a
`<!-- trek:ui -->` marker. No new capability — only a native look.

* feat(plugins): deliver the design kit — native scaffold + inline on dev/pack

A new page/widget scaffolds a native, glassy starter that talks over
window.trek. The source keeps a single `<!-- trek:ui -->` line; `dev` (when it
serves /ui) and `pack` (as the file enters the archive) expand it into the
inlined kit — so the file stays a one-line opt-in and a rebuild always ships
the current kit. Existing plugins opt in the same way, by dropping the marker.

* feat(plugins): faithful themed host preview in dev

`dev` served the plugin UI raw at /ui — top-level, with no host — so the theme,
context and bridge never fired and authors couldn't see the design kit render.
Add /preview: it embeds /ui in a sandboxed opaque-origin iframe (exactly TREK's
isolation) and plays the host — posts trek:context with a theme/accent/appearance
toggle, proxies trek:invoke to your /api routes as the dev user, and surfaces
resize/notify/navigate. /ui stays as the raw doc for debugging.

* docs(plugins): document the design kit, window.trek and the token contract

Rewrite the client section of the Plugin Development wiki kit-first: the
`<!-- trek:ui -->` marker, the component classes, the `window.trek` bridge, the
`/preview` host preview, the full `trek:context` payload (now the whole palette
plus an `appearance` block) and how to apply tokens by hand. Add a "Build a
native UI" section + the new exports to the SDK README.

* feat(budget): add 'Outstanding amount' card

* fix(translations): finish translating new keys

* feat(plugins): trip-page plugins — a plugin tab inside every trip

Adds a `trip-page` plugin type whose sandboxed iframe mounts as a tab in the
trip planner (Plan / Transports / … / <plugin>), scoped to the open trip, with
no dashboard nav entry. This is the most-asked planner-extension request from
discussion #1429 (a plugin that lives in the trip, e.g. SimMesg20's budget
planner). It reuses PluginFrame and the existing tab system — the frame already
receives the current tripId over trek:context — so there is no bridge or
security change: only the manifest type enum (server + SDK), the client feed
classification (pluginStore.tripPages), and one render branch in the planner.
The SDK scaffolds it with `create --type trip-page`.

* fix(apple wallet): support for .pkpasses

* feat(plugins): permission-gated write APIs for the planner (#1429)

Plugins can now WRITE core planner data, not just read it, through curated,
membership-checked methods — so downstream features can live in plugins instead
of long-lived core patches. Four new scopes: db:write:places (create/update/delete
places), db:write:days (days), db:write:itinerary (assign/unassign a place on a
day) and db:write:trips (update trip fields).

Each ctx method mirrors costs.create: it validates the input against the SAME
@trek/shared schema the web app uses, binds the acting user host-side (a job/onLoad
has none, so its writes are refused), checks trip access AND the app's edit
permission (place_edit / day_edit / trip_edit), delegates to the real services,
broadcasts the same events so open sessions update live, and records the write in
the tamper-evident capability audit. No new route, no sandbox or CSP change — the
isolation boundary is unchanged; a plugin can only change what its user could change
by hand. Consent UI + permission labels in all 22 locales, SDK types + mock host,
and the wikis are updated.

* docs(plugin): ensure wiki correctness

* feat(plugins): plugin metadata on core entities — db:meta (#1429)

Plugins can now attach their OWN namespaced key/value data to a trip, place or
day without forking the core schema (#1429, request 2). New `db:meta` scope +
`ctx.meta.get/set/list/delete`. Storage is one plugin_entity_metadata table
(migration 161) keyed (plugin_id, entity_type, entity_id, key) — a plugin only
ever sees its own rows. Every call is membership-checked: the entity must belong to
a trip the host-bound acting user can access. Quotas guard the shared volume (≤64KB
per value, ≤100 keys per entity); rows are purged on uninstall-with-delete-data and
recorded in the capability audit. SDK types + mock host, a consent chip + labels in
all 22 locales, and the wikis. No new route, no sandbox change.

* feat(plugins): place-detail plugin slot in the trip planner (#1429)

A widget plugin can declare `capabilities.widget.slot: 'place-detail'` to mount
its sandboxed frame inside the trip planner's place-detail panel, scoped to the
open place — the frame receives the `placeId` in trek:context alongside the tripId.
This is the UI half of the place-detail-providers ask (reviews/ratings/popular
times shown on a place). It reuses the existing widget mechanism: PluginFrame gains
an optional placeId, the feed/store learn the new slot, and PlaceInspector renders
the slot at the foot of its body in trip mode. Admin chip + label in all 22 locales,
wiki updated. No sandbox or permission change.

* fix(plugins): green the server tests + harden the new capability surface

The in-memory uninstall fixture was missing the new plugin_entity_metadata table,
so uninstall's DELETE threw "no such table" and failed the server test job. Add the
table to the fixture schema.

Self-review hardening of the write/metadata surface:
- trips.update now reproduces the web UI's per-field gate: is_archived needs
  trip_archive and cover_image needs trip_cover_upload, not just trip_edit — so a
  member who may only edit can't archive or re-cover a trip.
- Plugin metadata WRITES now also require the entity's edit permission
  (place_edit/day_edit/trip_edit), not just trip access, so a read-only member can't
  overwrite or delete metadata another user created. Reads stay access-gated.
- Cap the metadata key length (<=256 chars) alongside the value/count quotas — the
  key was attacker-controlled and uncapped, defeating the disk-DoS guard.

* test(plugins): cover the new write/metadata deps to hold the coverage gate

The new create-rpc-host write + metadata deps were untested, dropping the
src/nest branch coverage below the 80% gate. Add a seeded in-memory core db plus
mocked core services to exercise every dep end-to-end: places/days/itinerary
create/update/delete + not-found paths, trips.update with the archive/cover
per-field gates and the Validation/NotFound/unknown-error mapping, metadata CRUD
+ key/value/count caps + access checks, the costs deps, and users.getById
scoping. Plus rpc-host cases for meta writes on place/day and a no-acting-user
refusal. Tests only — no production code change.

* fix(costs): freeze FX on every cost + settlement write path (#1445)

Settled foreign-currency costs kept re-opening with a few-cent residual
when live rates drifted. The #1335 freeze only ran on the REST create/
update path, so two gaps remained:

- Foreign-currency items created via MCP create_budget_item or booking-
  import bypassed the freeze and stored exchange_rate = 1, so settlement
  re-converted them with live rates. Promote freezeForeignRate into the
  shared budgetService and call it from every write path.
- Settle-up transfers were stored currency-less and re-converted with
  live rates on each recompute. Add currency + exchange_rate to
  budget_settlements (migration), freeze the display-currency rate at
  settle time, and convert with it in calculateSettlement. Legacy rows
  (currency = NULL / rate = 1) keep live-rate behaviour until re-edited.

Also expose guarded cost update/delete to plugins: costs.update and
costs.delete under db:write:costs, gated exactly like costs.create
(addon + trip access + the acting user's budget_edit permission).
updateCost reuses BudgetService.update so a plugin write re-freezes the
FX rate too; both broadcast the same budget:updated / budget:deleted
events the REST controller emits. Wired through the host, the runtime
SDK context and the published trek-plugin-sdk (types + mock host).

* feat(plugins): provider hooks — placeDetailProvider, wired (#1429)

Turn "hooks" from a declared-but-dead surface into a real host→plugin capability.
Add an invoke.hook branch to the child + a supervisor hook registry
(providersOf) + PluginRuntimeService.invokeHook, reusing the existing invoke
transport and its timeout (a short 5s deadline so a slow provider can't delay a
response; a job/onLoad has no user, host-bound as ever). Also fixes a real bug: the
in-repo runtime SDK copy was missing the `hooks` field entirely and could not even
parse a plugin that declared one — synced it with the published SDK.

The first wired hook is placeDetailProvider: a plugin returns extra rows
({label,value?,url?}) for a place, and TREK renders them natively at the foot of the
place-detail panel. Consumer is a new, additive, fail-safe endpoint
GET /api/place-details/:placeId (membership-checked; any provider that errors or
times out is simply skipped — it never breaks the panel). New hook:place-detail-
provider scope + consent chip in all 22 locales. SDK types (both copies), a
controller test, and the wiki. photoProvider/calendarSource stay reserved but the
transport now exists for them. No sandbox or CSP change.

* fix(files): handle pkpass in booking uploads and files-tab open (#1447, #1448)

Both bugs were client-only; the server already allows .pkpass and serves it
as application/vnd.apple.pkpass.

#1448: the reservation/transport attachment inputs hard-coded an accept list
that omitted pkpass, so macOS grayed it out. Add .pkpass/.pkpasses (+ wallet
MIME types) to the accept attribute in both modals.

#1447: the files-tab open path routed every non-media/non-markdown file into
the in-app PDF preview object. Add isWalletPass() and route wallet passes
through the shared blob openFile helper (as bookings already do), which
downloads them so the OS hands them to Apple Wallet.

* feat(plugins): validation/warning contributions via warningProvider hook (#1429)

Second wired provider hook, reusing the invoke.hook infra from the last commit. A
plugin implements warningProvider.getWarnings(tripId, ctx) → {level, message,
dayId?, placeId?}[] to flag problems on a trip (overpacked day, place closed on its
planned date, missing booking, …). TREK surfaces them as a non-blocking overlay
banner at the top of the trip planner (the wrapper ignores pointer events so it
never covers the map/panels; only the pills are interactive).

Consumer is a new additive, fail-safe endpoint GET /api/trip-warnings/:tripId
(membership-checked; a provider that errors or times out contributes nothing and
never blocks the planner). New hook:trip-warning-provider scope + consent chip in
all 22 locales, SDK types (both copies), a controller test, and the wiki. This is
the validation half of the scheduling+validation block; feeding durations/travel
times back into core recalculation stays out (it would touch core planner
computation — deliberately deferred to keep the no-breaking-changes guarantee).

* fix(plugins): enforce the hook:* grant on provider dispatch (#1429 audit)

The adversarial audit of the #1429 additions found one real (medium) gap: the
hook:* permission was never enforced at runtime. providersOf() selected provider
plugins purely by the hooks their CODE declares (sup.hooks, reported by the child
as Object.keys(def.hooks)) and never intersected that with sup.granted — so a
plugin that merely implemented placeDetailProvider/warningProvider got wired in as
a provider even when the admin never consented to hook:place-detail-provider /
hook:trip-warning-provider. The downstream capability router still held (the hook's
ctx can only do what the plugin's OTHER grants allow), but a plugin could obtain an
auto-triggered, user-bound execution context on a passive UI browse without the
hook being consented — a consent-integrity gap that contradicts the documented
invariant.

Gate it host-side: a hookName→permission map, and providersOf now returns a plugin
only if it is active, implements the hook, AND holds the matching hook:* grant. An
unmapped hook resolves to nobody. invokeHook additionally re-checks membership in
providersOf (defense-in-depth against a direct caller). Unit test proves the
grant/implements/active intersection.

* docs(plugins): add the Plugin Cookbook + a trip-doctor example (#1429 eco)

Fosters plugin authoring by turning the new #1429 capabilities into copy-paste
recipes. New wiki page Plugin-Cookbook (read a trip, write to the itinerary, tag an
entity with metadata, contribute native place details, raise trip warnings,
broadcast, match the TREK look) linked in the sidebar, plus a complete runnable
example — trip-doctor — a hooks-only plugin that showcases warningProvider +
placeDetailProvider + ctx.meta with zero UI of its own. Manifest validates against
the SDK. Docs/example only; no product code.

* fix(collections): don't reset saved-place status to 'idea' on edit (#1437)

The update schema reused collectionStatusSchema, whose .default('idea')
survives .optional() — so a PATCH that omits status had 'idea' injected by
the validation pipe and written to the DB, clobbering 'want'/'visited'.
Strip the default on the update field with .removeDefault(), keeping the
.catch guard. Add a shared schema regression test and an e2e round-trip.

* docs(plugin): ensure plugin scopes are the same everywhere

* feat(plugins): read scopes for packing + files (#1429 eco)

Extend the read side of the capability model beyond trips/costs: db:read:packing
→ ctx.packing.list(tripId) and db:read:files → ctx.files.list(tripId). Both mirror
the existing trip reads exactly — the host membership-checks the trip against the
invocation's user (tripRead) before delegating to the same packingService/
fileService the REST paths use (so bags/assignees hydrate and trash is excluded),
and each is a separate scope (packing doesn't unlock files). ctx types in both SDK
copies + mock-host, consent labels + cap chips in all 22 locales, rpc-host +
create-rpc-host tests, and the wiki (perm table + cookbook recipe).

* feat(plugins): core event subscriptions (#1429 eco)

A plugin can react to core activity by declaring events: [{ on, handler }] + the
events:subscribe grant. websocket.broadcast announces every CORE trip event (name +
tripId ONLY, never the payload) through a tiny dependency-free relay
(plugin-event-sink); the runtime registers a sink in onModuleInit and the supervisor
fans each event out to subscribed, granted, active plugins via a fire-and-forget
invoke.event on a short timeout — so a slow subscriber can never block a core write.

Safety by construction: handlers run with NO user (like a job) so trip reads are
refused — they react to the fact, using the plugin's own ctx.db/ws/outbound; the
grant is enforced host-side (deliverEvent checks events:subscribe); plugin:* re-
broadcasts are never delivered back, so handlers can't loop; and only the event name
+ tripId cross the boundary. SDK types (both copies), consent label + cap chip in all
22 locales, supervisor gating + broadcast-tap tests, and the wiki + cookbook.

The relay lives in its own module (not websocket) so it doesn't drag `ws` into the
runtime and tests that mock ./websocket don't strip the sink.

* feat(plugin-sdk): typed ctx returns + native trek.ui DOM helpers (#1429 eco)

Two author-DX wins, SDK-only.

Typed reads/writes: ctx.trips.getById/getPlaces/getReservations, packing.list,
files.list, costs.*, places/days/itinerary writes and users.getById now return
proper entity types (Trip, Place, Day, Reservation, PackingItem, TripFile,
BudgetItem, Assignment, User) instead of unknown — real autocomplete for authors.
Only `id` is guaranteed and every shape keeps an index signature, so it mirrors the
raw DB row honestly (no column hidden, no false guarantees). mock-host matches.

Native UI helpers: window.trek now carries `trek.ui` — a tiny bundler-free DOM
builder (el/button/card/chip/input/mount) that emits the kit's trek-* classes, so a
widget builds themed UI with no CSS and no build step. Ships inlined via the same
<!-- trek:ui --> marker. Wiki updated.

* fix(plugins): scope packing.list to the acting user's #858 visibility (eco audit)

The final eco audit found one real (medium) gap: the db:read:packing delegate
called packingService.listItems(tripId) with NO userId, which takes the UNFILTERED
branch and returns every member's private (is_private=1) packing items — leaking
another member's personal/surprise-gift items to a plugin the normal UI/REST hides
them from. The handler had the host-bound acting user but dropped it when delegating.

Thread it through: tripRead now hands the membership-checked userId to the read
callback, packing.list forwards it to listPackingItems(tripId, userId), and the
service applies its three-tier #858 filter — a plugin now sees exactly what its user
sees. files.list is unaffected (no per-user file visibility). Tests assert the user
is passed. The other three audited surfaces (event subscriptions, trek.ui, and the
regression sweep of the capability boundary) were clean.

* security(plugins): prevent open redirect

* fix(plugins): resolve PR #1433 full-audit findings (code + tests)

The comprehensive PR audit confirmed 21 findings; this fixes the code/test ones I own:

- ctx.users.getById was DEAD: the runtime SDK omitted the _inv tag, so actingUser
  never bound and every call hit RESOURCE_FORBIDDEN. Add _inv (the test had codified
  the bug — corrected).
- Plugin place writes bypassed the REST STRING_LIMITS (a 100k-char name the web app
  rejects). Mirror the caps (name 200 / description 2000 / address 500 / notes 2000).
- packing.list / files.list were missing from the capability audit log while every
  other core read is audited — add them to isAuditable + auditResource.
- SDK lockstep: CalendarSource.getEvents drifted (published Date vs runtime string);
  the host->plugin boundary is JSON, so align both to string.
- Admin panel didn't know the new trip-page plugin type (unlocalised badge, missing
  filter) — add it to KNOWN_TYPES + the type filter + a 22-locale label.
- Tests for previously-uncovered paths: the child-side invoke.hook/invoke.event
  dispatch (real fork, hook + event + non-matching-subscription), and invokeHook's
  defense-in-depth grant re-check.

Julien's settlement-FX-refreeze finding is his budget code (flagged, not touched).

* docs(plugins): correct the wiki against the shipped capability surface (#1433 audit)

Fixes the 11 doc findings from the PR audit — every corrected claim was cross-checked
against the code:

- Plugin-Development: CSP connect-src is built from granted http:outbound:<host>, not
  egress[]; dropped the stale "costs.create is the first and only core mutation";
  documented costs.update/delete + ctx.packing/ctx.files; the manifest permission table
  gained the six missing scopes (db:write:places/days/itinerary/trips, db:meta,
  hook:trip-warning-provider); the widget slot table gained place-detail.
- Plugin-Cookbook: days.create no longer passes a title the schema drops;
  broadcastToUser uses the real (userId, event, data) signature; fixed the broken
  #the-trek-ui-design-kit anchor and noted window.trek.ui.
- Plugin-Permissions: added db:read:packing, db:read:files and events:subscribe;
  the provider hooks are implemented in `hooks: {...}` on the definition, not on ctx.

* fix(unsplash) allow api key usage

* fix(guests): scope guest display names per-trip, not globally (#1446)

A guest is a per-trip person, but their name lived in the globally UNIQUE
users.username, so uniqueGuestUsername() auto-renamed a second "Jake" (on any other
trip) to "Jake 2". Add a non-unique users.display_name: a guest now stores the human
name there and gets a uuid-based username that is never shown, and every member view
(members list, day-assignment participants, budget members/payers, packing
recipients/contributors/bags/assignees) COALESCEs display_name over username. Rename
updates display_name with no dedup. Real users are unchanged (display_name NULL →
COALESCE falls through to username). Migration adds the nullable column; existing
guests keep their current username via the COALESCE fallback.

This also unblocks ctx.users.getById (the audit's #4 fix), whose projection selects
display_name. Tests: two "Jake" guests on two trips both keep the name; the two
codified-the-old-behaviour guest tests corrected.

* fix(costs): don't re-freeze a settlement's FX rate on an unrelated edit (#1445)

The full audit found that updateSettlement called freezeForeignRate without the
"currency unchanged" guard the item path has, so any edit of a foreign-currency
settlement (e.g. correcting from/to) re-fetched the LIVE rate and overwrote the
frozen one — re-opening an already-balanced position with a small residual, the
exact drift #1445 was meant to prevent.

freezeForeignRate's unchanged-check was item-centric (it queried budget_items),
which a settlement (a different table) can't use. Give it an explicit
existingCurrency param; updateSettlement now reads the settlement's stored currency
and passes it, so an edit that doesn't change the currency keeps the frozen rate
(the service UPDATE already preserves exchange_rate when it's left unset). Tests
cover both: unchanged currency keeps the rate, a real currency change re-freezes.

* feat(plugins): add inter plugin dependency support and addon dependency support

* feat(plugins): add inter plugin dependency support and addon dependency support

* docs(plugins) inter dependencies

---------

Co-authored-by: Maurice <mauriceboe@icloud.com>
Co-authored-by: trongbinhnguyen <43725147+trongbinh15@users.noreply.github.com>
2026-07-06 00:27:42 +02:00

446 lines
30 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 { TranslationStrings } from '../types';
const settings: TranslationStrings = {
'settings.title': '設定',
'settings.subtitle': '個人設定を管理',
'settings.tabs.display': '表示',
'settings.tabs.map': '地図',
'settings.tabs.notifications': '通知',
'settings.tabs.integrations': '連携',
'settings.tabs.account': 'アカウント',
'settings.tabs.offline': 'オフライン',
'settings.tabs.about': '情報',
'settings.map': '地図',
'settings.mapTemplate': '地図テンプレート',
'settings.mapTemplatePlaceholder.select': 'テンプレートを選択…',
'settings.mapDefaultHint': '空欄の場合は OpenStreetMap(既定)を使用',
'settings.mapTemplatePlaceholder': 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
'settings.mapHint': '地図タイルのURLテンプレート',
'settings.mapProvider': '地図プロバイダー',
'settings.mapProviderHint': '旅程プランナーと日記地図に影響します。Atlas は常に Leaflet を使用します。',
'settings.mapLeafletSubtitle': 'クラシックな2D、任意のラスタータイル',
'settings.mapMapboxSubtitle': 'ベクタータイル、3D建物・地形',
'settings.mapMapLibreSubtitle': 'OpenFreeMap ベクタータイル、トークン不要',
'settings.mapExperimental': '実験的',
'settings.mapMapboxToken': 'Mapbox アクセストークン',
'settings.mapMapboxTokenHint': 'mapbox.com の公開トークン(pk.*)',
'settings.mapMapboxTokenLink': 'mapbox.com → Access tokens',
'settings.mapStyle': '地図スタイル',
'settings.mapStylePlaceholder': 'Mapboxスタイルを選択',
'settings.mapStyleHint': 'プリセットまたは mapbox://styles/USER/ID のURL',
'settings.mapOpenFreeMapStylePlaceholder': 'OpenFreeMapスタイルを選択',
'settings.mapOpenFreeMapStyleHint':
'プリセットまたは OpenFreeMap スタイルのURL。OpenFreeMap スタイルはトークンなしで動作します。',
'settings.map3dBuildings': '3D建物・地形',
'settings.map3dHint': 'ピッチ+実際の3D押し出し表示。衛星含む全スタイルで動作。',
'settings.mapHighQuality': '高品質モード',
'settings.mapHighQualityHint': 'アンチエイリアス+地球投影で、より鮮明でリアルに表示。',
'settings.mapHighQualityWarning': '低性能デバイスではパフォーマンスに影響する場合があります。',
'settings.mapTipLabel': 'ヒント:',
'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.weatherKey': 'OpenWeatherMap APIキー',
'settings.weatherKeyHint': '天気情報用。openweathermap.org/api で無料取得',
'settings.keyPlaceholder': 'キーを入力…',
'settings.configured': '設定済み',
'settings.saveKeys': 'キーを保存',
'settings.display': '表示',
'settings.colorMode': 'カラーモード',
'settings.light': 'ライト',
'settings.dark': 'ダーク',
'settings.auto': '自動',
'settings.language': '言語',
'settings.temperature': '温度単位',
'settings.distance': '距離単位',
'settings.timeFormat': '時刻形式',
'settings.bookingLabels': '予約ルートのラベル',
'settings.bookingLabelsHint': '地図に駅・空港名を表示。オフ時はアイコンのみ。',
'settings.blurBookingCodes': '予約コードをぼかす',
'settings.aiAlwaysRetry': 'Always retry booking imports with AI',
'settings.aiAlwaysRetryHint': 'When a file cannot be read by the standard parser, automatically retry it with AI.',
'settings.optimizeFromAccommodation': '宿泊先を起点にルートを最適化',
'settings.optimizeFromAccommodationHint':
'その日を最適化する際、朝に目覚める宿泊先を起点にし、その晩にチェックインする宿泊先を終点としてルートを組みます。',
'settings.notifications': '通知',
'settings.notifyTripInvite': '旅行の招待',
'settings.notifyBookingChange': '予約の変更',
'settings.notifyTripReminder': '旅行リマインダー',
'settings.notifyTodoDue': 'ToDoの期限',
'settings.notifyVacayInvite': 'Vacay fusion の招待',
'settings.notifyPhotosShared': '共有写真(Immich)',
'settings.notifyCollabMessage': 'チャットメッセージ(Collab)',
'settings.notifyPackingTagged': '持ち物リスト:割り当て',
'settings.notifyWebhook': 'Webhook通知',
'settings.notifyVersionAvailable': '新しいバージョン',
'settings.notificationPreferences.email': 'メール',
'settings.notificationPreferences.webhook': 'Webhook',
'settings.notificationPreferences.inapp': 'アプリ内',
'settings.notificationPreferences.ntfy': 'Ntfy',
'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.saved': 'Webhook URLを保存しました',
'settings.webhookUrl.test': 'テスト',
'settings.webhookUrl.testSuccess': 'テストWebhookを送信しました',
'settings.webhookUrl.testFailed': 'テストWebhookに失敗しました',
'settings.ntfyUrl.topicLabel': 'Ntfy トピック',
'settings.ntfyUrl.topicPlaceholder': 'my-trek-alerts',
'settings.ntfyUrl.serverLabel': 'Ntfy サーバーURL(任意)',
'settings.ntfyUrl.serverPlaceholder': 'https://ntfy.sh',
'settings.ntfyUrl.hint': 'ntfyトピックを入力してください。サーバー未入力時は管理者設定の既定値を使用します。',
'settings.ntfyUrl.tokenLabel': 'アクセストークン(任意)',
'settings.ntfyUrl.tokenHint': 'パスワード保護トピックに必要です。',
'settings.ntfyUrl.saved': 'Ntfy設定を保存しました',
'settings.ntfyUrl.test': 'テスト',
'settings.ntfyUrl.testSuccess': 'テスト通知を送信しました',
'settings.ntfyUrl.testFailed': 'テスト通知に失敗しました',
'settings.ntfyUrl.tokenCleared': 'アクセストークンを削除しました',
'settings.notificationsDisabled': '通知が未設定です。管理者に有効化を依頼してください。',
'settings.notificationsActive': '有効なチャネル',
'settings.notificationsManagedByAdmin': '通知イベントは管理者が設定します。',
'settings.on': 'オン',
'settings.off': 'オフ',
'settings.mcp.title': 'MCP設定',
'settings.mcp.endpoint': 'MCPエンドポイント',
'settings.mcp.clientConfig': 'クライアント設定',
'settings.mcp.clientConfigHint': '<your_token> を下のAPIトークンに置き換えてください。',
'settings.mcp.clientConfigHintOAuth':
'<your_client_id> と <your_client_secret> をOAuth 2.1の認証情報に置き換えてください。',
'settings.mcp.copy': 'コピー',
'settings.mcp.copied': 'コピーしました!',
'settings.mcp.apiTokens': 'APIトークン',
'settings.mcp.createToken': '新しいトークン',
'settings.mcp.noTokens': 'トークンがありません。作成してください。',
'settings.mcp.tokenCreatedAt': '作成日',
'settings.mcp.tokenUsedAt': '最終使用',
'settings.mcp.deleteTokenTitle': 'トークン削除',
'settings.mcp.deleteTokenMessage': 'このトークンは即時無効になります。',
'settings.mcp.modal.createTitle': 'APIトークン作成',
'settings.mcp.modal.tokenName': 'トークン名',
'settings.mcp.modal.tokenNamePlaceholder': '例:Claude Desktop',
'settings.mcp.modal.creating': '作成中…',
'settings.mcp.modal.create': '作成',
'settings.mcp.modal.createdTitle': 'トークン作成完了',
'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.oauth.clients': 'OAuth 2.1 クライアント',
'settings.oauth.clientsHint': '第三者アプリが接続できるよう登録します。',
'settings.oauth.createClient': '新規クライアント',
'settings.oauth.noClients': '登録されたクライアントはありません。',
'settings.oauth.clientId': 'クライアントID',
'settings.oauth.clientSecret': 'クライアントシークレット',
'settings.oauth.deleteClient': 'クライアント削除',
'settings.oauth.deleteClientMessage': 'このクライアントは完全に削除されます。',
'settings.oauth.rotateSecret': 'シークレット更新',
'settings.oauth.rotateSecretMessage': '新しいシークレットを生成します。',
'settings.oauth.rotateSecretConfirm': '更新',
'settings.oauth.rotateSecretConfirming': '更新中…',
'settings.oauth.rotateSecretDoneTitle': '新しいシークレット',
'settings.oauth.rotateSecretDoneWarning': '表示は一度きりです。今すぐ保存してください。',
'settings.oauth.activeSessions': '有効なセッション',
'settings.oauth.sessionScopes': 'スコープ',
'settings.oauth.sessionExpires': '有効期限',
'settings.oauth.revoke': '取り消し',
'settings.oauth.revokeSession': 'セッション取り消し',
'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.redirectUrisHint': '1行につき1つ。HTTPS必須。',
'settings.oauth.modal.scopes': '許可スコープ',
'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.toast.createError': '登録に失敗しました',
'settings.oauth.toast.deleted': 'クライアントを削除しました',
'settings.oauth.toast.deleteError': '削除に失敗しました',
'settings.oauth.toast.revoked': 'セッションを取り消しました',
'settings.oauth.toast.revokeError': '取り消しに失敗しました',
'settings.oauth.toast.rotateError': '更新に失敗しました',
'settings.account': 'アカウント',
'settings.about': '情報',
'settings.about.reportBug': '不具合報告',
'settings.about.reportBugHint': '問題を見つけたらお知らせください',
'settings.about.featureRequest': '機能リクエスト',
'settings.about.featureRequestHint': '新機能を提案',
'settings.about.wikiHint': 'ドキュメント・ガイド',
'settings.about.supporters.badge': '月額サポーター',
'settings.about.supporters.title': 'TREKの旅仲間',
'settings.about.supporters.subtitle': '皆さんの支援がTREKの未来を支えています。',
'settings.about.supporters.since': '{date}からサポート',
'settings.about.supporters.tierEmpty': '最初の一人に',
'settings.about.supporter.tier.noReturnTicket': '片道切符',
'settings.about.supporter.tier.lostLuggageVip': 'ロストラゲージVIP',
'settings.about.supporter.tier.businessClassDreamer': 'ビジネスクラスの夢',
'settings.about.supporter.tier.budgetTraveller': '節約トラベラー',
'settings.about.supporter.tier.hostelBunkmate': 'ホステル仲間',
'settings.about.description': 'TREKはセルフホスト型の旅行プランナーです。',
'settings.about.madeWith': 'Made with',
'settings.about.madeBy': 'by Maurice とオープンソースコミュニティ。',
'settings.username': 'ユーザー名',
'settings.email': 'メール',
'settings.role': '役割',
'settings.roleAdmin': '管理者',
'settings.oidcLinked': '連携先',
'settings.changePassword': 'パスワード変更',
'settings.currentPassword': '現在のパスワード',
'settings.currentPasswordRequired': '現在のパスワードが必要です',
'settings.newPassword': '新しいパスワード',
'settings.confirmPassword': '新しいパスワード(確認)',
'settings.updatePassword': 'パスワード更新',
'settings.passwordRequired': '現在と新しいパスワードを入力してください',
'settings.passwordTooShort': '8文字以上必要です',
'settings.passwordMismatch': 'パスワードが一致しません',
'settings.passwordWeak': '大文字・小文字・数字・記号を含めてください',
'settings.passwordChanged': 'パスワードを変更しました',
'settings.mustChangePassword': '続行するにはパスワード変更が必要です。',
'settings.deleteAccount': 'アカウント削除',
'settings.deleteAccountTitle': 'アカウントを削除しますか?',
'settings.deleteAccountWarning': 'すべてのデータが完全に削除されます。',
'settings.deleteAccountConfirm': '完全に削除',
'settings.deleteBlockedTitle': '削除できません',
'settings.deleteBlockedMessage': '唯一の管理者です。別のユーザーを管理者にしてください。',
'settings.roleUser': 'ユーザー',
'settings.saveProfile': 'プロフィールを保存',
'settings.toast.mapSaved': '地図設定を保存しました',
'settings.toast.keysSaved': 'APIキーを保存しました',
'settings.toast.displaySaved': '表示設定を保存しました',
'settings.toast.profileSaved': 'プロフィールを保存しました',
'settings.uploadAvatar': 'プロフィール画像をアップロード',
'settings.removeAvatar': 'プロフィール画像を削除',
'settings.avatarUploaded': 'プロフィール画像を更新しました',
'settings.avatarRemoved': 'プロフィール画像を削除しました',
'settings.avatarError': 'アップロードに失敗しました',
'settings.mfa.title': '二要素認証(2FA)',
'settings.mfa.description': 'サインイン時に追加の認証を行います。',
'settings.mfa.requiredByPolicy': '管理者により2FAが必須です。',
'settings.mfa.backupTitle': 'バックアップコード',
'settings.mfa.backupDescription': '認証アプリが使えない場合に使用します。',
'settings.mfa.backupWarning': '今すぐ保存してください。各コードは1回限りです。',
'settings.mfa.backupCopy': 'コードをコピー',
'settings.mfa.backupDownload': 'TXTでダウンロード',
'settings.mfa.backupPrint': '印刷 / PDF',
'settings.mfa.backupCopied': 'バックアップコードをコピーしました',
'settings.mfa.enabled': '2FAは有効です。',
'settings.mfa.disabled': '2FAは無効です。',
'settings.mfa.setup': '認証アプリを設定',
'settings.mfa.scanQr': 'QRコードをスキャンするか、手動で入力してください。',
'settings.mfa.secretLabel': 'シークレットキー(手動入力)',
'settings.mfa.codePlaceholder': '6桁コード',
'settings.mfa.enable': '2FAを有効化',
'settings.mfa.cancelSetup': 'キャンセル',
'settings.mfa.disableTitle': '2FAを無効化',
'settings.mfa.disableHint': 'パスワードと現在のコードを入力してください。',
'settings.mfa.disable': '2FAを無効化',
'settings.mfa.toastEnabled': '2FAを有効にしました',
'settings.mfa.toastDisabled': '2FAを無効にしました',
'settings.mfa.demoBlocked': 'デモモードでは利用できません',
'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.passkey.title': 'パスキー',
'settings.passkey.description':
'指紋、顔認証、PIN、またはハードウェアキーを使うパスキーで、より速く、フィッシングに強いサインインができます。パスワードはバックアップとして残ります。',
'settings.passkey.notConfigured':
'パスキーは有効ですが、このサーバーではまだ完全には設定されていません。管理者に WebAuthn ドメインの設定を依頼してください。',
'settings.passkey.add': 'パスキーを追加',
'settings.passkey.addTitle': 'パスキーを追加',
'settings.passkey.passwordPrompt': '現在のパスワードを確認し、デバイスの指示に従ってください。',
'settings.passkey.passwordRequired': '現在のパスワードが必要です。',
'settings.passkey.namePlaceholder': '名前(任意、例:"iPhone")',
'settings.passkey.addedToast': 'パスキーを追加しました',
'settings.passkey.added': '追加済み',
'settings.passkey.addError': 'パスキーを追加できませんでした',
'settings.passkey.cancelled': 'パスキーの設定をキャンセルしました',
'settings.passkey.deleted': 'パスキーを削除しました',
'settings.passkey.deleteConfirm': 'このパスキーを削除しますか?パスワードで確認してください。',
'settings.passkey.rename': '名前を変更',
'settings.passkey.defaultName': 'パスキー',
'settings.passkey.synced': '同期済み',
'settings.passkey.deviceBound': 'このデバイス',
'settings.passkey.lastUsed': '最終使用',
'settings.passkey.neverUsed': '未使用',
'settings.mapPoiPill': '地図でスポットを探す',
'settings.mapPoiPillHint':
'旅行の地図にカテゴリピルを表示して、OpenStreetMapから近くのレストランや宿泊施設などを見つけられます。',
'settings.airtrail.title': 'AirTrail',
'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.writeBack': '変更を AirTrail に書き戻す',
'settings.airtrail.writeBackHint':
'既定ではオフ: AirTrail が信頼できる情報源で、TREK は読み取りのみを行います。TREK で行った編集を AirTrail に書き戻すにはオンにします。',
'settings.airtrail.connected': '接続済み',
'settings.airtrail.notConnected': '未接続',
'settings.airtrail.toast.saved': 'AirTrail の接続を保存しました',
'settings.airtrail.toast.saveError': '接続を保存できませんでした',
'settings.airtrail.test.button': '接続をテスト',
'settings.airtrail.test.success': '接続成功 — {count} 件のフライトが見つかりました',
'settings.airtrail.test.failed': '接続に失敗しました',
'settings.aiParsing.title': 'AI解析',
'settings.aiParsing.hint':
'アップロードしたファイルから予約情報を抽出するために、自分のAIモデルを使用します。これは、管理者がインスタンス全体のモデルを設定していない場合にのみ適用されます。',
'settings.aiParsing.provider': 'プロバイダー',
'settings.aiParsing.providerLocal': 'ローカル (Ollama)',
'settings.aiParsing.providerOpenai': 'OpenAI',
'settings.aiParsing.providerAnthropic': 'Anthropic',
'settings.aiParsing.model': 'モデル',
'settings.aiParsing.baseUrl': 'ベースURL',
'settings.aiParsing.baseUrlHint': 'モデルの実行場所 — ローカルのOllamaサーバー、またはOpenAI互換のエンドポイント。',
'settings.aiParsing.apiKey': 'APIキー',
'settings.aiParsing.apiKeyHint': '暗号化して保存されます。現在のキーを保持する場合は空欄のままにしてください。',
'settings.aiParsing.multimodal': 'ドキュメントを画像として送信',
'settings.aiParsing.multimodalHint': '画像認識対応モデル向け — 抽出したテキストの代わりに元のPDFを送信します。',
'settings.aiParsing.toast.saved': 'AI設定を保存しました',
'settings.aiParsing.toast.saveError': 'AI設定を保存できませんでした',
'settings.tabs.appearance': 'Appearance',
'settings.appearance.theme': 'Theme',
'settings.appearance.scheme': 'Color scheme',
'settings.appearance.scheme.default': 'Default',
'settings.appearance.scheme.highContrast': 'High contrast',
'settings.appearance.scheme.indigo': 'Indigo',
'settings.appearance.scheme.teal': 'Teal',
'settings.appearance.scheme.rose': 'Rose',
'settings.appearance.scheme.amber': 'Amber',
'settings.appearance.scheme.violet': 'Violet',
'settings.appearance.scheme.custom': 'Custom',
'settings.appearance.customAccent': 'Custom accent',
'settings.appearance.contrastOk': 'Good contrast',
'settings.appearance.contrastLow': 'Low contrast',
'settings.appearance.readability': 'Readability',
'settings.appearance.transparency': 'Transparency',
'settings.appearance.transparencyHint':
'Glassy translucent surfaces. Turn off for solid, higher-contrast backgrounds.',
'settings.appearance.reduceMotion': 'Reduce motion',
'settings.appearance.reduceMotionHint': 'Minimize animations and transitions.',
'settings.appearance.density': 'Density',
'settings.appearance.comfortable': 'Comfortable',
'settings.appearance.compact': 'Compact',
'settings.appearance.textSize': 'Text size',
'settings.appearance.advancedTextSizes': 'Advanced text sizes',
'settings.appearance.hideAdvanced': 'Hide advanced',
'settings.appearance.tier.title': 'Titles',
'settings.appearance.tier.subtitle': 'Subtitles',
'settings.appearance.tier.body': 'Body',
'settings.appearance.tier.caption': 'Captions',
'settings.appearance.dashboardWidgets': 'Dashboard widgets',
'settings.appearance.dashboardWidgetsHint': 'Show or hide dashboard widgets independently on desktop and mobile.',
'settings.appearance.desktop': 'Desktop',
'settings.appearance.mobile': 'Mobile',
'settings.appearance.widget.sidebar': 'Right sidebar',
'settings.appearance.widget.currency': 'Currency',
'settings.appearance.widget.collections': 'コレクション',
'settings.appearance.widget.timezones': 'Timezones',
'settings.appearance.widget.upcomingReservations': 'Upcoming reservations',
'settings.appearance.widget.atlas': 'Atlas / countries',
'settings.appearance.widget.tripsTotal': 'Trips total',
'settings.appearance.widget.daysTraveled': 'Days traveled',
'settings.appearance.widget.distanceFlown': 'Distance flown',
'settings.appearance.reset': 'Reset to defaults',
'settings.appearance.group.belowHero': 'Below the hero',
'settings.appearance.group.bottomOfPage': 'Bottom of page',
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
'settings.appearance.densityHint':
'Compact tightens spacing and padding for a denser layout that fits more on screen.',
'settings.appearance.textSizeAll': 'Everything',
'settings.appearance.perSize': 'Adjust each size separately',
'settings.appearance.size.large': 'Large',
'settings.appearance.size.medium': 'Medium',
'settings.appearance.size.normal': 'Normal',
'settings.appearance.size.small': 'Small',
'settings.appearance.preview.large': 'Large heading',
'settings.appearance.preview.medium': 'Medium subtitle',
'settings.appearance.preview.normal': 'Normal body text',
'settings.appearance.preview.small': 'Small caption / address',
'settings.appearance.example.large': 'Headings, big numbers',
'settings.appearance.example.medium': 'Sub-headings',
'settings.appearance.example.normal': 'Place names, descriptions',
'settings.appearance.example.small': 'Addresses, labels',
'settings.appearance.experimental': 'Experimental',
'settings.general.languageRegion': 'Language & region',
'settings.general.travelMap': 'Travel & map',
// ── Offline (#1135)
'settings.offline.cache.title': 'オフラインキャッシュ',
'settings.offline.mode.title': 'オフラインモード',
'settings.offline.mode.force': 'オフラインモードを強制',
'settings.offline.mode.forceHint':
'キャッシュ済みのデータのみで作業し、変更はキューに保存します。オフにすると再接続して同期します。',
'settings.offline.mode.active': 'オフラインモードがオンです — 変更はキューに保存され、オフにすると同期されます。',
'settings.offline.prepare.title': 'オフラインの準備',
'settings.offline.prepare.hint':
'接続が切れる前に、必要なもの — 旅行データ、ドキュメント、地図タイル — をすべてダウンロードします。',
'settings.offline.prepare.button': 'オフライン用にダウンロード',
'settings.offline.prepare.running': 'ダウンロード中…',
'settings.offline.prepare.done': 'オフラインで利用できます',
'settings.offline.prepare.phase.trips': '旅行データ',
'settings.offline.prepare.phase.files': 'ドキュメント',
'settings.offline.prepare.phase.tiles': '地図タイル',
'settings.offline.resync': '今すぐ再同期',
'settings.offline.resyncing': '同期中…',
'settings.offline.storage.title': 'オフラインで保存する内容',
'settings.offline.storage.tiles': '地図タイルをオフラインで保存',
'settings.offline.storage.tilesHint':
'地図タイルは最も多くのストレージを使用します。これをオフにすると、旅行データとドキュメントのみをオフラインで保存します。',
'settings.offline.storage.tripsTitle': '旅行',
'settings.offline.storage.tripOn': 'オフラインで保存済み',
'settings.offline.storage.tripOff': '未保存',
'settings.offline.clear': 'キャッシュを消去',
'settings.offline.clearConfirm': 'すべてのオフライン旅行データを消去しますか?オンライン時にいつでも再同期できます。',
'settings.offline.stats.trips': 'キャッシュ済みの旅行',
'settings.offline.stats.pending': '保留中の変更',
'settings.offline.stats.failed': '失敗した変更',
'settings.offline.stats.conflicts': '競合',
'settings.offline.empty': 'キャッシュされた旅行はまだありません。インターネットに接続して同期してください。',
'settings.offline.loading': '読み込み中…',
'settings.offline.conflicts.title': '同期の競合',
'settings.offline.conflicts.hint':
'オフラインで行った変更が、サーバー上の新しい変更と競合しています。どちらのバージョンを保持するか選択してください。',
'settings.offline.conflicts.keepMine': '自分の変更を保持',
'settings.offline.conflicts.keepServer': 'サーバーの変更を保持',
'settings.offline.conflicts.mine': 'あなたのバージョン',
'settings.offline.conflicts.server': 'サーバーのバージョン',
'settings.offline.conflicts.item': '“{name}”への変更',
'settings.offline.conflicts.strategyTitle': '競合が発生したとき',
'settings.offline.conflicts.strategy.ask': '毎回確認する',
'settings.offline.conflicts.strategy.mine': '常に自分のバージョンを保持',
'settings.offline.conflicts.strategy.server': '常にサーバーのバージョンを保持',
'settings.offline.banner.offline': 'オフライン',
'settings.offline.banner.forced': 'オフラインモード',
'settings.offline.banner.queued': 'オフライン · {count} 件キュー',
'settings.offline.banner.syncing': '{count} 件を同期中…',
'settings.offline.banner.failed': '同期に失敗: {count}',
'settings.offline.banner.conflicts': '競合: {count}',
};
export default settings;