From 860da4d455e2bbb50186e5e0625ba611cb329a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20G=C3=BCndling?= Date: Wed, 8 Jan 2025 14:17:49 +0100 Subject: [PATCH] polish translation --- ui/src/lib/i18n/pl.ts | 40 ++++++++++++++++++++++++++++++++++ ui/src/lib/i18n/translation.ts | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 ui/src/lib/i18n/pl.ts diff --git a/ui/src/lib/i18n/pl.ts b/ui/src/lib/i18n/pl.ts new file mode 100644 index 000000000..b40395795 --- /dev/null +++ b/ui/src/lib/i18n/pl.ts @@ -0,0 +1,40 @@ +import type { Translations } from './translation'; + +const translations: Translations = { + journeyDetails: 'Szczegóły podróży', + transfers: 'przesiadki', + walk: 'Pieszo', + bike: 'Rower', + cargoBike: 'Rower cargo', + scooterStanding: 'Hulajnoga stojąca', + scooterSeated: 'Hulajnoga z siedziskiem', + car: 'Samochód', + moped: 'Skuter', + from: 'Z', + to: 'Do', + arrival: 'Przyjazd', + departure: 'Odjazd', + duration: 'Czas trwania', + arrivals: 'Przyjazdy', + later: 'później', + earlier: 'wcześniej', + departures: 'Odjazdy', + switchToArrivals: 'Przełącz na przyjazdy', + switchToDepartures: 'Przełącz na odjazdy', + track: 'Tor', + arrivalOnTrack: 'Przyjazd na tor', + tripIntermediateStops: (n: number) => { + switch (n) { + case 0: + return 'Brak przystanków pośrednich'; + case 1: + return '1 przystanek pośredni'; + default: + return `${n} przystanków pośrednich`; + } + }, + sharingProvider: 'Dostawca', + roundtripStationReturnConstraint: 'Pojazd musi zostać zwrócony do stacji początkowej.' +}; + +export default translations; diff --git a/ui/src/lib/i18n/translation.ts b/ui/src/lib/i18n/translation.ts index 6710b474f..6aa91b58e 100644 --- a/ui/src/lib/i18n/translation.ts +++ b/ui/src/lib/i18n/translation.ts @@ -2,6 +2,7 @@ import { browser } from '$app/environment'; import en from './en'; import de from './de'; import fr from './fr'; +import pl from './pl'; export type Translations = { journeyDetails: string; @@ -33,6 +34,7 @@ export type Translations = { const translations: Map = new Map( Object.entries({ + pl, en, de, fr