feat(i18n): add internationalization with i18next and expo-localization

This commit is contained in:
2026-08-08 10:09:30 +02:00
parent 408a2fa10c
commit 9946e78858
81 changed files with 1820 additions and 125 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ struct WorkoutListView: View {
} label: {
HStack {
VStack(alignment: .leading, spacing: 4) {
Text(workout.name ?? "Workout")
Text(workout.name ?? String(localized: "Workout"))
.font(.headline)
.foregroundColor(.primary)
Text("\(workout.sets.reduce(0) { $0 + $1.distancePerRep * $1.repCount })m · \(workout.sets.count) sets")
@@ -73,7 +73,7 @@ struct WorkoutListView: View {
ForEach(workoutManager.completedWorkouts.prefix(3)) { workout in
HStack {
VStack(alignment: .leading, spacing: 2) {
Text(workout.name ?? "Workout")
Text(workout.name ?? String(localized: "Workout"))
.font(.subheadline)
.foregroundColor(.primary)
Text(workout.completedAt ?? "")