feat(watch): add localizations for workout UI strings
This commit is contained in:
@@ -8,14 +8,15 @@ struct WorkoutDetailView: View {
|
||||
if let workout = workoutManager.selectedWorkout {
|
||||
Section {
|
||||
VStack(spacing: 8) {
|
||||
Text(workout.name ?? String(localized: "Workout"))
|
||||
Text(workout.name ?? "Workout")
|
||||
.font(.headline)
|
||||
|
||||
Text("\(Int(workout.poolLength))m pool")
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
|
||||
Text("\(workout.sets.reduce(0) { $0 + $1.distancePerRep * $1.repCount })m total")
|
||||
let totalM = workout.sets.reduce(0) { $0 + $1.distancePerRep * $1.repCount }
|
||||
Text("\(totalM)m total")
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user