Skip to content

Commit

Permalink
feat: Update RouteModal to use localized route title
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedhossamdev committed Nov 3, 2024
1 parent d6d298b commit 8d92b9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/navigation/RouteModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
export let selectedRoute;
export let stops;
export let mapProvider;
import { t } from 'svelte-i18n';
function handleStopItemClick(event) {
const { stop } = event.detail;
Expand All @@ -18,7 +19,8 @@
<div>
<div class="h-36 rounded-lg bg-[#1C1C1E] bg-opacity-80 p-4">
<h1 class="mb-6 text-center text-2xl font-bold text-white">
Route: {selectedRoute.shortName}
{$t('route').charAt(0).toUpperCase() + $t('route').slice(1)}
{selectedRoute.shortName}
</h1>
<h2 class="mb-6 text-center text-xl text-white">{selectedRoute.description}</h2>
</div>
Expand Down

0 comments on commit 8d92b9f

Please sign in to comment.