@hedia/recommendation-screen 1.7.0 → 1.8.0
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.
- package/.idea/workspace.xml +121 -5
- package/package.json +1 -1
- package/src/components/InfoBars.jsx +1 -1
- package/src/components/InfoBars.tsx +1 -1
- package/src/components/Remeasure.jsx +12 -5
- package/src/components/Remeasure.tsx +15 -5
- package/src/components/TwoOptionModal.d.ts +1 -1
- package/src/components/TwoOptionModal.jsx +6 -1
- package/src/components/TwoOptionModal.tsx +6 -1
- package/src/locale/da/messages.po +18 -18
- package/src/locale/de/messages.po +19 -18
- package/src/locale/en/messages.po +18 -18
- package/src/locale/es/messages.po +337 -336
- package/src/locale/fr/messages.js +1 -0
- package/src/locale/fr/messages.po +336 -0
- package/src/locale/i18nUtils.d.ts +1 -0
- package/src/locale/i18nUtils.js +11 -0
- package/src/locale/i18nUtils.ts +8 -1
- package/src/locale/it/messages.js +1 -0
- package/src/locale/it/messages.po +336 -0
- package/src/types/enum.d.ts +3 -1
- package/src/types/enum.js +2 -0
- package/src/types/enum.ts +2 -0
- package/src/utils/AttentionMessages.jsx +0 -1
- package/src/utils/AttentionMessages.tsx +0 -1
- package/src/utils/Validations.js +2 -7
- package/src/utils/Validations.ts +2 -7
|
@@ -26,7 +26,7 @@ msgid "Additional"
|
|
|
26
26
|
msgstr "Additional"
|
|
27
27
|
|
|
28
28
|
#: src/components/LimitationMessage.tsx:14
|
|
29
|
-
#: src/components/RecommendationModal.tsx:
|
|
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 "Carbohydrates"
|
|
|
52
52
|
msgid "Close calculation"
|
|
53
53
|
msgstr "Close calculation"
|
|
54
54
|
|
|
55
|
-
#: src/utils/AttentionMessages.tsx:
|
|
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 "Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity."
|
|
58
58
|
|
|
@@ -148,11 +148,11 @@ msgstr "Hedia Calculator does not support activities that finished more than 4 h
|
|
|
148
148
|
msgid "Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present."
|
|
149
149
|
msgstr "Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present."
|
|
150
150
|
|
|
151
|
-
#: src/utils/AttentionMessages.tsx:
|
|
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 does not support more than {0} units of insulin per calculation."
|
|
154
154
|
|
|
155
|
-
#: src/utils/AttentionMessages.tsx:
|
|
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 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."
|
|
158
158
|
|
|
@@ -164,7 +164,7 @@ msgstr "How are you feeling?"
|
|
|
164
164
|
msgid "INSULIN{0}RECOMMENDATION"
|
|
165
165
|
msgstr "INSULIN{0}RECOMMENDATION"
|
|
166
166
|
|
|
167
|
-
#: src/utils/AttentionMessages.tsx:
|
|
167
|
+
#: src/utils/AttentionMessages.tsx:29
|
|
168
168
|
msgid "If it is possible, postpone your planned exercise."
|
|
169
169
|
msgstr "If it is possible, postpone your planned exercise."
|
|
170
170
|
|
|
@@ -180,7 +180,7 @@ msgstr "Light"
|
|
|
180
180
|
msgid "Moderate"
|
|
181
181
|
msgstr "Moderate"
|
|
182
182
|
|
|
183
|
-
#: src/utils/AttentionMessages.tsx:
|
|
183
|
+
#: src/utils/AttentionMessages.tsx:45
|
|
184
184
|
msgid "More than 15 minutes has passed since this calculation was started."
|
|
185
185
|
msgstr "More than 15 minutes has passed since this calculation was started."
|
|
186
186
|
|
|
@@ -200,15 +200,15 @@ msgstr "No, return to dashboard"
|
|
|
200
200
|
msgid "OFF"
|
|
201
201
|
msgstr "OFF"
|
|
202
202
|
|
|
203
|
-
#: src/components/LimitationMessage.tsx:
|
|
203
|
+
#: src/components/LimitationMessage.tsx:20
|
|
204
204
|
#: src/components/RecommendationModal.tsx:19
|
|
205
|
-
#: src/components/RecommendationModal.tsx:
|
|
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:
|
|
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 "Please go through the calculation steps with new measurements to ensure a safe recommendation."
|
|
214
214
|
|
|
@@ -269,7 +269,7 @@ msgstr "Untitled Activity"
|
|
|
269
269
|
msgid "We recommend eating an additional:"
|
|
270
270
|
msgstr "We recommend eating an additional:"
|
|
271
271
|
|
|
272
|
-
#: src/components/RecommendationModal.tsx:
|
|
272
|
+
#: src/components/RecommendationModal.tsx:47
|
|
273
273
|
msgid "Would you like to add this to your current calculation?"
|
|
274
274
|
msgstr "Would you like to add this to your current calculation?"
|
|
275
275
|
|
|
@@ -281,31 +281,31 @@ msgstr "Yes"
|
|
|
281
281
|
msgid "Yes, save to logbook"
|
|
282
282
|
msgstr "Yes, save to logbook"
|
|
283
283
|
|
|
284
|
-
#: src/utils/AttentionMessages.tsx:
|
|
284
|
+
#: src/utils/AttentionMessages.tsx:31
|
|
285
285
|
msgid "You have a high blood glucose level."
|
|
286
286
|
msgstr "You have a high blood glucose level."
|
|
287
287
|
|
|
288
|
-
#: src/utils/AttentionMessages.tsx:
|
|
288
|
+
#: src/utils/AttentionMessages.tsx:32
|
|
289
289
|
msgid "You should take rapid-acting insulin and measure ketones."
|
|
290
290
|
msgstr "You should take rapid-acting insulin and measure ketones."
|
|
291
291
|
|
|
292
|
-
#: src/utils/AttentionMessages.tsx:
|
|
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 "You will be reminded to measure your blood glucose level in 15 min."
|
|
295
295
|
|
|
296
|
-
#: src/utils/AttentionMessages.tsx:
|
|
296
|
+
#: src/utils/AttentionMessages.tsx:27
|
|
297
297
|
msgid "Your blood glucose level is very low."
|
|
298
298
|
msgstr "Your blood glucose level is very low."
|
|
299
299
|
|
|
300
|
-
#: src/utils/AttentionMessages.tsx:
|
|
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 "Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention."
|
|
303
303
|
|
|
304
|
-
#: src/utils/AttentionMessages.tsx:
|
|
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 "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."
|
|
307
307
|
|
|
308
|
-
#: src/utils/AttentionMessages.tsx:
|
|
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 "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}."
|
|
311
311
|
|
|
@@ -331,7 +331,7 @@ msgstr "hours"
|
|
|
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 "units"
|