@hedia/recommendation-screen 1.0.7 → 1.1.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.
Files changed (95) hide show
  1. package/App.jsx +36 -15
  2. package/android/app/src/main/res/values/color.xml +3 -0
  3. package/android/app/src/main/res/values/styles.xml +3 -0
  4. package/index.d.ts +3 -3
  5. package/index.js +23 -7
  6. package/index.ts +3 -16
  7. package/ios/HediaRecommendationScreen/Info.plist +80 -57
  8. package/ios/HediaRecommendationScreen.xcodeproj/project.pbxproj +1085 -807
  9. package/ios/HediaRecommendationScreen.xcworkspace/contents.xcworkspacedata +10 -0
  10. package/ios/HediaRecommendationScreen.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  11. package/ios/Podfile +106 -104
  12. package/ios/Podfile.lock +474 -0
  13. package/jest.mock.js +1 -0
  14. package/package.json +9 -2
  15. package/src/RecommendationScreen.d.ts +19 -5
  16. package/src/RecommendationScreen.jsx +69 -33
  17. package/src/RecommendationScreen.tsx +130 -60
  18. package/src/assets/activity/Cyclist.png +0 -0
  19. package/src/assets/activity/Other.png +0 -0
  20. package/src/assets/activity/Runner.png +0 -0
  21. package/src/assets/activity/Swimmer.png +0 -0
  22. package/src/assets/activity/Walk.png +0 -0
  23. package/src/components/Header.d.ts +1 -5
  24. package/src/components/Header.jsx +4 -9
  25. package/src/components/Header.tsx +7 -14
  26. package/src/components/HediaRecommendationModal.d.ts +26 -0
  27. package/src/components/HediaRecommendationModal.jsx +207 -0
  28. package/src/components/HediaRecommendationModal.tsx +231 -0
  29. package/src/components/InfoBars.jsx +1 -1
  30. package/src/components/InfoBars.tsx +3 -3
  31. package/src/components/InvisibleNumberInput.tsx +7 -7
  32. package/src/components/RecentInsulin.jsx +5 -4
  33. package/src/components/RecentInsulin.tsx +6 -5
  34. package/src/components/RecommendedCarbs.jsx +17 -17
  35. package/src/components/RecommendedCarbs.tsx +24 -24
  36. package/src/components/RecommendedInsulin.jsx +12 -9
  37. package/src/components/RecommendedInsulin.tsx +18 -15
  38. package/src/components/Remeasure.jsx +7 -5
  39. package/src/components/Remeasure.tsx +15 -13
  40. package/src/components/TransferToLogbook.jsx +4 -3
  41. package/src/components/TransferToLogbook.tsx +6 -4
  42. package/src/components/activity/Activity.d.ts +11 -0
  43. package/src/components/activity/Activity.jsx +68 -0
  44. package/src/components/activity/Activity.tsx +74 -0
  45. package/src/components/activity/ActivityIcon.d.ts +7 -0
  46. package/src/components/activity/ActivityIcon.jsx +50 -0
  47. package/src/components/activity/ActivityIcon.tsx +52 -0
  48. package/src/components/activity/ActivityIntensity.d.ts +5 -0
  49. package/src/components/activity/ActivityIntensity.jsx +67 -0
  50. package/src/components/activity/ActivityIntensity.tsx +66 -0
  51. package/src/components/mood/Emotion.d.ts +12 -0
  52. package/src/components/{Emotion.jsx → mood/Emotion.jsx} +12 -16
  53. package/src/components/mood/Emotion.tsx +64 -0
  54. package/src/components/{MoodIcon.d.ts → mood/MoodIcon.d.ts} +1 -1
  55. package/src/components/{MoodIcon.jsx → mood/MoodIcon.jsx} +15 -15
  56. package/src/components/{MoodIcon.tsx → mood/MoodIcon.tsx} +17 -17
  57. package/src/locale/da/messages.js +1 -1
  58. package/src/locale/da/messages.po +191 -49
  59. package/src/locale/en/messages.js +1 -1
  60. package/src/locale/en/messages.po +193 -51
  61. package/src/types/enum.d.ts +48 -6
  62. package/src/types/enum.js +53 -7
  63. package/src/types/enum.ts +48 -3
  64. package/src/types/types.d.ts +18 -1
  65. package/src/types/types.ts +21 -1
  66. package/src/utils/AttentionMessages.d.ts +21 -0
  67. package/src/utils/AttentionMessages.js +62 -0
  68. package/src/utils/AttentionMessages.ts +59 -0
  69. package/src/utils/Constants.d.ts +16 -1
  70. package/src/utils/Constants.js +16 -2
  71. package/src/utils/Constants.ts +20 -1
  72. package/src/utils/RecommendationError.d.ts +18 -6
  73. package/src/utils/RecommendationError.js +23 -7
  74. package/src/utils/RecommendationError.ts +114 -28
  75. package/src/utils/RecommendationUtils.d.ts +12 -0
  76. package/src/utils/RecommendationUtils.js +118 -0
  77. package/src/utils/RecommendationUtils.ts +128 -0
  78. package/src/utils/Utils.d.ts +3 -1
  79. package/src/utils/Utils.js +6 -0
  80. package/src/utils/Utils.ts +13 -5
  81. package/src/utils/Validations.d.ts +22 -0
  82. package/src/utils/Validations.js +175 -0
  83. package/src/utils/Validations.ts +210 -0
  84. package/src/components/Emotion.d.ts +0 -14
  85. package/src/components/Emotion.tsx +0 -70
  86. /package/src/assets/{happy.png → mood/happy.png} +0 -0
  87. /package/src/assets/{happy_active.png → mood/happy_active.png} +0 -0
  88. /package/src/assets/{neutral.png → mood/neutral.png} +0 -0
  89. /package/src/assets/{neutral_active.png → mood/neutral_active.png} +0 -0
  90. /package/src/assets/{sad.png → mood/sad.png} +0 -0
  91. /package/src/assets/{sad_active.png → mood/sad_active.png} +0 -0
  92. /package/src/assets/{semi_happy.png → mood/semi_happy.png} +0 -0
  93. /package/src/assets/{semi_happy_active.png → mood/semi_happy_active.png} +0 -0
  94. /package/src/assets/{semi_sad.png → mood/semi_sad.png} +0 -0
  95. /package/src/assets/{semi_sad_active.png → mood/semi_sad_active.png} +0 -0
