Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add missing translations #982

Merged
merged 5 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
"youtube_modal_info_title": "Video tutorial (Hebrew)",
"open_video_about_this_page": "Open video about this page",
"publicAppealPage": {
"title": "קול קורא",
"title": "Public Appeal",
"tasks": [
{
"title": "What affect does the traffic have on the overall execusion time of bus ride?",
Expand Down
5 changes: 3 additions & 2 deletions src/pages/timeBasedMap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { INPUT_SIZE } from 'src/resources/sizes'
import { VehicleLocation } from 'src/model/vehicleLocation'
import useVehicleLocations from 'src/api/useVehicleLocations'
import getAgencyList, { Agency } from 'src/api/agencyList'
import i18n from 'src/locale/allTranslations'

export interface Point {
loc: [number, number]
Expand Down Expand Up @@ -158,8 +159,8 @@ export default function TimeBasedMapPage() {
{loaded} {`- `}
{t('show_x_bus_locations')} {` `}
{t('from_time_x_to_time_y')
.replace('XXX', moment(from).format('hh:mm A'))
.replace('YYY', moment(to).format('hh:mm A'))}
.replace('XXX', moment(from).locale(i18n.language).format('hh:mm A'))
.replace('YYY', moment(to).locale(i18n.language).format('hh:mm A'))}
</p>
</Grid>
<Grid xs={1}>{isLoading && <CircularProgress size="20px" />}</Grid>
Expand Down
Loading