@hedia/recommendation-screen 1.7.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,6 +37,14 @@
37
37
  <component name="Git.Settings">
38
38
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
39
39
  </component>
40
+ <component name="GitSEFilterConfiguration">
41
+ <file-type-list>
42
+ <filtered-out-file-type name="LOCAL_BRANCH" />
43
+ <filtered-out-file-type name="REMOTE_BRANCH" />
44
+ <filtered-out-file-type name="TAG" />
45
+ <filtered-out-file-type name="COMMIT_BY_MESSAGE" />
46
+ </file-type-list>
47
+ </component>
40
48
  <component name="ProjectId" id="1fOogROXYQrUWqB0OAyKyFdqkfJ" />
41
49
  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
42
50
  <component name="ProjectViewState">
@@ -51,7 +59,7 @@
51
59
  <property name="ToolWindowGit.ShowToolbar" value="false" />
52
60
  <property name="WebServerToolWindowFactoryState" value="false" />
53
61
  <property name="dart.analysis.tool.window.visible" value="false" />
54
- <property name="last_opened_file_path" value="$PROJECT_DIR$/src/locale/it" />
62
+ <property name="last_opened_file_path" value="$PROJECT_DIR$/src/locale/en" />
55
63
  <property name="node.js.detected.package.eslint" value="true" />
56
64
  <property name="node.js.detected.package.tslint" value="true" />
57
65
  <property name="node.js.path.for.package.eslint" value="project" />
@@ -70,11 +78,11 @@
70
78
  </component>
71
79
  <component name="RecentsManager">
72
80
  <key name="CopyFile.RECENT_KEYS">
73
- <recent name="$PROJECT_DIR$/src/locale/it" />
81
+ <recent name="$PROJECT_DIR$/src/locale/en" />
82
+ <recent name="$PROJECT_DIR$/src/locale/de" />
74
83
  <recent name="$PROJECT_DIR$/src/locale/fr" />
84
+ <recent name="$PROJECT_DIR$/src/locale/it" />
75
85
  <recent name="$PROJECT_DIR$" />
76
- <recent name="$PROJECT_DIR$/assets/fonts" />
77
- <recent name="$PROJECT_DIR$/android/app/src/main/res/values" />
78
86
  </key>
79
87
  <key name="MoveFile.RECENT_KEYS">
80
88
  <recent name="$PROJECT_DIR$/src/locale/es" />
@@ -214,6 +222,20 @@
214
222
  <workItem from="1609853750176" duration="409000" />
215
223
  <workItem from="1610045871341" duration="993000" />
216
224
  <workItem from="1610358409997" duration="119000" />
225
+ <workItem from="1610358542117" duration="812000" />
226
+ <workItem from="1610464988592" duration="580000" />
227
+ <workItem from="1610559890801" duration="537000" />
228
+ <workItem from="1610623498660" duration="257000" />
229
+ <workItem from="1610626623542" duration="4877000" />
230
+ <workItem from="1610703083979" duration="1227000" />
231
+ <workItem from="1610710598205" duration="5155000" />
232
+ <workItem from="1610723653253" duration="1135000" />
233
+ <workItem from="1610965654086" duration="3993000" />
234
+ <workItem from="1610974416279" duration="357000" />
235
+ <workItem from="1611050920368" duration="1133000" />
236
+ <workItem from="1611222347585" duration="78000" />
237
+ <workItem from="1611339855127" duration="1476000" />
238
+ <workItem from="1611651966035" duration="2408000" />
217
239
  </task>
218
240
  <servers />
219
241
  </component>
@@ -222,101 +244,6 @@
222
244
  <option name="exactExcludedFiles">
223
245
  <list>
224
246
  <option value="$PROJECT_DIR$/index.js" />
