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
+2 -2
View File
@@ -52,7 +52,7 @@ struct WorkoutListView: View {
} label: {
HStack {
VStack(alignment: .leading, spacing: 4) {
Text(workout.name ?? String(localized: "Workout"))
Text(workout.name ?? "Workout")
.font(.headline)
.foregroundColor(.primary)
Text("\(workout.sets.reduce(0) { $0 + $1.distancePerRep * $1.repCount })m · \(workout.sets.count) sets")
@@ -77,7 +77,7 @@ struct WorkoutListView: View {
ForEach(workoutManager.completedWorkouts.prefix(3)) { workout in
HStack {
VStack(alignment: .leading, spacing: 2) {
Text(workout.name ?? String(localized: "Workout"))
Text(workout.name ?? "Workout")
.font(.subheadline)
.foregroundColor(.primary)
Text(workout.completedAt ?? "")