feat(watch): add localizations for workout UI strings
This commit is contained in:
@@ -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 ?? "")
|
||||
|
||||
Reference in New Issue
Block a user