Skip to content

Commit

Permalink
translate journey details
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Nov 27, 2024
1 parent 1cad506 commit 32e579b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions ui/src/lib/i18n/de.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Translations } from './translation';

const translations: Translations = {
journeyDetails: 'Verbindungsdetails',
transfers: 'Umstiege',
walk: 'Fußweg',
bike: 'Fahrrad',
Expand Down
1 change: 1 addition & 0 deletions ui/src/lib/i18n/en.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Translations } from './translation';

const translations: Translations = {
journeyDetails: 'Journey Details',
transfers: 'transfers',
walk: 'walk',
bike: 'bike',
Expand Down
1 change: 1 addition & 0 deletions ui/src/lib/i18n/fr.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Translations } from './translation';

const translations: Translations = {
journeyDetails: 'Détails du voyage',
walk: 'Marche',
bike: 'Vélo',
car: 'Voiture',
Expand Down
1 change: 1 addition & 0 deletions ui/src/lib/i18n/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import de from './de';
import fr from './fr';

export type Translations = {
journeyDetails: string;
transfers: string;
walk: string;
bike: string;
Expand Down
4 changes: 2 additions & 2 deletions ui/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
return `${lngLatToStr(l.value.match!)},0`;
}
};
let modes = $derived(['WALK', ...(bikeRental ? ['BIKE_RENTAL'] : [])] as Mode[]);
let modes = $derived(['BIKE', ...(bikeRental ? ['BIKE_RENTAL'] : [])] as Mode[]);
let baseQuery = $derived(
from.value.match && to.value.match
? ({
Expand Down Expand Up @@ -244,7 +244,7 @@
<Control position="top-left">
<Card class="w-[500px] bg-background rounded-lg">
<div class="w-full flex justify-between items-center shadow-md pl-1 mb-1">
<h2 class="ml-2 text-base font-semibold">Journey Details</h2>
<h2 class="ml-2 text-base font-semibold">{t.journeyDetails}</h2>
<Button
variant="ghost"
onclick={() => {
Expand Down

0 comments on commit 32e579b

Please sign in to comment.