1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 04:49:37 +02:00

feat: Add "all day" localization strings for multiple languages and enhance transportation date handling

This commit is contained in:
Sean Morley 2025-03-18 17:40:32 -04:00
parent 9fd2a142cb
commit 1dc8e10758
16 changed files with 118 additions and 48 deletions

View file

@ -338,6 +338,17 @@ export let LODGING_TYPES_ICONS = {
other: '❓'
};
export let TRANSPORTATION_TYPES_ICONS = {
car: '🚗',
plane: '✈️',
train: '🚆',
bus: '🚌',
boat: '⛵',
bike: '🚲',
walking: '🚶',
other: '❓'
};
// Helper to check if a given date string represents midnight (all-day)
export function isAllDay(dateStr: string | string[]) {
// Checks for the pattern "T00:00:00.000Z"