mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 01:44:13 +00:00
a5de1bc52d
The trip PDF gets a new layout in the app's current look, with nothing it printed before left out and more of each place on the page. - Cover: the trip photo full bleed, title and dates over it, the trip's figures on frosted tiles. - Overview: the route map, every day at a glance (colour, date, plan, the night's stay, stops, cost) and all bookings and stays with their codes. - Days: the header in the day's map colour, a photo strip of the day's stops, where the night is spent, then the plan as a timeline with the times on the left. - Places: photo or category tile, category, duration, price, rating, tags, address, coordinates, description, notes, opening hours of that day, phone, website, e-mail and the members going. The rating, e-mail, hours and reservation note come from the trip's place, since the assignment only carries a projection of it. - Bookings: route first, then airline, number, seat or platform as badges, each leg with its own code, status and the booking's code. - A second row of switches in the preview: overview, photos, coordinates, and contact and hours, next to page per day, large text and transport notes. Each one is a class on the document and remembered. The document is split into modules for its helpers, icons, stylesheet, cover and overview, and the day, so the export itself only gathers the data.
28 lines
992 B
TypeScript
28 lines
992 B
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const pdf: TranslationStrings = {
|
|
'pdf.travelPlan': 'Reisiplaan',
|
|
'pdf.planned': 'Plaanis',
|
|
'pdf.costLabel': 'Maksumus',
|
|
'pdf.preview': 'PDF-i eelvaade',
|
|
'pdf.saveAsPdf': 'Salvesta PDF-ina',
|
|
'pdf.openInSafari': 'Ava Safaris',
|
|
'pdf.safariHint':
|
|
'iOS ei saa avakuval olevast rakendusest printida. Safari avab selle reisi valmis ekspordiga ja seal saad PDF-i salvestada.',
|
|
'pdf.pageBreakPerDay': 'Iga päev uuel lehel',
|
|
'pdf.transportNotes': 'Transpordi märkmed',
|
|
'pdf.largeText': 'Suur kiri',
|
|
'pdf.mapTitle': 'Marsruudi ülevaade',
|
|
'pdf.distanceLabel': 'Vahemaa',
|
|
'pdf.mapCredit': 'Riigipiirid: geoBoundaries (CC BY 4.0)',
|
|
'pdf.showOverview': 'Ülevaade',
|
|
'pdf.showPhotos': 'Fotod',
|
|
'pdf.showDetails': 'Kontakt ja lahtiolekuajad',
|
|
'pdf.atAGlance': 'Ühe pilguga',
|
|
'pdf.bookings': 'Broneeringud ja majutus',
|
|
'pdf.day': 'Päev',
|
|
'pdf.stay': 'Majutus',
|
|
'pdf.plan': 'Plaan',
|
|
};
|
|
export default pdf;
|