225
- <option value="$PROJECT_DIR$/App.d.ts" />
226
- <option value="$PROJECT_DIR$/App.jsx" />
227
- <option value="$PROJECT_DIR$/index.d.ts" />
228
- <option value="$PROJECT_DIR$/src/RecommendationScreen.d.ts" />
229
- <option value="$PROJECT_DIR$/src/RecommendationScreen.jsx" />
230
- <option value="$PROJECT_DIR$/src/types/enum.d.ts" />
231
- <option value="$PROJECT_DIR$/src/types/enum.js" />
232
- <option value="$PROJECT_DIR$/src/types/types.d.ts" />
233
- <option value="$PROJECT_DIR$/src/types/types.js" />
234
- <option value="$PROJECT_DIR$/src/utils/AttentionMessages.d.ts" />
235
- <option value="$PROJECT_DIR$/src/utils/AttentionMessages.jsx" />
236
- <option value="$PROJECT_DIR$/src/utils/RecommendationError.jsx" />
237
- <option value="$PROJECT_DIR$/src/utils/Constants.d.ts" />
238
- <option value="$PROJECT_DIR$/src/utils/Validations.js" />
239
- <option value="$PROJECT_DIR$/src/utils/Utils.d.ts" />
240
- <option value="$PROJECT_DIR$/src/utils/Validations.d.ts" />
241
- <option value="$PROJECT_DIR$/src/utils/RecommendationUtils.js" />
242
- <option value="$PROJECT_DIR$/src/utils/RecommendationUtils.d.ts" />
243
- <option value="$PROJECT_DIR$/src/utils/RecommendationError.d.ts" />
244
- <option value="$PROJECT_DIR$/src/utils/Utils.js" />
245
- <option value="$PROJECT_DIR$/src/utils/Constants.js" />
246
- <option value="$PROJECT_DIR$/src/locale/i18nUtils.d.ts" />
247
- <option value="$PROJECT_DIR$/src/locale/i18nUtils.js" />
248
- <option value="$PROJECT_DIR$/src/__tests__/Translate.test.d.ts" />
249
- <option value="$PROJECT_DIR$/src/__tests__/RecommendationScreen.test.d.ts" />
250
- <option value="$PROJECT_DIR$/src/__tests__/Validations.test.d.ts" />
251
- <option value="$PROJECT_DIR$/src/__tests__/utils.d.ts" />
252
- <option value="$PROJECT_DIR$/src/__tests__/RecommendationUtils.test.d.ts" />
253
- <option value="$PROJECT_DIR$/src/__tests__/Translate.test.jsx" />
254
- <option value="$PROJECT_DIR$/src/__tests__/RecommendationUtils.test.js" />
255
- <option value="$PROJECT_DIR$/src/__tests__/utils.jsx" />
256
- <option value="$PROJECT_DIR$/src/__tests__/Utils.test.js" />
257
- <option value="$PROJECT_DIR$/src/__tests__/Validations.test.js" />
258
- <option value="$PROJECT_DIR$/src/__tests__/Utils.test.d.ts" />
259
- <option value="$PROJECT_DIR$/src/__tests__/RecommendationScreen.test.jsx" />
260
- <option value="$PROJECT_DIR$/src/components/InfoBars.jsx" />
261
- <option value="$PROJECT_DIR$/src/components/Remeasure.jsx" />
262
- <option value="$PROJECT_DIR$/src/components/Header.jsx" />
263
- <option value="$PROJECT_DIR$/src/components/RecommendedInsulin.jsx" />
264
- <option value="$PROJECT_DIR$/src/components/RecommendedInsulin.d.ts" />
265
- <option value="$PROJECT_DIR$/src/components/LineSeparator.jsx" />
266
- <option value="$PROJECT_DIR$/src/components/Header.d.ts" />
267
- <option value="$PROJECT_DIR$/src/components/LimitationMessage.d.ts" />
268
- <option value="$PROJECT_DIR$/src/components/TwoOptionModal.d.ts" />
269
- <option value="$PROJECT_DIR$/src/components/LimitationMessage.jsx" />
270
- <option value="$PROJECT_DIR$/src/components/TransferToLogbook.jsx" />
271
- <option value="$PROJECT_DIR$/src/components/RecommendedCarbs.d.ts" />
272
- <option value="$PROJECT_DIR$/src/components/LineSeparator.d.ts" />
273
- <option value="$PROJECT_DIR$/src/components/RecentInsulin.d.ts" />
274
- <option value="$PROJECT_DIR$/src/components/RecommendedCarbs.jsx" />
275
- <option value="$PROJECT_DIR$/src/components/RecommendationModal.d.ts" />
276
- <option value="$PROJECT_DIR$/src/components/Remeasure.d.ts" />
277
- <option value="$PROJECT_DIR$/src/components/TransferToLogbook.d.ts" />
278
- <option value="$PROJECT_DIR$/src/components/TwoOptionModal.jsx" />
279
- <option value="$PROJECT_DIR$/src/components/InfoBars.d.ts" />
280
- <option value="$PROJECT_DIR$/src/components/RecentInsulin.jsx" />
281
- <option value="$PROJECT_DIR$/src/components/InvisibleNumberInput.d.ts" />
282
- <option value="$PROJECT_DIR$/src/components/RecommendationModal.jsx" />
283
- <option value="$PROJECT_DIR$/src/components/InvisibleNumberInput.jsx" />
284
- <option value="$PROJECT_DIR$/src/__tests__/components/RecommendedCarbs.test.jsx" />
285
- <option value="$PROJECT_DIR$/src/__tests__/components/RecommendedInsulin.test.jsx" />
286
- <option value="$PROJECT_DIR$/src/__tests__/components/InfoBars.test.jsx" />
287
- <option value="$PROJECT_DIR$/src/__tests__/components/InfoBars.test.d.ts" />
288
- <option value="$PROJECT_DIR$/src/__tests__/components/TwoOptionModal.test.d.ts" />
289
- <option value="$PROJECT_DIR$/src/__tests__/components/InvisibleNumberInput.test.jsx" />
290
- <option value="$PROJECT_DIR$/src/__tests__/components/RecommendationModal.test.jsx" />
291
- <option value="$PROJECT_DIR$/src/__tests__/components/RecommendedCarbs.test.d.ts" />
292
- <option value="$PROJECT_DIR$/src/__tests__/components/TransferToLogbook.test.jsx" />
293
- <option value="$PROJECT_DIR$/src/__tests__/components/LimitationMessage.test.d.ts" />
294
- <option value="$PROJECT_DIR$/src/__tests__/components/Activity.test.jsx" />
295
- <option value="$PROJECT_DIR$/src/__tests__/components/Activity.test.d.ts" />
296
- <option value="$PROJECT_DIR$/src/__tests__/components/Emotion.test.d.ts" />
297
- <option value="$PROJECT_DIR$/src/__tests__/components/TwoOptionModal.test.jsx" />
298
- <option value="$PROJECT_DIR$/src/__tests__/components/Remeasure.test.jsx" />
299
- <option value="$PROJECT_DIR$/src/__tests__/components/TransferToLogbook.test.d.ts" />
300
- <option value="$PROJECT_DIR$/src/__tests__/components/RecommendedInsulin.test.d.ts" />
301
- <option value="$PROJECT_DIR$/src/__tests__/components/InvisibleNumberInput.test.d.ts" />
302
- <option value="$PROJECT_DIR$/src/__tests__/components/Remeasure.test.d.ts" />
303
- <option value="$PROJECT_DIR$/src/__tests__/components/MoodIcon.test.jsx" />
304
- <option value="$PROJECT_DIR$/src/__tests__/components/MoodIcon.test.d.ts" />
305
- <option value="$PROJECT_DIR$/src/__tests__/components/Header.test.jsx" />
306
- <option value="$PROJECT_DIR$/src/__tests__/components/RecommendationModal.test.d.ts" />
307
- <option value="$PROJECT_DIR$/src/__tests__/components/Emotion.test.jsx" />
308
- <option value="$PROJECT_DIR$/src/__tests__/components/Header.test.d.ts" />
309
- <option value="$PROJECT_DIR$/src/__tests__/components/LimitationMessage.test.jsx" />
310
- <option value="$PROJECT_DIR$/src/components/mood/MoodIcon.d.ts" />
311
- <option value="$PROJECT_DIR$/src/components/mood/MoodIcon.jsx" />
312
- <option value="$PROJECT_DIR$/src/components/mood/Emotion.d.ts" />
313
- <option value="$PROJECT_DIR$/src/components/mood/Emotion.jsx" />
314
- <option value="$PROJECT_DIR$/src/components/activity/ActivityIntensity.d.ts" />
315
- <option value="$PROJECT_DIR$/src/components/activity/Activity.d.ts" />
316
- <option value="$PROJECT_DIR$/src/components/activity/Activity.jsx" />
317
- <option value="$PROJECT_DIR$/src/components/activity/ActivityIcon.jsx" />
318
- <option value="$PROJECT_DIR$/src/components/activity/ActivityIcon.d.ts" />
319
- <option value="$PROJECT_DIR$/src/components/activity/ActivityIntensity.jsx" />
320
247
  </list>