@@ -1 +1 @@
1
- /* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),i=s[0],t0=Number(s[0])==n;if(ord)return"other";return n==1||!t0&&(i==0||i==1)?"one":"other"}},messages:{"Active Insulin":"Aktiv Insulin","Additional":"Supplerende","Blood Glucose Level":"Blodsukkerniveau","Entered":"Indtastet","Food":"Mad","Have you taken insulin within the last 4 hours?":"Har du taget insulin inden for de sidste 4 timer?","Hedia does not support insulin recommendations related to strenuous activity.":"Hedia underst\xF8tter ikke insulin anbefalinger relateret til anstrengende aktivitet.","Hedia does not support insulin recommendations with more than 300g carbohydrates present.":"Hedia underst\xF8tter ikke insulin anbefalinger hvori mere end 300g kulhydrater er tilstede.","How are you feeling?":"Hvordan har du det?","INSULIN\nRECOMMENDATION":"INSULIN\nANBEFALING","Insulin limit reached, for your safety Hedia will not recommend more than this.":"Insulingr\xE6nsen i Hedia er n\xE5et, for din sikkerhed vil der ikke blive anbefalet mere end dette.","More than 15 minutes has passed since this calculation was started.\nPlease go through the calculation steps with new measurements to ensure a safe recommendation.":"Der er g\xE5et mere end 15 minutter siden udregningen blev startet.\nG\xE5 venligst gennem udregningstrinnene igen med nye m\xE5linger for at sikre en sikker anbefaling.","No":"Nej","OFF":"OFF","Please verify your activity interval settings are set up correctly.":"Kontroller at dine indstillinger for aktivitetsintervaller er opsat korrekt.","Recommended":"Anbefalet","Recommended amount of insulin":"Anbefalet enhed(er) af insulin","Remind me to remeasure in":"P\xE5mind mig at genm\xE5le om","Total":"Sum","Transfer to logbook":"Overf\xF8r til logbog","Transfered to logbook":"Overf\xF8rt til logbok","Units":"Enheder","Yes":"Ja","g carbs":"g carbs","hours":"timer","units":"enheder"}};
1
+ /* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),i=s[0],t0=Number(s[0])==n;if(ord)return"other";return n==1||!t0&&(i==0||i==1)?"one":"other"}},messages:{"Active Insulin":"Aktiv Insulin","Activity":"Aktivitet","Additional":"Supplerende","Based on the selected activity your insulin recommendation is reduced by:":"Baseret p\xE5 din valgte aktivitet er din insulin anbefaling reduceret med:","Blood Glucose Level":"Blodsukkerniveau","Entered":"Indtastet","Error. Hedia Calculator does not support an insulin dosis greater that 50 units":"Error. Hedia Calculator does not support an insulin dosis greater that 50 units","Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours","Error. Hedia Calculator does not support your activity intensity value":"Error. Hedia Calculator does not support your activity intensity value","Error. Hedia Calculator does not support your current blood glucose level.":"Error. Hedia Calculator does not support your current blood glucose level.","Error. Hedia Calculator does not support your current blood glucose unit.":"Error. Hedia Calculator does not support your current blood glucose unit.","Error. Hedia Calculator does not support your current language.":"Error. Hedia Calculator does not support your current language.","Error. Hedia Calculator does not support your injection method.":"Error. Hedia Calculator does not support your injection method.","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.","Error. Please verify that your activity settings are set up correctly.":"Error. Please verify that your activity settings are set up correctly.","Error. Please verify that your activity target blood glucose value is correct.":"Error. Please verify that your activity target blood glucose value is correct.","Error. Please verify that your insulin sensitivity value is correct.":"Error. Please verify that your insulin sensitivity value is correct.","Error. Please verify that your insulin to carb ratio value is correct.":"Error. Please verify that your insulin to carb ratio value is correct.","Error. Please verify that your target blood glucose value is correct.":"Error. Please verify that your target blood glucose value is correct.","Error. Please verify your notifications settings.":"Error. Please verify your notifications settings.","Food":"Mad","Hard":"H\xE5rd","Have you taken insulin within the last 4 hours?":"Har du taget insulin inden for de sidste 4 timer?","Hedia Calculator does not support activities that finished more than 4 hours ago.":"Hedia Calculator does not support activities that finished more than 4 hours ago.","Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.":"Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.","Hedia doesn't support more than {0} units of insulin per log, but because of the physical activity you entered it has been further reduced by {1}% to {2} units for this log.":function(a){return["Hedia doesn't support more than ",a("0")," units of insulin per log, but because of the physical activity you entered it has been further reduced by ",a("1"),"% to ",a("2")," units for this log."]},"How are you feeling?":"Hvordan har du det?","INSULIN{0}RECOMMENDATION":function(a){return["INSULIN",a("0"),"ANBEFALING"]},"If it is possible, postpone your planned exercise.":"If it is possible, postpone your planned exercise.","Instead of taking insulin":"Instead of taking insulin","Insulin limit reached, for your safety Hedia will not recommend more than this.":"Insulingr\xE6nsen i Hedia er n\xE5et, for din sikkerhed vil der ikke blive anbefalet mere end dette.","Light":"Let","Moderate":"Moderat","More than 15 minutes has passed since this calculation was started.{0}Please go through the calculation steps with new measurements to ensure a safe recommendation.":function(a){return["Der er g\xE5et mere end 15 minutter siden udregningen blev startet.",a("0"),"G\xE5 venligst gennem udregningstrinnene igen med nye m\xE5linger for at sikre en sikker anbefaling."]},"NO":"NO","No":"Nej","OFF":"OFF","OK":"OK","OKAY":"OKAY","Post":"Efter","Recommended":"Anbefalet","Recommended amount of insulin":"Anbefalet enhed(er) af insulin","Remind me to remeasure in":"P\xE5mind mig at genm\xE5le om","Total":"Sum","Transfer to logbook":"Overf\xF8r til logbog","Transferred to logbook":"Overf\xF8rt til logbog","Units":"Enheder","Untitled Activity":"Unavngivet aktivitet","We recommend eating an additional:":"Vi anbefaler at spise yderligere:","Would you like to add this to your current calculation?":"Would you like to add this to your current calculation?","Yes":"Ja","You have a high blood glucose level.":"You have a high blood glucose level.","You should take rapid-acting insulin and measure ketones.":"You should take rapid-acting insulin and measure ketones.","You will be reminded to measure your blood glucose level in 15 min.":"You will be reminded to measure your blood glucose level in 15 min.","Your blood glucose level is very low.":"Your blood glucose level is very low.","Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.":"Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.","Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons.":function(a){return["Your recommendation would have been higher than ",a("0")," units of insulin, but it has been limited for safety reasons."]},"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}.":function(a){return["Your recommendation would have been higher than ",a("0")," units of insulin, but it has been limited for safety reasons.",a("1")," Hedia never recommends more than ",a("2")," units of insulin per calculation, but because of the physical activity you entered it has been further reduced by ",a("3"),"% to ",a("4"),"."]},"g carbs":"g carbs","grams of carbohydrates":"grams of carbohydrates","hours":"timer","min":"min","units":"enheder"}};
@@ -13,117 +13,259 @@ msgstr ""
13
13
  "Language-Team: \n"
14
14
  "Plural-Forms: \n"
15
15
 
16
- #: src/RecommendationScreen.tsx:86
16
+ #: src/RecommendationScreen.tsx:128
17
17
  msgid "Active Insulin"
18
18
  msgstr "Aktiv Insulin"
19
19
 
20
- #: src/components/RecommendedCarbs.tsx:45
20
+ #: src/components/activity/Activity.tsx:17
21
+ msgid "Activity"
22
+ msgstr "Aktivitet"
23
+
24
+ #: src/components/RecommendedCarbs.tsx:46
21
25
  msgid "Additional"
22
26
  msgstr "Supplerende"
23
27
 
24
- #: src/RecommendationScreen.tsx:87
28
+ #: src/components/activity/Activity.tsx:32
29
+ msgid "Based on the selected activity your insulin recommendation is reduced by:"
30
+ msgstr "Baseret på din valgte aktivitet er din insulin anbefaling reduceret med:"
31
+
32
+ #: src/RecommendationScreen.tsx:129
25
33
  msgid "Blood Glucose Level"
26
34
  msgstr "Blodsukkerniveau"
27
35
 
28
- #: src/components/RecommendedCarbs.tsx:100
36
+ #: src/components/RecommendedCarbs.tsx:101
29
37
  msgid "Entered"
30
38
  msgstr "Indtastet"
31
39
 
32
- #: src/components/RecommendedCarbs.tsx:99
40
+ #: src/utils/RecommendationError.ts:24
41
+ msgid "Error. Hedia Calculator does not support an insulin dosis greater that 50 units"
42
+ msgstr ""
43
+
44
+ #: src/utils/RecommendationError.ts:25
45
+ msgid "Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours"
46
+ msgstr ""
47
+
48
+ #: src/utils/RecommendationError.ts:14
49
+ msgid "Error. Hedia Calculator does not support your activity intensity value"
50
+ msgstr ""
51
+
52
+ #: src/utils/RecommendationError.ts:22
53
+ msgid "Error. Hedia Calculator does not support your current blood glucose level."
54
+ msgstr ""
55
+
56
+ #: src/utils/RecommendationError.ts:29
57
+ msgid "Error. Hedia Calculator does not support your current blood glucose unit."
58
+ msgstr ""
59
+
60
+ #: src/utils/RecommendationError.ts:28
61
+ msgid "Error. Hedia Calculator does not support your current language."
62
+ msgstr ""
63
+
64
+ #: src/utils/RecommendationError.ts:27
65
+ msgid "Error. Hedia Calculator does not support your injection method."
66
+ msgstr ""
67
+
68
+ #: src/utils/RecommendationError.ts:12
69
+ msgid "Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes."
70
+ msgstr ""
71
+
72
+ #: src/utils/RecommendationError.ts:11
73
+ msgid "Error. Please verify that your activity settings are set up correctly."
74
+ msgstr ""
75
+
76
+ #: src/utils/RecommendationError.ts:15
77
+ msgid "Error. Please verify that your activity target blood glucose value is correct."
78
+ msgstr ""
79
+
80
+ #: src/utils/RecommendationError.ts:20
81
+ msgid "Error. Please verify that your insulin sensitivity value is correct."
82
+ msgstr ""
83
+
84
+ #: src/utils/RecommendationError.ts:21
85
+ msgid "Error. Please verify that your insulin to carb ratio value is correct."
86
+ msgstr ""
87
+
88
+ #: src/utils/RecommendationError.ts:23
89
+ msgid "Error. Please verify that your target blood glucose value is correct."
90
+ msgstr ""
91
+
92
+ #: src/utils/RecommendationError.ts:26
93
+ msgid "Error. Please verify your notifications settings."
94
+ msgstr ""
95
+
96
+ #: src/components/RecommendedCarbs.tsx:100
33
97
  msgid "Food"
34
98
  msgstr "Mad"
35
99
 
36
- #: src/components/RecentInsulin.tsx:15
100
+ #: src/components/activity/ActivityIntensity.tsx:9
101
+ msgid "Hard"
102
+ msgstr "Hård"
103
+
104
+ #: src/components/RecentInsulin.tsx:16
37
105
  msgid "Have you taken insulin within the last 4 hours?"
38
106
  msgstr "Har du taget insulin inden for de sidste 4 timer?"
39
107
 
40
- #: src/utils/RecommendationError.ts:9
41
- msgid "Hedia does not support insulin recommendations related to strenuous activity."
42
- msgstr "Hedia understøtter ikke insulin anbefalinger relateret til anstrengende aktivitet."
108
+ #: src/utils/RecommendationError.ts:13
109
+ msgid "Hedia Calculator does not support activities that finished more than 4 hours ago."
110
+ msgstr ""
43
111
 
44
- #: src/utils/RecommendationError.ts:11
45
- msgid "Hedia does not support insulin recommendations with more than 300g carbohydrates present."
46
- msgstr "Hedia understøtter ikke insulin anbefalinger hvori mere end 300g kulhydrater er tilstede."
112
+ #: src/utils/RecommendationError.ts:16
113
+ msgid "Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present."
114
+ msgstr ""
115
+
116
+ #: src/utils/AttentionMessages.ts:20
117
+ msgid "Hedia doesn't support more than {0} units of insulin per log, but because of the physical activity you entered it has been further reduced by {1}% to {2} units for this log."
118
+ msgstr ""
47
119
 
48
- #: src/components/Emotion.tsx:28
120
+ #: src/components/mood/Emotion.tsx:24
49
121
  msgid "How are you feeling?"
50
122
  msgstr "Hvordan har du det?"
51
123
 
52
- #: src/components/Header.tsx:28
53
- msgid ""
54
- "INSULIN\n"
55
- "RECOMMENDATION"
124
+ #: src/components/Header.tsx:23
125
+ msgid "INSULIN{0}RECOMMENDATION"
126
+ msgstr "INSULIN{0}ANBEFALING"
127
+
128
+ #: src/utils/AttentionMessages.ts:9
129
+ msgid "If it is possible, postpone your planned exercise."
56
130
  msgstr ""
57
- "INSULIN\n"
58
- "ANBEFALING"
59
131
 
60
- #: src/utils/RecommendationError.ts:12
61
- msgid "Insulin limit reached, for your safety Hedia will not recommend more than this."
62
- msgstr "Insulingrænsen i Hedia er nået, for din sikkerhed vil der ikke blive anbefalet mere end dette."
132
+ #: src/components/HediaRecommendationModal.tsx:35
133
+ msgid "Instead of taking insulin"
134
+ msgstr ""
63
135
 
64
- #: src/utils/RecommendationError.ts:13
65
- msgid ""
66
- "More than 15 minutes has passed since this calculation was started.\n"
67
- "Please go through the calculation steps with new measurements to ensure a safe recommendation."
136
+ #: src/utils/RecommendationError.ts:16
137
+ #~ msgid "Insulin limit reached, for your safety Hedia will not recommend more than this."
138
+ #~ msgstr "Insulingrænsen i Hedia er nået, for din sikkerhed vil der ikke blive anbefalet mere end dette."
139
+
140
+ #: src/components/activity/ActivityIntensity.tsx:7
141
+ msgid "Light"
142
+ msgstr "Let"
143
+
144
+ #: src/components/activity/ActivityIntensity.tsx:8
145
+ msgid "Moderate"
146
+ msgstr "Moderat"
147
+
148
+ #: src/utils/RecommendationError.ts:30
149
+ msgid "More than 15 minutes has passed since this calculation was started.{0}Please go through the calculation steps with new measurements to ensure a safe recommendation."
150
+ msgstr "Der er gået mere end 15 minutter siden udregningen blev startet.{0}Gå venligst gennem udregningstrinnene igen med nye målinger for at sikre en sikker anbefaling."
151
+
152
+ #: src/components/HediaRecommendationModal.tsx:20
153
+ msgid "NO"
68
154
  msgstr ""
69
- "Der er gået mere end 15 minutter siden udregningen blev startet.\n"
70
- "Gå venligst gennem udregningstrinnene igen med nye målinger for at sikre en sikker anbefaling."
71
155
 
72
- #: src/components/RecentInsulin.tsx:24
156
+ #: src/components/RecentInsulin.tsx:25
73
157
  msgid "No"
74
158
  msgstr "Nej"
75
159
 
76
- #: src/components/Remeasure.tsx:36
160
+ #: src/components/Remeasure.tsx:38
77
161
  msgid "OFF"
78
162
  msgstr "OFF"
79
163
 
80
- #: src/utils/RecommendationError.ts:10
81
- msgid "Please verify your activity interval settings are set up correctly."
82
- msgstr "Kontroller at dine indstillinger for aktivitetsintervaller er opsat korrekt."
164
+ #: src/components/HediaRecommendationModal.tsx:17
165
+ #: src/components/HediaRecommendationModal.tsx:76
166
+ msgid "OK"
167
+ msgstr ""
83
168
 
84
- #: src/components/RecommendedCarbs.tsx:42
169
+ #: src/components/HediaRecommendationModal.tsx:69
170
+ msgid "OKAY"
171
+ msgstr ""
172
+
173
+ #: src/components/activity/ActivityIntensity.tsx:10
174
+ msgid "Post"
175
+ msgstr "Efter"
176
+
177
+ #: src/components/RecommendedCarbs.tsx:43
85
178
  msgid "Recommended"
86
179
  msgstr "Anbefalet"
87
180
 
88
- #: src/components/RecentInsulin.tsx:11
89
- #: src/components/RecommendedInsulin.tsx:42
181
+ #: src/components/RecentInsulin.tsx:12
182
+ #: src/components/RecommendedInsulin.tsx:44
90
183
  msgid "Recommended amount of insulin"
91
184
  msgstr "Anbefalet enhed(er) af insulin"
92
185
 
93
- #: src/components/Remeasure.tsx:32
186
+ #: src/components/Remeasure.tsx:34
94
187
  msgid "Remind me to remeasure in"
95
188
  msgstr "Påmind mig at genmåle om"
96
189
 
97
- #: src/components/RecommendedCarbs.tsx:67
190
+ #: src/components/RecommendedCarbs.tsx:68
98
191
  msgid "Total"
99
192
  msgstr "Sum"
100
193
 
101
- #: src/components/TransferToLogbook.tsx:24
194
+ #: src/components/TransferToLogbook.tsx:25
102
195
  msgid "Transfer to logbook"
103
196
  msgstr "Overfør til logbog"
104
197
 
105
- #: src/components/TransferToLogbook.tsx:27
106
- msgid "Transfered to logbook"
107
- msgstr "Overført til logbok"
198
+ #: src/components/TransferToLogbook.tsx:28
199
+ msgid "Transferred to logbook"
200
+ msgstr "Overført til logbog"
108
201
 
109
- #: src/components/RecommendedInsulin.tsx:48
202
+ #: src/components/RecommendedInsulin.tsx:50
110
203
  msgid "Units"
111
204
  msgstr "Enheder"
112
205
 
113
- #: src/components/RecentInsulin.tsx:21
206
+ #: src/components/activity/ActivityIcon.tsx:25
207
+ msgid "Untitled Activity"
208
+ msgstr "Unavngivet aktivitet"
209
+
210
+ #: src/components/HediaRecommendationModal.tsx:29
211
+ msgid "We recommend eating an additional:"
212
+ msgstr "Vi anbefaler at spise yderligere:"
213
+
214
+ #: src/components/HediaRecommendationModal.tsx:39
215
+ msgid "Would you like to add this to your current calculation?"
216
+ msgstr ""
217
+
218
+ #: src/components/RecentInsulin.tsx:22
114
219
  msgid "Yes"
115
220
  msgstr "Ja"
116
221
 
117
- #: src/components/RecommendedCarbs.tsx:59
118
- #: src/components/RecommendedCarbs.tsx:69
119
- #: src/components/RecommendedCarbs.tsx:102
222
+ #: src/utils/AttentionMessages.ts:10
223
+ msgid "You have a high blood glucose level."
224
+ msgstr ""
225
+
226
+ #: src/utils/AttentionMessages.ts:11
227
+ msgid "You should take rapid-acting insulin and measure ketones."
228
+ msgstr ""
229
+
230
+ #: src/utils/AttentionMessages.ts:8
231
+ msgid "You will be reminded to measure your blood glucose level in 15 min."
232
+ msgstr ""
233
+
234
+ #: src/utils/AttentionMessages.ts:7
235
+ msgid "Your blood glucose level is very low."
236
+ msgstr ""
237
+
238
+ #: src/utils/AttentionMessages.ts:6
239
+ msgid "Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention."
240
+ msgstr ""
241
+
242
+ #: src/utils/AttentionMessages.ts:12
243
+ #: src/utils/AttentionMessages.ts:22
244
+ msgid "Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons."
245
+ msgstr ""
246
+
247
+ #: src/utils/AttentionMessages.ts:13
248
+ 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}."
249
+ msgstr ""
250
+
251
+ #: src/components/RecommendedCarbs.tsx:60
252
+ #: src/components/RecommendedCarbs.tsx:70
253
+ #: src/components/RecommendedCarbs.tsx:103
120
254
  msgid "g carbs"
121
255
  msgstr "g carbs"
122
256
 
123
- #: src/components/Remeasure.tsx:39
257
+ #: src/components/HediaRecommendationModal.tsx:33
258
+ msgid "grams of carbohydrates"
259
+ msgstr ""
260
+
261
+ #: src/components/Remeasure.tsx:41
124
262
  msgid "hours"
125
263
  msgstr "timer"
126
264
 
127
- #: src/RecommendationScreen.tsx:86
265
+ #: src/components/activity/Activity.tsx:24
266
+ msgid "min"
267
+ msgstr "min"
268
+
269
+ #: src/RecommendationScreen.tsx:128
128
270
  msgid "units"
129
271
  msgstr "enheder"
@@ -1 +1 @@
1
- /* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n10==1&&n100!=11?"one":n10==2&&n100!=12?"two":n10==3&&n100!=13?"few":"other";return n==1&&v0?"one":"other"}},messages:{"Active Insulin":"Active Insulin","Additional":"Additional","Blood Glucose Level":"Blood Glucose Level","Entered":"Entered","Food":"Food","Have you taken insulin within the last 4 hours?":"Have you taken insulin within the last 4 hours?","Hedia does not support insulin recommendations related to strenuous activity.":"Hedia does not support insulin recommendations related to strenuous activity.","Hedia does not support insulin recommendations with more than 300g carbohydrates present.":"Hedia does not support insulin recommendations with more than 300g carbohydrates present.","How are you feeling?":"How are you feeling?","INSULIN\nRECOMMENDATION":"INSULIN\nRECOMMENDATION","Insulin limit reached, for your safety Hedia will not recommend more than this.":"Insulin limit reached, for your safety Hedia will not recommend more than this.","More than 15 minutes has passed since this calculation was started.\nPlease go through the calculation steps with new measurements to ensure a safe recommendation.":"More than 15 minutes has passed since this calculation was started.\nPlease go through the calculation steps with new measurements to ensure a safe recommendation.","No":"No","OFF":"OFF","Please verify your activity interval settings are set up correctly.":"Please verify your activity interval settings are set up correctly.","Recommended":"Recommended","Recommended amount of insulin":"Recommended amount of insulin","Remind me to remeasure in":"Remind me to remeasure in","Total":"Total","Transfer to logbook":"Transfer to logbook","Transfered to logbook":"Transfered to logbook","Units":"Units","Yes":"Yes","g carbs":"g carbs","hours":"hours","units":"units"}};
1
+ /* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n10==1&&n100!=11?"one":n10==2&&n100!=12?"two":n10==3&&n100!=13?"few":"other";return n==1&&v0?"one":"other"}},messages:{"Active Insulin":"Active Insulin","Activity":"Activity","Additional":"Additional","Based on the selected activity your insulin recommendation is reduced by:":"Based on the selected activity your insulin recommendation is reduced by:","Blood Glucose Level":"Blood Glucose Level","Entered":"Entered","Error. Hedia Calculator does not support an insulin dosis greater that 50 units":"Error. Hedia Calculator does not support an insulin dosis greater that 50 units","Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours","Error. Hedia Calculator does not support your activity intensity value":"Error. Hedia Calculator does not support your activity intensity value","Error. Hedia Calculator does not support your current blood glucose level.":"Error. Hedia Calculator does not support your current blood glucose level.","Error. Hedia Calculator does not support your current blood glucose unit.":"Error. Hedia Calculator does not support your current blood glucose unit.","Error. Hedia Calculator does not support your current language.":"Error. Hedia Calculator does not support your current language.","Error. Hedia Calculator does not support your injection method.":"Error. Hedia Calculator does not support your injection method.","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.","Error. Please verify that your activity settings are set up correctly.":"Error. Please verify that your activity settings are set up correctly.","Error. Please verify that your activity target blood glucose value is correct.":"Error. Please verify that your activity target blood glucose value is correct.","Error. Please verify that your insulin sensitivity value is correct.":"Error. Please verify that your insulin sensitivity value is correct.","Error. Please verify that your insulin to carb ratio value is correct.":"Error. Please verify that your insulin to carb ratio value is correct.","Error. Please verify that your target blood glucose value is correct.":"Error. Please verify that your target blood glucose value is correct.","Error. Please verify your notifications settings.":"Error. Please verify your notifications settings.","Food":"Food","Hard":"Hard","Have you taken insulin within the last 4 hours?":"Have you taken insulin within the last 4 hours?","Hedia Calculator does not support activities that finished more than 4 hours ago.":"Hedia Calculator does not support activities that finished more than 4 hours ago.","Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.":"Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.","Hedia doesn't support more than {0} units of insulin per log, but because of the physical activity you entered it has been further reduced by {1}% to {2} units for this log.":function(a){return["Hedia doesn't support more than ",a("0")," units of insulin per log, but because of the physical activity you entered it has been further reduced by ",a("1"),"% to ",a("2")," units for this log."]},"How are you feeling?":"How are you feeling?","INSULIN{0}RECOMMENDATION":function(a){return["INSULIN",a("0"),"RECOMMENDATION"]},"If it is possible, postpone your planned exercise.":"If it is possible, postpone your planned exercise.","Instead of taking insulin":"Instead of taking insulin","Insulin limit reached, for your safety Hedia will not recommend more than this.":"Insulin limit reached, for your safety Hedia will not recommend more than this.","Light":"Light","Moderate":"Moderate","More than 15 minutes has passed since this calculation was started.{0}Please go through the calculation steps with new measurements to ensure a safe recommendation.":function(a){return["More than 15 minutes has passed since this calculation was started.",a("0"),"Please go through the calculation steps with new measurements to ensure a safe recommendation."]},"NO":"NO","No":"No","OFF":"OFF","OK":"OK","OKAY":"OKAY","Post":"Post","Recommended":"Recommended","Recommended amount of insulin":"Recommended amount of insulin","Remind me to remeasure in":"Remind me to remeasure in","Total":"Total","Transfer to logbook":"Transfer to logbook","Transferred to logbook":"Transferred to logbook","Units":"Units","Untitled Activity":"Untitled Activity","We recommend eating an additional:":"We recommend eating an additional:","Would you like to add this to your current calculation?":"Would you like to add this to your current calculation?","Yes":"Yes","You have a high blood glucose level.":"You have a high blood glucose level.","You should take rapid-acting insulin and measure ketones.":"You should take rapid-acting insulin and measure ketones.","You will be reminded to measure your blood glucose level in 15 min.":"You will be reminded to measure your blood glucose level in 15 min.","Your blood glucose level is very low.":"Your blood glucose level is very low.","Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.":"Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.","Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons.":function(a){return["Your recommendation would have been higher than ",a("0")," units of insulin, but it has been limited for safety reasons."]},"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}.":function(a){return["Your recommendation would have been higher than ",a("0")," units of insulin, but it has been limited for safety reasons.",a("1")," Hedia never recommends more than ",a("2")," units of insulin per calculation, but because of the physical activity you entered it has been further reduced by ",a("3"),"% to ",a("4"),"."]},"g carbs":"g carbs","grams of carbohydrates":"grams of carbohydrates","hours":"hours","min":"min","units":"units"}};