Files
TREK/shared/src/i18n/ja/pdf.ts
T
Maurice f8e51cb83d fix(pdf): hand the trip PDF to Safari from the iOS Home Screen app
An iPhone or iPad running TREK from the Home Screen ignores print(), in
the page and in an iframe alike, so "Save as PDF" in the preview did
nothing there. Mobile Safari prints the same preview fine.

In the installed iOS app the preview now shows "Open in Safari" in
place of the dead button, with a line saying why. The link opens the
trip with ?export=pdf, and both shells open their export dialog or
sheet for it, so the PDF is one tap away once Safari is up. The
parameter is dropped once read and survives the login redirect.
Everywhere else the preview prints as before.

The preview overlay moves out of TripPDF.tsx into pdfPreview.ts, which
TripPDF had no room left for under lint:size, and its backdrop and
stacking now use the --overlay and --z-modal tokens.
2026-11-03 09:14:55 +01:00

19 lines
770 B
TypeScript

import type { TranslationStrings } from '../types';
const pdf: TranslationStrings = {
'pdf.travelPlan': '旅行計画',
'pdf.planned': '予定',
'pdf.costLabel': '費用',
'pdf.preview': 'PDFプレビュー',
'pdf.saveAsPdf': 'PDFとして保存',
'pdf.openInSafari': 'Safari で開く',
'pdf.safariHint':
'iOS ではホーム画面のアプリから印刷できません。Safari でこの旅行をエクスポートの準備ができた状態で開き、そこで PDF を保存できます。',
'pdf.pageBreakPerDay': '日ごとに改ページ',
'pdf.transportNotes': '交通機関のメモ',
'pdf.mapTitle': 'ルート概要',
'pdf.distanceLabel': '距離',
'pdf.mapCredit': '国境線: geoBoundaries (CC BY 4.0)',
};
export default pdf;