@hedia/recommendation-screen 2.2.0-alpha.45 → 2.2.0-alpha.5

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 (181) hide show
  1. package/dist/index.js +0 -1
  2. package/dist/src/RecommendationScreen.d.ts +67 -64
  3. package/dist/src/RecommendationScreen.js +145 -157
  4. package/dist/src/assets/assets/activity/Cyclist.png +0 -0
  5. package/dist/src/assets/assets/activity/Other.png +0 -0
  6. package/dist/src/assets/assets/activity/Runner.png +0 -0
  7. package/dist/src/assets/assets/activity/Swimmer.png +0 -0
  8. package/dist/src/assets/assets/activity/Walk.png +0 -0
  9. package/dist/src/assets/assets/fonts/Poppins-Bold.ttf +0 -0
  10. package/dist/src/assets/assets/fonts/Poppins-SemiBold.ttf +0 -0
  11. package/dist/src/assets/assets/icons/Edit.tsx +22 -0
  12. package/dist/src/assets/assets/icons/X.tsx +14 -0
  13. package/dist/src/assets/assets/mood/happy.png +0 -0
  14. package/dist/src/assets/assets/mood/happy_active.png +0 -0
  15. package/dist/src/assets/assets/mood/neutral.png +0 -0
  16. package/dist/src/assets/assets/mood/neutral_active.png +0 -0
  17. package/dist/src/assets/assets/mood/sad.png +0 -0
  18. package/dist/src/assets/assets/mood/sad_active.png +0 -0
  19. package/dist/src/assets/assets/mood/semi_happy.png +0 -0
  20. package/dist/src/assets/assets/mood/semi_happy_active.png +0 -0
  21. package/dist/src/assets/assets/mood/semi_sad.png +0 -0
  22. package/dist/src/assets/assets/mood/semi_sad_active.png +0 -0
  23. package/dist/src/assets/icons/Edit.d.ts +4 -0
  24. package/dist/src/assets/icons/Edit.js +7 -0
  25. package/dist/src/assets/{IconsSVG/Edit.d.ts → icons/X.d.ts} +2 -2
  26. package/dist/src/assets/icons/X.js +6 -0
  27. package/dist/src/components/ForecastInfoBar.d.ts +109 -0
  28. package/dist/src/components/ForecastInfoBar.js +138 -0
  29. package/dist/src/components/Header.d.ts +8 -0
  30. package/dist/src/components/Header.js +54 -0
  31. package/dist/src/components/Icon.d.ts +20 -0
  32. package/dist/src/components/Icon.js +43 -0
  33. package/dist/src/components/InfoBars.d.ts +28 -13
  34. package/dist/src/components/InfoBars.js +63 -33
  35. package/dist/src/components/InvisibleNumberInput.d.ts +3 -8
  36. package/dist/src/components/InvisibleNumberInput.js +20 -22
  37. package/dist/src/components/LimitationMessage.d.ts +14 -0
  38. package/dist/src/components/LimitationMessage.js +30 -0
  39. package/dist/src/components/LineSeparator.d.ts +1 -5
  40. package/dist/src/components/LineSeparator.js +3 -2
  41. package/dist/src/components/RecentInsulin.d.ts +1 -2
  42. package/dist/src/components/RecentInsulin.js +40 -57
  43. package/dist/src/components/RecommendationModal.d.ts +63 -61
  44. package/dist/src/components/RecommendationModal.js +118 -133
  45. package/dist/src/components/RecommendedCarbs.d.ts +0 -2
  46. package/dist/src/components/RecommendedCarbs.js +99 -82
  47. package/dist/src/components/RecommendedInsulin.d.ts +1 -1
  48. package/dist/src/components/RecommendedInsulin.js +72 -56
  49. package/dist/src/components/Remeasure.d.ts +15 -5
  50. package/dist/src/components/Remeasure.js +77 -50
  51. package/dist/src/components/{TransferToLogbook.d.ts → SaveButton.d.ts} +2 -2
  52. package/dist/src/components/{TransferToLogbook.js → SaveButton.js} +30 -27
  53. package/dist/src/components/TwoOptionModal.d.ts +136 -0
  54. package/dist/src/components/TwoOptionModal.js +141 -0
  55. package/dist/src/components/activity/Activity.d.ts +2 -2
  56. package/dist/src/components/activity/Activity.js +49 -58
  57. package/dist/src/components/activity/ActivityIcon.d.ts +7 -7
  58. package/dist/src/components/activity/ActivityIcon.js +29 -37
  59. package/dist/src/components/activity/ActivityIntensity.d.ts +1 -1
  60. package/dist/src/components/activity/ActivityIntensity.js +23 -20
  61. package/dist/src/components/mood/Emotion.d.ts +1 -1
  62. package/dist/src/components/mood/Emotion.js +16 -21
  63. package/dist/src/components/mood/MoodIcon.d.ts +5 -4
  64. package/dist/src/components/mood/MoodIcon.js +23 -28
  65. package/dist/src/components/text/TextBold.d.ts +8 -0
  66. package/dist/src/components/text/TextBold.js +12 -0
  67. package/dist/src/components/text/TextRegular.d.ts +8 -0
  68. package/dist/src/components/text/TextRegular.js +12 -0
  69. package/dist/src/locale/da/messages.js +1 -0
  70. package/dist/src/locale/da/messages.po +353 -0
  71. package/dist/src/locale/de/messages.js +1 -0
  72. package/dist/src/locale/de/messages.po +353 -0
  73. package/dist/src/locale/en/messages.js +1 -0
  74. package/dist/src/locale/en/messages.po +353 -0
  75. package/dist/src/locale/es/messages.js +1 -0
  76. package/dist/src/locale/es/messages.po +353 -0
  77. package/dist/src/locale/fr/messages.js +1 -0
  78. package/dist/src/locale/fr/messages.po +353 -0
  79. package/dist/src/locale/i18nUtils.d.ts +18 -0
  80. package/dist/src/locale/i18nUtils.js +39 -0
  81. package/dist/src/locale/it/messages.js +1 -0
  82. package/dist/src/locale/it/messages.po +353 -0
  83. package/dist/src/types/enum.d.ts +15 -21
  84. package/dist/src/types/enum.js +18 -27
  85. package/dist/src/types/types.js +0 -1
  86. package/dist/src/utils/AttentionMessages.js +24 -29
  87. package/dist/src/utils/Constants.d.ts +3 -17
  88. package/dist/src/utils/Constants.js +1 -16
  89. package/dist/src/utils/RecommendationError.js +24 -26
  90. package/dist/src/utils/RecommendationUtils.js +2 -5
  91. package/dist/src/utils/Translations.js +5 -5
  92. package/dist/src/utils/Utils.d.ts +1 -1
  93. package/dist/src/utils/Utils.js +0 -1
  94. package/dist/src/utils/Validations.d.ts +1 -1
  95. package/dist/src/utils/Validations.js +2 -3
  96. package/package.json +99 -89
  97. package/dist/index.js.map +0 -1
  98. package/dist/src/RecommendationScreen.js.map +0 -1
  99. package/dist/src/assets/IconsSVG/Close.d.ts +0 -4
  100. package/dist/src/assets/IconsSVG/Close.js +0 -7
  101. package/dist/src/assets/IconsSVG/Close.js.map +0 -1
  102. package/dist/src/assets/IconsSVG/CloseOutlined.d.ts +0 -4
  103. package/dist/src/assets/IconsSVG/CloseOutlined.js +0 -9
  104. package/dist/src/assets/IconsSVG/CloseOutlined.js.map +0 -1
  105. package/dist/src/assets/IconsSVG/Edit.js +0 -8
  106. package/dist/src/assets/IconsSVG/Edit.js.map +0 -1
  107. package/dist/src/assets/IconsSVG/activity/Cycling.d.ts +0 -4
  108. package/dist/src/assets/IconsSVG/activity/Cycling.js +0 -12
  109. package/dist/src/assets/IconsSVG/activity/Cycling.js.map +0 -1
  110. package/dist/src/assets/IconsSVG/activity/Running.d.ts +0 -4
  111. package/dist/src/assets/IconsSVG/activity/Running.js +0 -10
  112. package/dist/src/assets/IconsSVG/activity/Running.js.map +0 -1
  113. package/dist/src/assets/IconsSVG/activity/Stretching.d.ts +0 -4
  114. package/dist/src/assets/IconsSVG/activity/Stretching.js +0 -10
  115. package/dist/src/assets/IconsSVG/activity/Stretching.js.map +0 -1
  116. package/dist/src/assets/IconsSVG/activity/Swimming.d.ts +0 -4
  117. package/dist/src/assets/IconsSVG/activity/Swimming.js +0 -13
  118. package/dist/src/assets/IconsSVG/activity/Swimming.js.map +0 -1
  119. package/dist/src/assets/IconsSVG/activity/Walking.d.ts +0 -4
  120. package/dist/src/assets/IconsSVG/activity/Walking.js +0 -11
  121. package/dist/src/assets/IconsSVG/activity/Walking.js.map +0 -1
  122. package/dist/src/assets/IconsSVG/mood/Happy.d.ts +0 -4
  123. package/dist/src/assets/IconsSVG/mood/Happy.js +0 -11
  124. package/dist/src/assets/IconsSVG/mood/Happy.js.map +0 -1
  125. package/dist/src/assets/IconsSVG/mood/Neutral.d.ts +0 -4
  126. package/dist/src/assets/IconsSVG/mood/Neutral.js +0 -11
  127. package/dist/src/assets/IconsSVG/mood/Neutral.js.map +0 -1
  128. package/dist/src/assets/IconsSVG/mood/Sad.d.ts +0 -4
  129. package/dist/src/assets/IconsSVG/mood/Sad.js +0 -11
  130. package/dist/src/assets/IconsSVG/mood/Sad.js.map +0 -1
  131. package/dist/src/assets/IconsSVG/mood/SemiHappy.d.ts +0 -4
  132. package/dist/src/assets/IconsSVG/mood/SemiHappy.js +0 -11
  133. package/dist/src/assets/IconsSVG/mood/SemiHappy.js.map +0 -1
  134. package/dist/src/assets/IconsSVG/mood/SemiSad.d.ts +0 -4
  135. package/dist/src/assets/IconsSVG/mood/SemiSad.js +0 -11
  136. package/dist/src/assets/IconsSVG/mood/SemiSad.js.map +0 -1
  137. package/dist/src/components/ExitModal.d.ts +0 -25
  138. package/dist/src/components/ExitModal.js +0 -91
  139. package/dist/src/components/ExitModal.js.map +0 -1
  140. package/dist/src/components/InfoBars.js.map +0 -1
  141. package/dist/src/components/InvisibleNumberInput.js.map +0 -1
  142. package/dist/src/components/LineSeparator.js.map +0 -1
  143. package/dist/src/components/RecentInsulin.js.map +0 -1
  144. package/dist/src/components/RecommendationModal.js.map +0 -1
  145. package/dist/src/components/RecommendedCarbs.js.map +0 -1
  146. package/dist/src/components/RecommendedInsulin.js.map +0 -1
  147. package/dist/src/components/Remeasure.js.map +0 -1
  148. package/dist/src/components/Text.d.ts +0 -13
  149. package/dist/src/components/Text.js +0 -14
  150. package/dist/src/components/Text.js.map +0 -1
  151. package/dist/src/components/TimeoutModal.d.ts +0 -24
  152. package/dist/src/components/TimeoutModal.js +0 -84
  153. package/dist/src/components/TimeoutModal.js.map +0 -1
  154. package/dist/src/components/TransferToLogbook.js.map +0 -1
  155. package/dist/src/components/activity/Activity.js.map +0 -1
  156. package/dist/src/components/activity/ActivityIcon.js.map +0 -1
  157. package/dist/src/components/activity/ActivityIntensity.js.map +0 -1
  158. package/dist/src/components/mood/Emotion.js.map +0 -1
  159. package/dist/src/components/mood/MoodIcon.js.map +0 -1
  160. package/dist/src/components/styles/fonts.d.ts +0 -143
  161. package/dist/src/components/styles/fonts.js +0 -145
  162. package/dist/src/components/styles/fonts.js.map +0 -1
  163. package/dist/src/locales/da/translations.json +0 -82
  164. package/dist/src/locales/de/translations.json +0 -81
  165. package/dist/src/locales/en/translations.json +0 -84
  166. package/dist/src/locales/es/translations.json +0 -81
  167. package/dist/src/locales/fr/translations.json +0 -81
  168. package/dist/src/locales/it/translations.json +0 -81
  169. package/dist/src/locales/translate.d.ts +0 -19
  170. package/dist/src/locales/translate.js +0 -53
  171. package/dist/src/locales/translate.js.map +0 -1
  172. package/dist/src/types/enum.js.map +0 -1
  173. package/dist/src/types/types.js.map +0 -1
  174. package/dist/src/utils/AttentionMessages.js.map +0 -1
  175. package/dist/src/utils/Constants.js.map +0 -1
  176. package/dist/src/utils/RecommendationError.js.map +0 -1
  177. package/dist/src/utils/RecommendationUtils.js.map +0 -1
  178. package/dist/src/utils/Translations.js.map +0 -1
  179. package/dist/src/utils/Utils.js.map +0 -1
  180. package/dist/src/utils/Validations.js.map +0 -1
  181. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,353 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "POT-Creation-Date: 2020-07-02 10:25+0200\n"
