feat(watch): add localizations for workout UI strings

This commit is contained in:
2026-08-09 18:03:36 +02:00
parent 8512bee27a
commit 1387d6bbdb
3 changed files with 241 additions and 4 deletions
+3 -2
View File
@@ -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)
}