321
248
  </option>
322
249
  </component>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/recommendation-screen",
3
- "version": "1.7.0",
3
+ "version": "1.8.1",
4
4
  "description": "Hedia Recommendation Screen for Bolus and Carbohydrates",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -77,7 +77,7 @@ exports.infoStyles = react_native_1.StyleSheet.create({
77
77
  fontWeight: `bold`,
78
78
  },
79
79
  valueUnitContainer: {
80
- flex: 6,
80
+ flex: 6.5,
81
81
  justifyContent: `flex-end`,
82
82
  flexDirection: `row`,
83
83
  },
@@ -80,7 +80,7 @@ export const infoStyles = StyleSheet.create({
80
80
  fontWeight: `bold`,
81
81
  },
82
82
  valueUnitContainer: {
83
- flex: 6,
83
+ flex: 6.5,
84
84
  justifyContent: `flex-end`,
85
85
  flexDirection: `row`,
86
86
  },
@@ -117,7 +117,7 @@ const buttonBorderRadius = height / 30;
117
117
  const buttonBorderWidth = height / 500;
118
118
  const sugestionFontSize = width / 19;
119
119
  const recommendEatingFontSize = height / 45;
120
- const textFontSize = width / 19;
120
+ const textFontSize = width / 20;
121
121
  const titleFontSize = width / 13;
122
122
  exports.stylesModal = react_native_1.StyleSheet.create({
123
123
  modalStyle: { margin: 0 },
@@ -137,12 +137,12 @@ exports.stylesModal = react_native_1.StyleSheet.create({
137
137
  textTittleMessage: { color: `white`, fontSize: titleFontSize, textAlign: `center` },
138
138
  textMessage: { color: `white`, fontSize: textFontSize, textAlign: `center` },
139
139
  buttonText: { color: Constants_1.BORDER_COLOUR_TEAL, fontSize: buttonFontSize, textAlign: `center` },
140
- addToCalculationContainer: { justifyContent: `flex-start`, marginVertical: `8%` },
140
+ addToCalculationContainer: { justifyContent: `flex-start`, marginVertical: `5%` },
141
141
  innerView: {
142
142
  alignContent: `center`,
143
143
  paddingVertical: `5%`,
144
144
  paddingHorizontal: `3%`,
145
- marginTop: `7%`,
145
+ marginTop: `5%`,
146
146
  borderRadius: height / 80,
147
147
  borderWidth: height / 300,
148
148
  borderColor: Constants_1.BORDER_COLOUR_TEAL,
@@ -137,7 +137,7 @@ const buttonBorderRadius = height / 30;
137
137
  const buttonBorderWidth = height / 500;
138
138
  const sugestionFontSize = width / 19;
139
139
  const recommendEatingFontSize = height / 45;
140
- const textFontSize = width / 19;
140
+ const textFontSize = width / 20;
141
141
  const titleFontSize = width / 13;
142
142
 
143
143
  export const stylesModal = StyleSheet.create({
@@ -158,12 +158,12 @@ export const stylesModal = StyleSheet.create({
158
158
  textTittleMessage: { color: `white`, fontSize: titleFontSize, textAlign: `center` },
159
159
  textMessage: { color: `white`, fontSize: textFontSize, textAlign: `center` },
160
160
  buttonText: { color: BORDER_COLOUR_TEAL, fontSize: buttonFontSize, textAlign: `center` },
161
- addToCalculationContainer: { justifyContent: `flex-start`, marginVertical: `8%` },
161
+ addToCalculationContainer: { justifyContent: `flex-start`, marginVertical: `5%` },
162
162
  innerView: {
163
163
  alignContent: `center`,
164
164
  paddingVertical: `5%`,
165
165
  paddingHorizontal: `3%`,
166
- marginTop: `7%`,
166
+ marginTop: `5%`,
167
167
  borderRadius: height / 80,
168
168
  borderWidth: height / 300,
169
169
  borderColor: BORDER_COLOUR_TEAL,
@@ -30,18 +30,19 @@ class Remeasure extends react_1.default.Component {
30
30
  const measure = this.props.remeasureTime > 0;
31
31
  const limited = this.limitTime(this.props.remeasureTime);
32
32
  const marginHorizontal = react_native_1.Platform.OS === `ios` ? `3%` : `0%`;
33
+ const valueContainer = measure ? remeasureStyles.valueContainer : variantStyles.centeredValueContainer;
33
34
  return (<react_native_1.View style={remeasureStyles.container}>
34
35
  <react_native_1.View style={remeasureStyles.borderContainer}>
35
36
  <react_native_1.View style={remeasureStyles.remeasureContainer}>
36
37
  <react_native_1.Text style={remeasureStyles.remeasureLabel}>{i18nUtils_1.i18n._(macro_1.t `Remind me to remeasure in`)}</react_native_1.Text>
37
38
  </react_native_1.View>
38
39
  <react_native_1.View style={remeasureStyles.valueUnitContainer}>
39
- <react_native_1.View style={remeasureStyles.valueContainer}>
40
+ <react_native_1.View style={valueContainer}>
40
41
  <react_native_1.Text style={remeasureStyles.value}>{measure ? limited : i18nUtils_1.i18n._(macro_1.t `OFF`)}</react_native_1.Text>
41
42
  </react_native_1.View>
42
- <react_native_1.View style={remeasureStyles.unitContainer}>
43
- <react_native_1.Text style={remeasureStyles.units}>{measure ? i18nUtils_1.i18n._(macro_1.t `hours`) : ``}</react_native_1.Text>
44
- </react_native_1.View>
43
+ {measure ? (<react_native_1.View style={remeasureStyles.unitContainer}>
44
+ <react_native_1.Text style={remeasureStyles.units}>{i18nUtils_1.i18n._(macro_1.t `hours`)}</react_native_1.Text>
45
+ </react_native_1.View>) : null}
45
46
  </react_native_1.View>
46
47
  </react_native_1.View>
47
48
  <slider_1.default ref={(slider) => (this.slider = slider)} accessibilityLabel="remeasureSlider" maximumTrackTintColor={Constants_1.BORDER_COLOUR_GREY} minimumTrackTintColor={Constants_1.BORDER_COLOUR_TEAL} thumbTintColor={Constants_1.BORDER_COLOUR_TEAL} maximumValue={6} minimumValue={0} step={0.5} style={[remeasureStyles.sliderStyle, { marginHorizontal }]} onValueChange={this.handleSliderChange}/>
@@ -59,7 +60,7 @@ const remeasureStyles = react_native_1.StyleSheet.create({
59
60
  alignItems: `center`,
60
61
  },
61
62
  remeasureContainer: {
62
- flex: 9,
63
+ flex: 7,
63
64
  },
64
65
  remeasureLabel: {
65
66
  color: `white`,
@@ -86,3 +87,9 @@ const remeasureStyles = react_native_1.StyleSheet.create({
86
87
  marginBottom: `2%`,
87
88
  },
88
89
  });
90
+ const variantStyles = react_native_1.StyleSheet.create({
91
+ centeredValueContainer: {
92
+ ...remeasureStyles.valueContainer,
93
+ alignItems: `center`,
94
+ },
95
+ });
@@ -33,6 +33,7 @@ export default class Remeasure extends React.Component<IProps, null> {
33
33
  const measure = this.props.remeasureTime > 0;
34
34
  const limited = this.limitTime(this.props.remeasureTime);
35
35
  const marginHorizontal = Platform.OS === `ios` ? `3%` : `0%`;
36
+ const valueContainer = measure ? remeasureStyles.valueContainer : variantStyles.centeredValueContainer;
36
37
  return (
37
38
  <View style={remeasureStyles.container}>
38
39
  <View style={remeasureStyles.borderContainer}>
@@ -40,12 +41,14 @@ export default class Remeasure extends React.Component<IProps, null> {
40
41
  <Text style={remeasureStyles.remeasureLabel}>{i18n._(t`Remind me to remeasure in`)}</Text>
41
42
  </View>
42
43
  <View style={remeasureStyles.valueUnitContainer}>
43
- <View style={remeasureStyles.valueContainer}>
44
+ <View style={valueContainer}>
44
45
  <Text style={remeasureStyles.value}>{measure ? limited : i18n._(t`OFF`)}</Text>
45
46
  </View>
46
- <View style={remeasureStyles.unitContainer}>
47
- <Text style={remeasureStyles.units}>{measure ? i18n._(t`hours`) : ``}</Text>
48
- </View>
47
+ {measure ? (
48
+ <View style={remeasureStyles.unitContainer}>
49
+ <Text style={remeasureStyles.units}>{i18n._(t`hours`)}</Text>
50
+ </View>
51
+ ) : null}
49
52
  </View>
50
53
  </View>
51
54
  <Slider
@@ -75,7 +78,7 @@ const remeasureStyles = StyleSheet.create({
75
78
  alignItems: `center`,
76
79
  },
77
80
  remeasureContainer: {
78
- flex: 9,
81
+ flex: 7,
79
82
  },
80
83
  remeasureLabel: {
81
84
  color: `white`,
@@ -102,3 +105,10 @@ const remeasureStyles = StyleSheet.create({
102
105
  marginBottom: `2%`,
103
106
  },
104
107
  });
108
+
109
+ const variantStyles = StyleSheet.create({
110
+ centeredValueContainer: {
111
+ ...remeasureStyles.valueContainer,
112
+ alignItems: `center`,
113
+ },
114
+ });
@@ -118,7 +118,7 @@ export declare const modalStyle: {
118
118
  fontFamily: string;
119
119
  textAlign: "center";
120
120
  fontSize: number;
121
- color: string;
121
+ paddingHorizontal: number;
122
122
  };
123
123
  textSecondButtonColumn: {
124
124
  fontFamily: string;
@@ -124,7 +124,12 @@ exports.modalStyle = react_native_1.StyleSheet.create({
124
124
  marginTop: `2%`,
125
125
  },
126
126
  textButtonRow: { fontFamily: `Roboto-Regular`, textAlign: `center`, fontSize: width / 24, color: `white` },
127
- textFirstButtonColumn: { fontFamily: `Roboto-Regular`, textAlign: `center`, fontSize: width / 21, color: `black` },
127
+ textFirstButtonColumn: {
128
+ fontFamily: `Roboto-Regular`,
129
+ textAlign: `center`,
130
+ fontSize: width / 22,
131
+ paddingHorizontal: 15,
132
+ },
128
133
  textSecondButtonColumn: {
129
134
  fontFamily: `Roboto-Regular`,
130
135
  textAlign: `center`,
@@ -133,7 +133,12 @@ export const modalStyle = StyleSheet.create({
133
133
  marginTop: `2%`,
134
134
  },
135
135
  textButtonRow: { fontFamily: `Roboto-Regular`, textAlign: `center`, fontSize: width / 24, color: `white` },
136
- textFirstButtonColumn: { fontFamily: `Roboto-Regular`, textAlign: `center`, fontSize: width / 21, color: `black` },
136
+ textFirstButtonColumn: {
137
+ fontFamily: `Roboto-Regular`,
138
+ textAlign: `center`,
139
+ fontSize: width / 22,
140
+ paddingHorizontal: 15,
141
+ },
137
142
  textSecondButtonColumn: {
138
143
  fontFamily: `Roboto-Regular`,
139
144
  textAlign: `center`,
@@ -26,7 +26,7 @@ msgid "Additional"
26
26
  msgstr "Supplerende"
27
27
 
28
28
  #: src/components/LimitationMessage.tsx:14
29
- #: src/components/RecommendationModal.tsx:66
29
+ #: src/components/RecommendationModal.tsx:59
30
30
  #: src/components/RecommendedCarbs.tsx:30
31
31
  #: src/components/RecommendedInsulin.tsx:34
32
32
  msgid "Attention"
@@ -52,7 +52,7 @@ msgstr "Kulhydrater"
52
52
  msgid "Close calculation"
53
53
  msgstr "Luk beregning"
54
54
 
55
- #: src/utils/AttentionMessages.tsx:29
55
+ #: src/utils/AttentionMessages.tsx:30
56
56
  msgid "Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity."
57
57
  msgstr "Dit blodsukkerniveau ligger udenfor de anbefalede grænser for blodsukker før en aktivitet. Du bør overveje at udskyde fysisk aktivitet."
58
58
 
@@ -148,11 +148,11 @@ msgstr "Ups! Det lader til at du bruger en gammel version af Hedia. Det er ikke
148
148
  msgid "Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present."
149
149
  msgstr "Ups! Hedia har lavet en fejl. Indtast venligst en værdi mellem 0 og 300 gram"
150
150
 
151
- #: src/utils/AttentionMessages.tsx:43
151
+ #: src/utils/AttentionMessages.tsx:44
152
152
  msgid "Hedia does not support more than {0} units of insulin per calculation."
153
153
  msgstr "Hedia understøtter maksimalt {0} units af insulin per beregning"
154
154
 
155
- #: src/utils/AttentionMessages.tsx:41
155
+ #: src/utils/AttentionMessages.tsx:42
156
156
  msgid "Hedia doesn't support more than {0} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {1}% to {2} units for this calculation."
157
157
  msgstr "Hedia understøtter maksimalt {0} units af insulin per beregning, men på grund af den fysiske aktivitet du har indtastet er grænsen reduceret med yderligere {1}% til {2} for denne beregning."
158
158
 
@@ -164,7 +164,7 @@ msgstr "Hvordan har du det?"
164
164
  msgid "INSULIN{0}RECOMMENDATION"
165
165
  msgstr "INSULIN{0}ANBEFALING"
166
166
 
167
- #: src/utils/AttentionMessages.tsx:28
167
+ #: src/utils/AttentionMessages.tsx:29
168
168
  msgid "If it is possible, postpone your planned exercise."
169
169
  msgstr "Hvis det er muligt, udsæt din planlagte træning."
170
170
 
@@ -180,7 +180,7 @@ msgstr "Let"
180
180
  msgid "Moderate"
181
181
  msgstr "Moderat"
182
182
 
183
- #: src/utils/AttentionMessages.tsx:44
183
+ #: src/utils/AttentionMessages.tsx:45
184
184
  msgid "More than 15 minutes has passed since this calculation was started."
185
185
  msgstr "Der er gået mere end 15 minutter siden udregningen blev startet."
186
186
 
@@ -196,23 +196,23 @@ msgstr "Nej"
196
196
  msgid "No, return to dashboard"
197
197
  msgstr "Nej, tilbage til dashboard"
198
198
 
199
- #: src/components/Remeasure.tsx:35
199
+ #: src/components/Remeasure.tsx:36
200
200
  msgid "OFF"
201
201
  msgstr "OFF"
202
202
 
203
- #: src/components/LimitationMessage.tsx:21
203
+ #: src/components/LimitationMessage.tsx:20
204
204
  #: src/components/RecommendationModal.tsx:19
205
- #: src/components/RecommendationModal.tsx:73
205
+ #: src/components/RecommendationModal.tsx:66
206
206
  #: src/components/RecommendedCarbs.tsx:32
207
207
  #: src/components/RecommendedInsulin.tsx:36
208
208
  msgid "OK"
209
209
  msgstr "OK"
210
210
 
211
- #: src/utils/AttentionMessages.tsx:45
211
+ #: src/utils/AttentionMessages.tsx:46
212
212
  msgid "Please go through the calculation steps with new measurements to ensure a safe recommendation."
213
213
  msgstr "Gå venligst gennem udregningstrinnene igen med nye målinger for at sikre en sikker anbefaling."
214
214
 
215
- #: src/utils/AttentionMessages.tsx:51
215
+ #: src/utils/AttentionMessages.tsx:50
216
216
  msgid "Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?"
217
217
  msgstr "Hedia's anbefaling fra {day} kl. {time} blev ikke overført til din logbog.{0}Brugte du anbefalingen?"
218
218
 
@@ -225,7 +225,7 @@ msgstr "Anbefalet"
225
225
  msgid "Recommended amount of insulin"
226
226
  msgstr "Anbefalet enhed(er) af insulin"
227
227
 
228
- #: src/components/Remeasure.tsx:31
228
+ #: src/components/Remeasure.tsx:32
229
229
  msgid "Remind me to remeasure in"
230
230
  msgstr "Påmind mig at genmåle om"
231
231
 
@@ -269,7 +269,7 @@ msgstr "Unavngivet aktivitet"
269
269
  msgid "We recommend eating an additional:"
270
270
  msgstr "Vi anbefaler at spise yderligere:"
271
271
 
272
- #: src/components/RecommendationModal.tsx:48
272
+ #: src/components/RecommendationModal.tsx:47
273
273
  msgid "Would you like to add this to your current calculation?"
274
274
  msgstr "Vil du gerne tilføje dette til din nuværende beregning?"
275
275
 
@@ -281,31 +281,31 @@ msgstr "Ja"
281
281
  msgid "Yes, save to logbook"
282
282
  msgstr "Ja, gem i logbogen"
283
283
 
284
- #: src/utils/AttentionMessages.tsx:30
284
+ #: src/utils/AttentionMessages.tsx:31
285
285
  msgid "You have a high blood glucose level."
286
286
  msgstr "Du har et højt blodsukkerniveau."
287
287
 
288
- #: src/utils/AttentionMessages.tsx:31
288
+ #: src/utils/AttentionMessages.tsx:32
289
289
  msgid "You should take rapid-acting insulin and measure ketones."
290
290
  msgstr "Du burde tage hurtigtvirkende insulin og måle ketoner."
291
291
 
292
- #: src/utils/AttentionMessages.tsx:27
292
+ #: src/utils/AttentionMessages.tsx:28
293
293
  msgid "You will be reminded to measure your blood glucose level in 15 min."
294
294
  msgstr "Du vil få påmindelser om at måle dit blodsukkerniveau om 15 minutter."
295
295
 
296
- #: src/utils/AttentionMessages.tsx:26
296
+ #: src/utils/AttentionMessages.tsx:27
297
297
  msgid "Your blood glucose level is very low."
298
298
  msgstr "Dit blodsukkerniveau er meget lavt."
299
299
 
300
- #: src/utils/AttentionMessages.tsx:25
300
+ #: src/utils/AttentionMessages.tsx:26
301
301
  msgid "Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention."
302
302
  msgstr "Dit blodsukkerniveau er meget lavt. Tag glukagon eller spis kulhydrater, hvis det er muligt. Søg lægehjælp."
303
303
 
304
- #: src/utils/AttentionMessages.tsx:32
304
+ #: src/utils/AttentionMessages.tsx:33
305
305
  msgid "Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons. Hedia never recommends more than {1} units of insulin per calculation."
306
306
  msgstr "Din anbefaling ville have været højere end {0} units af insulin, men den er blevet begrænset af sikkerhedshensyn. Hedia anbefaler aldrig mere end {1} units af insulin per beregning."
307
307
 
308
- #: src/utils/AttentionMessages.tsx:34
308
+ #: src/utils/AttentionMessages.tsx:35
309
309
  msgid "Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons.{1} Hedia never recommends more than {2} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {3}% to {4}."
310
310
  msgstr "Din anbefaling ville have været højere end {0} units af insulin, men den er blevet begrænset af sikkerhedshensyn.{1} Hedia anbefaler aldrig mere end {2} units af insulin per beregning, men på grund af den fysiske aktivitet du har indtastet er grænsen reduceret med yderligere {3}% til {4}."
311
311
 
@@ -323,7 +323,7 @@ msgstr "gram"
323
323
  msgid "grams of carbohydrates"
324
324
  msgstr "gram kulhydrater"
325
325
 
326
- #: src/components/Remeasure.tsx:38
326
+ #: src/components/Remeasure.tsx:39
327
327
  msgid "hours"
328
328
  msgstr "timer"
329
329
 
@@ -331,7 +331,7 @@ msgstr "timer"
331
331
  msgid "min"
332
332
  msgstr "min"
333
333
 
334
- #: src/components/InfoBars.tsx:19
335
334
  #: src/RecommendationScreen.tsx:182
335
+ #: src/components/InfoBars.tsx:19
336
336
  msgid "units"
337
337
  msgstr "enheder"