4
+ "Mime-Version: 1.0\n"
5
+ "Content-Type: text/plain; charset=utf-8\n"
6
+ "Content-Transfer-Encoding: 8bit\n"
7
+ "X-Generator: @lingui/cli\n"
8
+ "Language: en\n"
9
+ "Project-Id-Version: \n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "PO-Revision-Date: \n"
12
+ "Last-Translator: \n"
13
+ "Language-Team: \n"
14
+ "Plural-Forms: \n"
15
+
16
+ #: src/RecommendationScreen.tsx:453
17
+ msgid "Active Insulin"
18
+ msgstr "Insulina attiva"
19
+
20
+ #: src/components/activity/Activity.tsx:34
21
+ msgid "Activity"
22
+ msgstr "Attività fisica"
23
+
24
+ #: src/components/RecommendedCarbs.tsx:104
25
+ msgid "Additional"
26
+ msgstr "Ulteriori"
27
+
28
+ #: src/components/LimitationMessage.tsx:21
29
+ #: src/components/RecommendationModal.tsx:104
30
+ #: src/components/RecommendedCarbs.tsx:66
31
+ #: src/components/RecommendedInsulin.tsx:76
32
+ msgid "Attention"
33
+ msgstr "Attenzione"
34
+
35
+ #: src/components/activity/Activity.tsx:51
36
+ msgid "Based on the selected activity your insulin recommendation is reduced by:"
37
+ msgstr "In base all'attività selezionata, la prescrizione per l'insulina è ridotta di:"
38
+
39
+ #: src/RecommendationScreen.tsx:454
40
+ msgid "Blood Glucose Level"
41
+ msgstr "Indice glicemico"
42
+
43
+ #: src/RecommendationScreen.tsx:455
44
+ msgid "Blood Ketone Level"
45
+ msgstr "Livello di chetoni nel sangue"
46
+
47
+ #: src/components/RecommendedCarbs.tsx:169
48
+ msgid "Carbohydrates"
49
+ msgstr "Carboidrati"
50
+
51
+ #: src/RecommendationScreen.tsx:471
52
+ msgid "Close calculation"
53
+ msgstr "Chiudi calcolo"
54
+
55
+ #: src/utils/AttentionMessages.tsx:86
56
+ msgid "Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity."
57
+ msgstr "Ricorda di non iniziare l'attività fisica prima che il livello di glucosio nel sangue non sia rientrato negli intervalli raccomandati prima dell'attività fisica."
58
+
59
+ #: src/components/RecommendedInsulin.tsx:108
60
+ msgid "Edit"
61
+ msgstr ""
62
+
63
+ #: src/components/RecommendedCarbs.tsx:173
64
+ msgid "Entered"
65
+ msgstr "Inserito"
66
+
67
+ #: src/utils/RecommendationError.tsx:50
68
+ msgid "Error. Hedia Calculator could not find your recent boluses"
69
+ msgstr ""
70
+
71
+ #: src/utils/RecommendationError.tsx:46
72
+ msgid "Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units"
73
+ msgstr "Errore. Hedia Calculator non supporta una dose di insulina superiore a {SAFETY_INSULIN_LIMIT} unità"
74
+
75
+ #: src/utils/RecommendationError.tsx:48
76
+ msgid "Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours"
77
+ msgstr "Errore. Hedia Calculator non supporta le raccomandazioni di insulina con boli più vecchi di 4 ore"
78
+
79
+ #: src/utils/RecommendationError.tsx:40
80
+ msgid "Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours."
81
+ msgstr ""
82
+
83
+ #: src/utils/RecommendationError.tsx:26
84
+ msgid "Error. Hedia Calculator does not support your activity intensity value"
85
+ msgstr "Errore. Hedia Calculator non supporta il valore dell'intensità dell'attività"
86
+
87
+ #: src/utils/RecommendationError.tsx:28
88
+ msgid "Error. Hedia Calculator does not support your activity type value"
89
+ msgstr "Errore. Hedia Calculator non supporta il valore del tipo di attività"
90
+
91
+ #: src/utils/RecommendationError.tsx:38
92
+ msgid "Error. Hedia Calculator does not support your current blood glucose level."
93
+ msgstr "Errore. Hedia Calculator non supporta la tua glicemia attuale."
94
+
95
+ #: src/utils/RecommendationError.tsx:60
96
+ msgid "Error. Hedia Calculator does not support your current blood glucose unit."
97
+ msgstr "Errore. Hedia Calculator non supporta l'attuale unità misura di glucosio nel sangue."
98
+
99
+ #: src/utils/RecommendationError.tsx:42
100
+ msgid "Error. Hedia Calculator does not support your current blood ketone level."
101
+ msgstr "Errore. Hedia Calculator non supporta l'attuale livello di chetoni nel sangue."
102
+
103
+ #: src/utils/RecommendationError.tsx:58
104
+ msgid "Error. Hedia Calculator does not support your current blood ketone unit."
105
+ msgstr "Errore. Hedia Calculator non supporta l'attuale unità di misura di chetoni del sangue."
106
+
107
+ #: src/utils/RecommendationError.tsx:56
108
+ msgid "Error. Hedia Calculator does not support your current language."
109
+ msgstr "Errore. Hedia Calculator non supporta la lingua corrente."
110
+
111
+ #: src/utils/RecommendationError.tsx:54
112
+ msgid "Error. Hedia Calculator does not support your injection method."
113
+ msgstr "Errore. Hedia Calculator non supporta il metodo di iniezione."
114
+
115
+ #: src/utils/RecommendationError.tsx:22
116
+ msgid "Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes."
117
+ msgstr "Errore. Hedia Calculator supporta solo attività della durata massima di 60 minuti."
118
+
119
+ #: src/utils/RecommendationError.tsx:20
120
+ msgid "Error. Please verify that your activity settings are set up correctly."
121
+ msgstr "Errore. Verificare che le impostazioni delle attività siano impostate correttamente."
122
+
123
+ #: src/utils/RecommendationError.tsx:30
124
+ msgid "Error. Please verify that your activity target blood glucose value is correct."
125
+ msgstr "Errore. Verificare che il indice glicemico desiderato durante l’attività sia corretto."
126
+
127
+ #: src/utils/RecommendationError.tsx:34
128
+ msgid "Error. Please verify that your insulin sensitivity value is correct."
129
+ msgstr "Errore. Verificare che il valore della sensibilità all'insulina sia corretto."
130
+
131
+ #: src/utils/RecommendationError.tsx:36
132
+ msgid "Error. Please verify that your insulin to carb ratio value is correct."
133
+ msgstr "Errore. Verificare che il valore del rapporto insulina/carboidrati sia corretto."
134
+
135
+ #: src/utils/RecommendationError.tsx:44
136
+ msgid "Error. Please verify that your target blood glucose value is correct."
137
+ msgstr "Errore. Verificare che il valore obiettivo della glicemia sia corretto."
138
+
139
+ #: src/utils/RecommendationError.tsx:52
140
+ msgid "Error. Please verify your notifications settings."
141
+ msgstr "Errore. Verificare le impostazioni di notifica."
142
+
143
+ #: src/utils/RecommendationError.tsx:62
144
+ msgid "Error. Your blood ketone settings are invalid."
145
+ msgstr ""
146
+
147
+ #: src/components/RecommendedCarbs.tsx:167
148
+ msgid "Food"
149
+ msgstr "Cibo"
150
+
151
+ #: src/RecommendationScreen.tsx:454
152
+ msgid "Forecasted Glucose"
153
+ msgstr ""
154
+
155
+ #: src/components/ForecastInfoBar.tsx:54
156
+ msgid "Forecasted time:"
157
+ msgstr ""
158
+
159
+ #: src/utils/Translations.ts:13
160
+ msgid "Hard"
161
+ msgstr "Intensa"
162
+
163
+ #: src/components/RecentInsulin.tsx:24
164
+ msgid "Have you taken rapid-acting insulin within the last 4 hours?"
165
+ msgstr ""
166
+
167
+ #: src/utils/RecommendationError.tsx:24
168
+ msgid "Hedia Calculator does not support activities that finished more than 4 hours ago."
169
+ msgstr "Hedia Calculator non supporta attività che siano terminate più di 4 ore fa."
170
+
171
+ #: src/utils/RecommendationError.tsx:32
172
+ msgid "Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present."
173
+ msgstr "Hedia Calculator non supporta le prescrizioni di insulina con più di 300 grammi di carboidrati presenti."
174
+
175
+ #: src/utils/AttentionMessages.tsx:105
176
+ msgid "Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation."
177
+ msgstr "Hedia non supporta più di {SAFETY_INSULIN_LIMIT} unità di insulina per ogni calcolo."
178
+
179
+ #: src/utils/AttentionMessages.tsx:103
180
+ msgid "Hedia doesn't support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {0}% to {1} units for this calculation."
181
+ msgstr "Hedia non supporta più di {SAFETY_INSULIN_LIMIT} unità di insulina per ogni calcolo, ma, a seguito dell'attività fisica che hai inserito, è stata ulteriormente ridotta del {0}% a {1} unità per questo calcolo."
182
+
183
+ #: src/components/mood/Emotion.tsx:46
184
+ msgid "How are you feeling?"
185
+ msgstr "Come ti senti?"
186
+
187
+ #: src/utils/AttentionMessages.tsx:84
188
+ msgid "If it is possible, postpone your planned exercise."
189
+ msgstr "Se possibile, posticipa l'allenamento pianificato."
190
+
191
+ #: src/components/RecommendationModal.tsx:83
192
+ msgid "Instead of taking insulin"
193
+ msgstr "Invece di assumere insulina"
194
+
195
+ #: src/components/Header.tsx:19
196
+ msgid "Insulin recommendation"
197
+ msgstr "Prescrizione di insulina"
198
+
199
+ #: src/utils/Translations.ts:11
200
+ msgid "Light"
201
+ msgstr "Leggera"
202
+
203
+ #: src/utils/Translations.ts:12
204
+ msgid "Moderate"
205
+ msgstr "Moderata"
206
+
207
+ #: src/utils/AttentionMessages.tsx:107
208
+ msgid "More than 15 minutes has passed since this calculation was started."
209
+ msgstr "Sono passati più di 15 minuti dall'inizio di questo calcolo."
210
+
211
+ #: src/components/RecommendationModal.tsx:53
212
+ msgid "NO"
213
+ msgstr "NO"
214
+
215
+ #: src/components/RecentInsulin.tsx:32
216
+ msgid "No"
217
+ msgstr "No"
218
+
219
+ #: src/RecommendationScreen.tsx:476
220
+ msgid "No, return to dashboard"
221
+ msgstr "No, torna al pannello di controllo"
222
+
223
+ #: src/components/Remeasure.tsx:74
224
+ msgid "OFF"
225
+ msgstr "SPENTO"
226
+
227
+ #: src/components/LimitationMessage.tsx:27
228
+ #: src/components/RecommendationModal.tsx:50
229
+ #: src/components/RecommendationModal.tsx:111
230
+ #: src/components/RecommendedCarbs.tsx:68
231
+ #: src/components/RecommendedInsulin.tsx:78
232
+ msgid "OK"
233
+ msgstr "OK"
234
+
235
+ #: src/utils/AttentionMessages.tsx:112
236
+ msgid "Please go through the calculation steps with new measurements to ensure a safe recommendation."
237
+ msgstr "Completa tutte le fasi del calcolo con nuove misurazioni per assicurare una prescrizione sicura."
238
+
239
+ #: src/utils/AttentionMessages.tsx:117
240
+ msgid "Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?"
241
+ msgstr "La prescrizione del {day} alle {time} non è stata trasferita nel tuo diario.{0} Hai usato la prescrizione?"
242
+
243
+ #: src/components/RecommendedCarbs.tsx:99
244
+ msgid "Recommended"
245
+ msgstr "Prescritta"
246
+
247
+ #: src/components/RecommendedInsulin.tsx:97
248
+ msgid "Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose"
249
+ msgstr ""
250
+
251
+ #: src/components/Remeasure.tsx:68
252
+ msgid "Remind me to remeasure in"
253
+ msgstr "Ricordami di misurare nuovamente tra"
254
+
255
+ #: src/RecommendationScreen.tsx:476
256
+ msgid "Return to dashboard"
257
+ msgstr "Torna al pannello di controllo"
258
+
259
+ #: src/RecommendationScreen.tsx:471
260
+ msgid "Save data before closing?"
261
+ msgstr "Salvare i dati prima della chiusura?"
262
+
263
+ #: src/RecommendationScreen.tsx:471
264
+ #: src/components/SaveButton.tsx:45
265
+ msgid "Save to logbook"
266
+ msgstr "Salva nel diario"
267
+
268
+ #: src/RecommendationScreen.tsx:476
269
+ msgid "Start new calculation"
270
+ msgstr "Inizia il nuovo calcolo"
271
+
272
+ #: src/components/RecommendedCarbs.tsx:126
273
+ msgid "Total"
274
+ msgstr "Totale"
275
+
276
+ #: src/components/RecommendedInsulin.tsx:104
277
+ msgid "Units"
278
+ msgstr "Unità"
279
+
280
+ #: src/components/activity/ActivityIcon.tsx:42
281
+ msgid "Untitled Activity"
282
+ msgstr "Attività senza titolo"
283
+
284
+ #: src/components/RecommendationModal.tsx:68
285
+ msgid "We recommend eating an additional:"
286
+ msgstr "Consigliamo di ingerire una quantità supplementare:"
287
+
288
+ #: src/components/RecommendationModal.tsx:89
289
+ msgid "Would you like to add this to your current calculation?"
290
+ msgstr "Vuoi aggiungere questo al tuo calcolo corrente?"
291
+
292
+ #: src/components/RecentInsulin.tsx:29
293
+ msgid "Yes"
294
+ msgstr "Sì"
295
+
296
+ #: src/RecommendationScreen.tsx:476
297
+ msgid "Yes, save to logbook"
298
+ msgstr "Sì, salva nel diario"
299
+
300
+ #: src/utils/AttentionMessages.tsx:88
301
+ msgid "You have a high blood glucose level."
302
+ msgstr "Hai un alto indice glicemico."
303
+
304
+ #: src/utils/AttentionMessages.tsx:90
305
+ msgid "You should take rapid-acting insulin and measure ketones."
306
+ msgstr "Devi assumere insulina ad azione rapida e misurare i chetoni."
307
+
308
+ #: src/utils/AttentionMessages.tsx:82
309
+ msgid "You will be reminded to measure your blood glucose level in 15 min."
310
+ msgstr "Ti verrà ricordato di misurare il indice glicemico tra 15 min."
311
+
312
+ #: src/utils/AttentionMessages.tsx:80
313
+ msgid "Your blood glucose level is very low."
314
+ msgstr "Il indice glicemico è molto basso."
315
+
316
+ #: src/utils/AttentionMessages.tsx:78
317
+ msgid "Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention."
318
+ msgstr "Il indice glicemico è molto basso. Assumi glucagon o ingerisci carboidrati, se possibile. Rivolgiti a un medico."
319
+
320
+ #: src/utils/AttentionMessages.tsx:95
321
+ 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 {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {2}% to {3}."
322
+ msgstr "La tua prescrizione sarebbe stata superiore a {0} unità di insulina, ma è stata limitata per motivi di sicurezza.{1} Hedia non prescrive mai più di {SAFETY_INSULIN_LIMIT} unità di insulina per calcolo, ma a seguito dell'attività fisica che hai inserito, questa è stata ulteriormente ridotta del {2}% a {3}."
323
+
324
+ #: src/utils/AttentionMessages.tsx:92
325
+ msgid "Your recommendation would have been higher than {SAFETY_INSULIN_LIMIT} units of insulin, but it has been limited for safety reasons. Hedia never recommends more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation."
326
+ msgstr "La tua prescrizione sarebbe stata superiore a {SAFETY_INSULIN_LIMIT} unità di insulina, ma è stata limitata per motivi di sicurezza. Hedia non prescrive mai più di {SAFETY_INSULIN_LIMIT} unità di insulina per calcolo."
327
+
328
+ #: src/RecommendationScreen.tsx:471
329
+ msgid "Your saved data will be used for future calculations."
330
+ msgstr "I dati salvati saranno utilizzati per calcoli futuri."
331
+
332
+ #: src/components/RecommendedCarbs.tsx:118
333
+ #: src/components/RecommendedCarbs.tsx:128
334
+ #: src/components/RecommendedCarbs.tsx:175
335
+ msgid "grams"
336
+ msgstr "grammi"
337
+
338
+ #: src/components/RecommendationModal.tsx:77
339
+ msgid "grams of carbohydrates"
340
+ msgstr "grammi di carboidrati"
341
+
342
+ #: src/components/Remeasure.tsx:78
343
+ msgid "hours"
344
+ msgstr "ore"
345
+
346
+ #: src/components/activity/Activity.tsx:43
347
+ msgid "min"
348
+ msgstr "min"
349
+
350
+ #: src/RecommendationScreen.tsx:453
351
+ #: src/components/InfoBars.tsx:43
352
+ msgid "units"
353
+ msgstr "unità"
@@ -9,6 +9,13 @@ export declare namespace Testing {
9
9
  ActivityDuration = "activity-duration-minutes",
10
10
  ActivityReduction = "activity-reduction-percentage"
11
11
  }
12
+ enum HeaderTestIds {
13
+ ExitCalculation = "exit-calculation-button",
14
+ HeaderText = "header-text"
15
+ }
16
+ enum LimitationMessageTestIds {
17
+ OkButton = "limitation-message-ok-button"
18
+ }
12
19
  enum RecentInsulinTestIds {
13
20
  No = "recent-insulin-no",
14
21
  Yes = "recent-insulin-yes"
@@ -31,7 +38,6 @@ export declare namespace Testing {
31
38
  DeclineCarbs = "recommendation-modal-decline-carbs",
32
39
  AcceptCarbs = "recommendation-modal-accept-carbs",
33
40
  OkButton = "recommendation-modal-ok-button",
34
- LimitationOkButton = "limitation-message-ok-button",
35
41
  SuggestedCarbs = "recommendation-modal-suggested-carbs"
36
42
  }
37
43
  enum RemeasureTestIds {
@@ -41,12 +47,7 @@ export declare namespace Testing {
41
47
  enum TransferToLogbookTestIds {
42
48
  TransferButton = "transfer-to-logbook-button"
43
49
  }
44
- enum ExitModalTestIds {
45
- ExitButton = "exit-two-option-modal",
46
- FirstOption = "first-option-button",
47
- SecondOption = "second-option-button"
48
- }
49
- enum TimeOutModalTestIds {
50
+ enum TwoOptionModalTestIds {
50
51
  ExitButton = "exit-two-option-modal",
51
52
  FirstOption = "first-option-button",
52
53
  SecondOption = "second-option-button"
@@ -56,23 +57,26 @@ export declare namespace Testing {
56
57
  enum Value {
57
58
  BloodKetone = "blood-ketone-value",
58
59
  BloodGlucose = "blood-glucose-value",
59
- ActiveInsulin = "active-insulin-value"
60
+ ActiveInsulin = "active-insulin-value",
61
+ ForecastedGlucose = "forecasted-glucose-value"
60
62
  }
61
63
  enum Label {
62
64
  BloodKetone = "blood-ketone-label",
63
65
  BloodGlucose = "blood-glucose-label",
64
- ActiveInsulin = "active-insulin-label"
66
+ ActiveInsulin = "active-insulin-label",
67
+ ForecastedGlucose = "forecasted-glucose-label"
65
68
  }
66
69
  enum Unit {
67
70
  BloodKetone = "blood-ketone-unit",
68
71
  BloodGlucose = "blood-glucose-unit",
69
- ActiveInsulin = "active-insulin-unit"
72
+ ActiveInsulin = "active-insulin-unit",
73
+ ForecastedGlucose = "forecasted-glucose-unit"
70
74
  }
71
75
  }
72
76
  }
73
77
  /** Namespace containing all the TestIdEnum keys */
74
78
  namespace Types {
75
- type TestIdEnum = Id.ActivityTestIds | Id.RecentInsulinTestIds | Id.RecommendedCarbsTestIds | Id.RecommendedInsulinTestIds | Id.RecommendationModalTestIds | Id.RemeasureTestIds | Id.TransferToLogbookTestIds | Id.ExitModalTestIds | Id.TimeOutModalTestIds | Id.InfoBarTestIds.Unit | Id.InfoBarTestIds.Value | Id.InfoBarTestIds.Label;
79
+ type TestIdEnum = Id.ActivityTestIds | Id.HeaderTestIds | Id.LimitationMessageTestIds | Id.RecentInsulinTestIds | Id.RecommendedCarbsTestIds | Id.RecommendedInsulinTestIds | Id.RecommendationModalTestIds | Id.RemeasureTestIds | Id.TransferToLogbookTestIds | Id.TwoOptionModalTestIds | Id.InfoBarTestIds.Unit | Id.InfoBarTestIds.Value | Id.InfoBarTestIds.Label;
76
80
  }
77
81
  }
78
82
  /**
@@ -123,13 +127,3 @@ export declare enum RecommendationReminders {
123
127
  Reminder60Minutes = 1,
124
128
  HediaReminderDefault = 1.5
125
129
  }
126
- export declare enum ExitModalActions {
127
- CloseCalculation = "CloseCalculation",
128
- Transfer = "Transfer",
129
- Hide = "Hide"
130
- }
131
- export declare enum TimeoutModalActions {
132
- CloseCalculation = "CloseCalculation",
133
- RestartCalculation = "RestartCalculation",
134
- Transfer = "Transfer"
135
- }
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-namespace */
2
1
  /** Namespace containing data required by component testing */
3
2
  export var Testing;
4
3
  (function (Testing) {
@@ -14,6 +13,15 @@ export var Testing;
14
13
  ActivityTestIds["ActivityDuration"] = "activity-duration-minutes";
15
14
  ActivityTestIds["ActivityReduction"] = "activity-reduction-percentage";
16
15
  })(ActivityTestIds = Id.ActivityTestIds || (Id.ActivityTestIds = {}));
16
+ let HeaderTestIds;
17
+ (function (HeaderTestIds) {
18
+ HeaderTestIds["ExitCalculation"] = "exit-calculation-button";
19
+ HeaderTestIds["HeaderText"] = "header-text";
20
+ })(HeaderTestIds = Id.HeaderTestIds || (Id.HeaderTestIds = {}));
21
+ let LimitationMessageTestIds;
22
+ (function (LimitationMessageTestIds) {
23
+ LimitationMessageTestIds["OkButton"] = "limitation-message-ok-button";
24
+ })(LimitationMessageTestIds = Id.LimitationMessageTestIds || (Id.LimitationMessageTestIds = {}));
17
25
  let RecentInsulinTestIds;
18
26
  (function (RecentInsulinTestIds) {
19
27
  RecentInsulinTestIds["No"] = "recent-insulin-no";
@@ -40,7 +48,6 @@ export var Testing;
40
48
  RecommendationModalTestIds["DeclineCarbs"] = "recommendation-modal-decline-carbs";
41
49
  RecommendationModalTestIds["AcceptCarbs"] = "recommendation-modal-accept-carbs";
42
50
  RecommendationModalTestIds["OkButton"] = "recommendation-modal-ok-button";
43
- RecommendationModalTestIds["LimitationOkButton"] = "limitation-message-ok-button";
44
51
  RecommendationModalTestIds["SuggestedCarbs"] = "recommendation-modal-suggested-carbs";
45
52
  })(RecommendationModalTestIds = Id.RecommendationModalTestIds || (Id.RecommendationModalTestIds = {}));
46
53
  let RemeasureTestIds;
@@ -52,18 +59,12 @@ export var Testing;
52
59
  (function (TransferToLogbookTestIds) {
53
60
  TransferToLogbookTestIds["TransferButton"] = "transfer-to-logbook-button";
54
61
  })(TransferToLogbookTestIds = Id.TransferToLogbookTestIds || (Id.TransferToLogbookTestIds = {}));
55
- let ExitModalTestIds;
56
- (function (ExitModalTestIds) {
57
- ExitModalTestIds["ExitButton"] = "exit-two-option-modal";
58
- ExitModalTestIds["FirstOption"] = "first-option-button";
59
- ExitModalTestIds["SecondOption"] = "second-option-button";
60
- })(ExitModalTestIds = Id.ExitModalTestIds || (Id.ExitModalTestIds = {}));
61
- let TimeOutModalTestIds;
62
- (function (TimeOutModalTestIds) {
63
- TimeOutModalTestIds["ExitButton"] = "exit-two-option-modal";
64
- TimeOutModalTestIds["FirstOption"] = "first-option-button";
65
- TimeOutModalTestIds["SecondOption"] = "second-option-button";
66
- })(TimeOutModalTestIds = Id.TimeOutModalTestIds || (Id.TimeOutModalTestIds = {}));
62
+ let TwoOptionModalTestIds;
63
+ (function (TwoOptionModalTestIds) {
64
+ TwoOptionModalTestIds["ExitButton"] = "exit-two-option-modal";
65
+ TwoOptionModalTestIds["FirstOption"] = "first-option-button";
66
+ TwoOptionModalTestIds["SecondOption"] = "second-option-button";
67
+ })(TwoOptionModalTestIds = Id.TwoOptionModalTestIds || (Id.TwoOptionModalTestIds = {}));
67
68
  /** Namespace containing ids for the InfoBars component value, lavel and unit fields */
68
69
  let InfoBarTestIds;
69
70
  (function (InfoBarTestIds) {
@@ -72,18 +73,21 @@ export var Testing;
72
73
  Value["BloodKetone"] = "blood-ketone-value";
73
74
  Value["BloodGlucose"] = "blood-glucose-value";
74
75
  Value["ActiveInsulin"] = "active-insulin-value";
76
+ Value["ForecastedGlucose"] = "forecasted-glucose-value";
75
77
  })(Value = InfoBarTestIds.Value || (InfoBarTestIds.Value = {}));
76
78
  let Label;
77
79
  (function (Label) {
78
80
  Label["BloodKetone"] = "blood-ketone-label";
79
81
  Label["BloodGlucose"] = "blood-glucose-label";
80
82
  Label["ActiveInsulin"] = "active-insulin-label";
83
+ Label["ForecastedGlucose"] = "forecasted-glucose-label";
81
84
  })(Label = InfoBarTestIds.Label || (InfoBarTestIds.Label = {}));
82
85
  let Unit;
83
86
  (function (Unit) {
84
87
  Unit["BloodKetone"] = "blood-ketone-unit";
85
88
  Unit["BloodGlucose"] = "blood-glucose-unit";
86
89
  Unit["ActiveInsulin"] = "active-insulin-unit";
90
+ Unit["ForecastedGlucose"] = "forecasted-glucose-unit";
87
91
  })(Unit = InfoBarTestIds.Unit || (InfoBarTestIds.Unit = {}));
88
92
  })(InfoBarTestIds = Id.InfoBarTestIds || (Id.InfoBarTestIds = {}));
89
93
  })(Id = Testing.Id || (Testing.Id = {}));
