• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wger-project / flutter / 30854254088

03 Aug 2026 09:21PM UTC coverage: 40.895% (-15.0%) from 55.93%
30854254088

Pull #1260

github

web-flow
Merge d93794de5 into e3affdd4f
Pull Request #1260: WIP: health sync

9980 of 24404 relevant lines covered (40.89%)

1.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

53.66
/lib/core/i18n.dart
1
// This code is autogenerated in the backend repo in extract-i18n.py do not edit!
2

3
// Translate dynamic strings that are returned from the server
4
// These strings such as categories or equipment are returned by the server
5
// in English and need to be translated here in the application (there are
6
// probably better ways to do this, but that's the way it is right now).
7

8
import 'package:flutter/widgets.dart';
9
import 'package:logging/logging.dart';
10
import 'package:wger/l10n/generated/app_localizations.dart';
11

12
String getServerStringTranslation(String value, BuildContext context) {
2✔
13
  final logger = Logger('getServerStringTranslation');
2✔
14
  final i18n = AppLocalizations.of(context);
2✔
15

16
  switch (value) {
17
    case 'Abs':
2✔
18
      return i18n.abs;
×
19

20
    case 'Arms':
2✔
21
      return i18n.arms;
×
22

23
    case 'Back':
2✔
24
      return i18n.back;
×
25

26
    case 'Barbell':
2✔
27
      return i18n.barbell;
×
28

29
    case 'Bench':
2✔
30
      return i18n.bench;
×
31

32
    case 'Biceps':
2✔
33
      return i18n.biceps;
1✔
34

35
    case 'Body Weight':
2✔
36
      return i18n.body_weight;
×
37

38
    case 'Calves':
2✔
39
      return i18n.calves;
×
40

41
    case 'Cardio':
2✔
42
      return i18n.cardio;
×
43

44
    case 'Chest':
2✔
45
      return i18n.chest;
×
46

47
    case 'Dumbbell':
2✔
48
      return i18n.dumbbell;
×
49

50
    case 'Glutes':
2✔
51
      return i18n.glutes;
1✔
52

53
    case 'Gym mat':
2✔
54
      return i18n.gym_mat;
×
55

56
    case 'Hamstrings':
2✔
57
      return i18n.hamstrings;
×
58

59
    case 'Incline bench':
2✔
60
      return i18n.incline_bench;
×
61

62
    case 'Kettlebell':
2✔
63
      return i18n.kettlebell;
×
64

65
    case 'Kilometers':
2✔
66
      return i18n.kilometers;
×
67

68
    case 'Kilometers Per Hour':
2✔
69
      return i18n.kilometers_per_hour;
×
70

71
    case 'Lats':
2✔
72
      return i18n.lats;
×
73

74
    case 'Legs':
2✔
75
      return i18n.legs;
×
76

77
    case 'Lower back':
2✔
78
      return i18n.lower_back;
×
79

80
    case 'Max Reps':
2✔
81
      return i18n.max_reps;
×
82

83
    case 'Miles':
2✔
84
      return i18n.miles;
×
85

86
    case 'Miles Per Hour':
2✔
87
      return i18n.miles_per_hour;
×
88

89
    case 'Minutes':
2✔
90
      return i18n.minutes;
×
91

92
    case 'Plates':
2✔
93
      return i18n.plates;
×
94

95
    case 'Pull-up bar':
2✔
96
      return i18n.pull_up_bar;
×
97

98
    case 'Quads':
2✔
99
      return i18n.quads;
×
100

101
    case 'Repetitions':
2✔
102
      return i18n.repetitions;
2✔
103

104
    case 'Resistance band':
2✔
105
      return i18n.resistance_band;
×
106

107
    case 'SZ-Bar':
2✔
108
      return i18n.sz_bar;
×
109

110
    case 'Seconds':
2✔
111
      return i18n.seconds;
×
112

113
    case 'Shoulders':
2✔
114
      return i18n.shoulders;
×
115

116
    case 'Swiss Ball':
2✔
117
      return i18n.swiss_ball;
×
118

119
    case 'Triceps':
2✔
120
      return i18n.triceps;
×
121

122
    case 'Until Failure':
2✔
123
      return i18n.until_failure;
×
124

125
    case 'kg':
2✔
126
      return i18n.kg;
2✔
127

128
    case 'lb':
×
129
      return i18n.lb;
×
130

131
    case 'none (bodyweight exercise)':
×
132
      return i18n.none__bodyweight_exercise_;
×
133

134
    default:
135
      logger.warning('Could not translate the server string $value');
×
136
      return value;
137
  }
138
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc