Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,20 @@ struct ItineraryPreviewView: View {
Text(Formatters.formatTimeDuration(itinerary.duration))
.font(.title)
.fontWeight(.semibold)

HStack(spacing: 2) {
Text("ETA:")
HStack(spacing: 4) {
Text(OTPLoc("trip_preview.depart_label"))
.foregroundStyle(.secondary)
Text(Formatters.formatDateToTime(itinerary.startTime))
.fontWeight(.medium)
Text("•")
.foregroundStyle(.secondary)
Text(OTPLoc("trip_preview.arrive_label"))
.foregroundStyle(.secondary)
Text(Formatters.formatDateToTime(itinerary.endTime))
.fontWeight(.medium)
.foregroundStyle(.secondary)
}
.font(.subheadline)

legsFlow(itinerary: itinerary)
.frame(
Expand Down
2 changes: 2 additions & 0 deletions OTPKit/Sources/OTPKit/Resources/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
/* Trip Preview */
"trip_preview.cancel_button" = "Cancel";
"trip_preview.start_button" = "Start";
"trip_preview.depart_label" = "Depart:";
"trip_preview.arrive_label" = "Arrive:";

/* Option Row */
"option_row.selected_hint" = "Selected";
Expand Down
2 changes: 2 additions & 0 deletions OTPKit/Sources/OTPKit/Resources/es.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
/* Trip Preview */
"trip_preview.cancel_button" = "Cancelar";
"trip_preview.start_button" = "Comenzar";
"trip_preview.depart_label" = "Salida:";
"trip_preview.arrive_label" = "Llegada:";

/* Option Row */
"option_row.selected_hint" = "Seleccionado";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
/* Trip Preview */
"trip_preview.cancel_button" = "取消";
"trip_preview.start_button" = "开始";
"trip_preview.depart_label" = "出发:";
"trip_preview.arrive_label" = "到达:";

/* Option Row */
"option_row.selected_hint" = "已选择";
Expand Down
Loading