@@ -139,16 +143,3 @@ export var RecommendationReminders;
139
143
  RecommendationReminders[RecommendationReminders["Reminder60Minutes"] = 1] = "Reminder60Minutes";
140
144
  RecommendationReminders[RecommendationReminders["HediaReminderDefault"] = 1.5] = "HediaReminderDefault";
141
145
  })(RecommendationReminders || (RecommendationReminders = {}));
142
- export var ExitModalActions;
143
- (function (ExitModalActions) {
144
- ExitModalActions["CloseCalculation"] = "CloseCalculation";
145
- ExitModalActions["Transfer"] = "Transfer";
146
- ExitModalActions["Hide"] = "Hide";
147
- })(ExitModalActions || (ExitModalActions = {}));
148
- export var TimeoutModalActions;
149
- (function (TimeoutModalActions) {
150
- TimeoutModalActions["CloseCalculation"] = "CloseCalculation";
151
- TimeoutModalActions["RestartCalculation"] = "RestartCalculation";
152
- TimeoutModalActions["Transfer"] = "Transfer";
153
- })(TimeoutModalActions || (TimeoutModalActions = {}));
154
- //# sourceMappingURL=enum.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=types.js.map
@@ -1,6 +1,7 @@
1
- import moment from "moment";
2
1
  import { BolusCalculator } from "@hedia/types";
3
- import { t } from "../locales/translate";
2
+ import { t } from "@lingui/macro";
3
+ import moment from "moment";
4
+ import { i18n } from "../locale/i18nUtils";
4
5
  /** Provides methods for getting variants of attention messages */
5
6
  export const AttentionMessage = {
6
7
  /**
@@ -73,51 +74,45 @@ export function getLimitedValue(reduction) {
73
74
  /** Provides methods for getting strings for composing attention messages and other important communications to the user. */
74
75
  export class Messages {
75
76
  /** Inform the user that their BGL is very low and what they should do about it. */
76
- static VeryLowBGL = () => t(`Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.`);
77
+ static VeryLowBGL = () => i18n._(t `Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.`);
77
78
  /** Inform the user that their BGL is very low. */
78
- static LowBGL = () => t(`Your blood glucose level is very low.`);
79
+ static LowBGL = () => i18n._(t `Your blood glucose level is very low.`);
79
80
  /** Inform the user that they will be reminded to remeasure their BGL soon. */
80
- static Reminder15Minutes = () => t(`You will be reminded to measure your blood glucose level in 15 min.`);
81
+ static Reminder15Minutes = () => i18n._(t `You will be reminded to measure your blood glucose level in 15 min.`);
81
82
  /** Encourages the user to postpone exercise. Specifically when their BGL is high. */
82
- static PostponePhysicalActivity = () => t(`If it is possible, postpone your planned exercise.`);
83
+ static PostponePhysicalActivity = () => i18n._(t `If it is possible, postpone your planned exercise.`);
83
84
  /** Encourages the user to postpone exercise. Specifically when their BGL is low. */
84
- static PostponePhysicalActivityUnder5MMOL = () => t(`Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.`);
85
+ static PostponePhysicalActivityUnder5MMOL = () => i18n._(t `Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.`);
85
86
  /** Inform about high BGL. */
86
- static HighBGL = () => t(`You have a high blood glucose level.`);
87
+ static HighBGL = () => i18n._(t `You have a high blood glucose level.`);
87
88
  /** Encourage user to measure ketones. */
88
- static InsulinKetones = () => t(`You should take rapid-acting insulin and measure ketones.`);
89
+ static InsulinKetones = () => i18n._(t `You should take rapid-acting insulin and measure ketones.`);
89
90
  /** Inform the user that their insulin recommendation was limited for safety. */
90
- static RecommendationWasLimited = () => t(`Your recommendation would have been higher than {SAFETY_INSULIN_LIMIT} units of insulin, but it has been limited for safety reasons. Hedia never recommends more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.`, { SAFETY_INSULIN_LIMIT });
91
+ static RecommendationWasLimited = () => i18n._(t `Your recommendation would have been higher than ${SAFETY_INSULIN_LIMIT} units of insulin, but it has been limited for safety reasons.
92
+ Hedia never recommends more than ${SAFETY_INSULIN_LIMIT} units of insulin per calculation.`);
91
93
  /** Inform the user that their insulin recommendation was limited for safety in combination with an activity. */
92
- static RecommendationWasLimitedActivity = (activityReduction) => t(`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 {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {2}% to {3}.`, {
93
- 0: getLimitedValue(activityReduction),
94
- 1: `\n\n`,
95
- SAFETY_INSULIN_LIMIT,
96
- 2: (activityReduction * 100).toFixed(0),
97
- 3: getLimitedValue(activityReduction),
98
- });
94
+ static RecommendationWasLimitedActivity = (activityReduction) => i18n._(t `Your recommendation would have been higher than ${getLimitedValue(activityReduction)}
95
+ units of insulin, but it has been limited for safety reasons.${`\n\n`}
96
+ Hedia never recommends more than ${SAFETY_INSULIN_LIMIT}
97
+ units of insulin per calculation, but because of the physical activity
98
+ you entered it has been further reduced by ${(activityReduction * 100).toFixed(0)}% to
99
+ ${getLimitedValue(activityReduction)}.`);
99
100
  /** Inform the user that the insulin amount they entered is above HDA’s safety limit. */
100
101
  static InsulinInputWasLimited = (activityReduction) => activityReduction
101
- ? t(`Hedia doesn't support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {0}% to {1} units for this calculation.`, {
102
- SAFETY_INSULIN_LIMIT,
103
- 0: (activityReduction * 100).toFixed(0),
104
- 1: getLimitedValue(activityReduction),
105
- })
106
- : t(`Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.`, {
107
- SAFETY_INSULIN_LIMIT,
108
- });
102
+ ? i18n._(t `Hedia doesn't support more than ${SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by
103
+ ${(activityReduction * 100).toFixed(0)}% to ${getLimitedValue(activityReduction)} units for this calculation.`)
104
+ : i18n._(t `Hedia does not support more than ${SAFETY_INSULIN_LIMIT} units of insulin per calculation.`);
109
105
  /** Title for the modal that informs the user that their calculation is too old. */
110
- static TimeoutPrompTitle = () => t(`More than 15 minutes has passed since this calculation was started.`);
106
+ static TimeoutPrompTitle = () => i18n._(t `More than 15 minutes has passed since this calculation was started.`);
111
107
  /**
112
108
  * Inform the user that their recommendation calculation is too old.
113
109
  * Variant to show when they didn’t see the actual insulin recommendation because they didn’t tell whether they injected insulin recently.
114
110
  */
115
- static TimeoutRecommendationNotVisible = () => t(`Please go through the calculation steps with new measurements to ensure a safe recommendation.`);
111
+ static TimeoutRecommendationNotVisible = () => i18n._(t `Please go through the calculation steps with new measurements to ensure a safe recommendation.`);
116
112
  /** Inform the user that their recommendation calculation is too old. */
117
113
  static TimeoutRecommendationVisible = (date) => {
118
114
  const day = moment(date).format(`LL`);
119
115
  const time = moment(date).format(`HH:mm`);
120
- return t(`Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?`, { day, time, 0: `\n` });
116
+ return i18n._(t `Recommendation from ${day} at ${time} was not transfered to your logbook.${`\n`}Did you use the recommendation?`);
121
117
  };
122
118
  }
123
- //# sourceMappingURL=AttentionMessages.js.map
@@ -3,27 +3,13 @@ import { IInterval } from "../types/types";
3
3
  export declare const colors: {
4
4
  blue: string;
5
5
  darkBlue: string;
6
- darkBlueX: string;
7
- semiDarkBlue: string;
8
6
  dustyBlue: string;
9
- dustyDarkBlue: string;
10
7
  fadeBlue: string;
11
8
  lightBlue: string;
12
9
  mistBlue: string;
13
10
  purple: string;
14
- deepPurple: string;
11
+ semiDarkBlue: string;
15
12
  teal: string;
16
- gradientMain: string[];
17
- gradientPurple: string[];
18
- white: string;
19
- black: string;
20
- transparentWhite: string;
21
- transparentBlack: string;
22
- transparentDarkBlue: string;
23
- transparentLightBlue: string;
24
- activityGreen: string;
25
- activityOrange: string;
26
- activityRed: string;
27
13
  };
28
14
  /** The threshold above which hyperglycemia is considered to be severe in mmol/L */
29
15
  export declare const SEVERE_HYPERGLYCEMIA_START_MMOL = 15;
@@ -48,13 +34,13 @@ export declare const INSULIN_TO_CARBS_RATIO_LIMITS: IInterval;
48
34
  /** The lower and upper limits of the entered blood glucose level value in mmol/L. */
49
35
  export declare const CURRENT_BGL_MMOL_LIMITS: IInterval;
50
36
  /** The conversion factor to multiply a blood glucose value with to go from mmol/L to mg/dL. */
51
- export declare const MMOLL_PER_MGDL_BGL = 0.0555;
37
+ export declare const MMOLL_PER_MGDL_BGL: number;
52
38
  /** The conversion factor to multiply a blood glucose value with to go from mg/dL to mmol/L. */
53
39
  export declare const MGDL_PER_MMOLL_BGL: number;
54
40
  /** The lower and upper limits of the entered blood ketones value in mmol/L. */
55
41
  export declare const CURRENT_BKL_MMOL_LIMITS: IInterval;
56
42
  /** The conversion factor to multiply a blood ketones value with to go from mmol/L to mg/dL. */
57
- export declare const MMOLL_PER_MGDL_BKL = 0.096;
43
+ export declare const MMOLL_PER_MGDL_BKL: number;
58
44
  /** The conversion factor to multiply a blood ketones value with to go from mg/dL to mmol/L. */
59
45
  export declare const MGDL_PER_MMOLL_BKL: number;
60
46
  /** The lower and upper limits for a valid BGL target in mmol/L. */