mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 05:21:15 +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
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const pdf: TranslationStrings = {
|
|
'pdf.travelPlan': 'Plan podróży',
|
|
'pdf.planned': 'Zaplanowane',
|
|
'pdf.costLabel': 'Koszt',
|
|
'pdf.preview': 'Podgląd PDF',
|
|
'pdf.saveAsPdf': 'Zapisz jako PDF',
|
|
'pdf.openInSafari': 'Otwórz w Safari',
|
|
'pdf.safariHint':
|
|
'iOS nie może drukować z aplikacji na ekranie początkowym. Safari otworzy tę podróż z gotowym eksportem i tam zapiszesz PDF.',
|
|
'pdf.pageBreakPerDay': 'Podział strony dla każdego dnia',
|
|
'pdf.transportNotes': 'Notatki do transportu',
|
|
'pdf.largeText': 'Duży tekst',
|
|
'pdf.mapTitle': 'Przegląd trasy',
|
|
'pdf.distanceLabel': 'Dystans',
|
|
'pdf.mapCredit': 'Kontury krajów: geoBoundaries (CC BY 4.0)',
|
|
'pdf.showOverview': 'Przegląd',
|
|
'pdf.showPhotos': 'Zdjęcia',
|
|
'pdf.showDetails': 'Kontakt i godziny otwarcia',
|
|
'pdf.atAGlance': 'W skrócie',
|
|
'pdf.bookings': 'Rezerwacje i noclegi',
|
|
'pdf.day': 'Dzień',
|
|
'pdf.stay': 'Nocleg',
|
|
'pdf.plan': 'Plan', // same-as-en
|
|
};
|
|
export default pdf;
|