Skip to content

Commit

Permalink
polish translation
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Jan 8, 2025
1 parent 991a3dc commit 860da4d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
40 changes: 40 additions & 0 deletions ui/src/lib/i18n/pl.ts
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 2 additions & 0 deletions ui/src/lib/i18n/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -33,6 +34,7 @@ export type Translations = {

const translations: Map<string, Translations> = new Map(
Object.entries({
pl,
en,
de,
fr
Expand Down

0 comments on commit 860da4d

Please sign in to comment.