Skip to content

Commit ffd9fa8

Browse files
committed
i18n string
1 parent 704c6df commit ffd9fa8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/map/PopupContent.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script>
2+
import { t } from 'svelte-i18n';
23
let { stopName, arrivalTime, handleStopMarkerSelect } = $props();
34
</script>
45

@@ -13,13 +14,13 @@
1314
})}</span
1415
>
1516
</p>
16-
<div class="mt-auto flex justify-end">
17+
<div class="mt-auto flex justify-center">
1718
<button
1819
type="button"
1920
class="inline-block rounded-lg border border-brand bg-brand px-3 py-1 text-sm font-medium text-white shadow-md transition duration-200 ease-in-out hover:bg-brand-secondary"
2021
onclick={handleStopMarkerSelect}
2122
>
22-
{'view stop'}
23+
{$t('view_stop_information')}
2324
</button>
2425
</div>
2526
</div>

src/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,6 @@
108108
"page": "Page",
109109
"show": "Show",
110110
"hide": "Hide"
111-
}
111+
},
112+
"view_stop_information": "View Stop Information"
112113
}

0 commit comments

Comments
 (0)