Skip to content

Commit

Permalink
Remove the midnight translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dlurak committed Sep 8, 2024
1 parent 7fc33a6 commit b4c70de
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const fmtDateRange = ([start, end]: DateRange) => {
return t('opening_hours.all_day');
}

return `${fmtDate(start)}-${isMidnight(end) ? t('opening_hours.midnight') : fmtDate(end)}`;
return `${fmtDate(start)}-${fmtDate(end)}`;
};

export type Status = 'opens-soon' | 'closes-soon' | 'opened' | 'closed';
Expand Down
1 change: 0 additions & 1 deletion src/locales/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export default {
'featurepanel.objects_around': 'Orte in der Nähe',

'opening_hours.all_day': '24 Stunden',
'opening_hours.midnight': '24',
'opening_hours.open': 'Geöffnet: __todayTime__',
'opening_hours.now_closed_but_today': 'Geschlossen, heute: __todayTime__',
'opening_hours.today_closed': 'Heute geschlossen',
Expand Down
1 change: 0 additions & 1 deletion src/locales/vocabulary.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export default {
'featurepanel.climbing_restriction': 'Climbing restriction',

'opening_hours.all_day': '24 hours',
'opening_hours.midnight': '12 AM',
'opening_hours.open': 'Open: __todayTime__',
'opening_hours.now_closed_but_today': 'Closed now - Open __todayTime__',
'opening_hours.today_closed': 'Closed today',
Expand Down

0 comments on commit b4c70de

Please sign in to comment.