@hedia/recommendation-screen 2.2.0-alpha.2 → 2.2.0-alpha.21
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/dist/src/RecommendationScreen.d.ts +18 -4
- package/dist/src/RecommendationScreen.js +3 -3
- package/dist/src/components/ForecastInfoBar.d.ts +12 -17
- package/dist/src/components/ForecastInfoBar.js +47 -38
- package/dist/src/components/Header.d.ts +2 -2
- package/dist/src/components/RecommendedInsulin.d.ts +3 -0
- package/dist/src/components/RecommendedInsulin.js +6 -4
- package/dist/src/locale/da/messages.js +1 -1
- package/dist/src/locale/da/messages.po +19 -7
- package/dist/src/locale/de/messages.js +1 -1
- package/dist/src/locale/de/messages.po +19 -7
- package/dist/src/locale/en/messages.js +1 -1
- package/dist/src/locale/en/messages.po +19 -7
- package/dist/src/locale/es/messages.js +1 -1
- package/dist/src/locale/es/messages.po +19 -7
- package/dist/src/locale/fr/messages.js +1 -1
- package/dist/src/locale/fr/messages.po +19 -7
- package/dist/src/locale/it/messages.js +1 -1
- package/dist/src/locale/it/messages.po +19 -7
- package/dist/src/types/enum.d.ts +2 -1
- package/dist/src/types/enum.js +1 -0
- package/dist/src/utils/Constants.d.ts +2 -0
- package/dist/src/utils/Constants.js +2 -0
- package/dist/src/utils/RecommendationError.d.ts +2 -0
- package/dist/src/utils/RecommendationError.js +2 -0
- package/dist/src/utils/Validations.d.ts +9 -1
- package/dist/src/utils/Validations.js +17 -2
- package/package.json +20 -16
- /package/dist/src/assets/{assets/activity → activity}/Cyclist.png +0 -0
- /package/dist/src/assets/{assets/activity → activity}/Other.png +0 -0
- /package/dist/src/assets/{assets/activity → activity}/Runner.png +0 -0
- /package/dist/src/assets/{assets/activity → activity}/Swimmer.png +0 -0
- /package/dist/src/assets/{assets/activity → activity}/Walk.png +0 -0
- /package/dist/src/assets/{assets/fonts → fonts}/Poppins-Bold.ttf +0 -0
- /package/dist/src/assets/{assets/fonts → fonts}/Poppins-SemiBold.ttf +0 -0
- /package/dist/src/assets/{assets/icons → icons}/Edit.tsx +0 -0
- /package/dist/src/assets/{assets/icons → icons}/X.tsx +0 -0
- /package/dist/src/assets/{assets/mood → mood}/happy.png +0 -0
- /package/dist/src/assets/{assets/mood → mood}/happy_active.png +0 -0
- /package/dist/src/assets/{assets/mood → mood}/neutral.png +0 -0
- /package/dist/src/assets/{assets/mood → mood}/neutral_active.png +0 -0
- /package/dist/src/assets/{assets/mood → mood}/sad.png +0 -0
- /package/dist/src/assets/{assets/mood → mood}/sad_active.png +0 -0
- /package/dist/src/assets/{assets/mood → mood}/semi_happy.png +0 -0
- /package/dist/src/assets/{assets/mood → mood}/semi_happy_active.png +0 -0
- /package/dist/src/assets/{assets/mood → mood}/semi_sad.png +0 -0
- /package/dist/src/assets/{assets/mood → mood}/semi_sad_active.png +0 -0
|
@@ -56,7 +56,15 @@ msgstr "Close calculation"
|
|
|
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 is within the recommended ranges prior to physical activity."
|
|
58
58
|
|
|
59
|
-
#: src/components/
|
|
59
|
+
#: src/__tests__/components/ForecastInfoBar.test.tsx:24
|
|
60
|
+
msgid "Current glucose: {0} mmol/L"
|
|
61
|
+
msgstr "Current glucose: {0} mmol/L"
|
|
62
|
+
|
|
63
|
+
#: src/components/ForecastInfoBar.tsx:61
|
|
64
|
+
msgid "Current glucose: {latestCGMReading} {0}"
|
|
65
|
+
msgstr "Current glucose: {latestCGMReading} {0}"
|
|
66
|
+
|
|
67
|
+
#: src/components/RecommendedInsulin.tsx:109
|
|
60
68
|
msgid "Edit"
|
|
61
69
|
msgstr "Edit"
|
|
62
70
|
|
|
@@ -148,14 +156,14 @@ msgstr "Error. Your blood ketone settings are invalid."
|
|
|
148
156
|
msgid "Food"
|
|
149
157
|
msgstr "Food"
|
|
150
158
|
|
|
159
|
+
#: src/components/ForecastInfoBar.tsx:54
|
|
160
|
+
msgid "Forecast time:"
|
|
161
|
+
msgstr "Forecast time:"
|
|
162
|
+
|
|
151
163
|
#: src/RecommendationScreen.tsx:454
|
|
152
164
|
msgid "Forecasted Glucose"
|
|
153
165
|
msgstr "Forecasted Glucose"
|
|
154
166
|
|
|
155
|
-
#: src/components/ForecastInfoBar.tsx:54
|
|
156
|
-
msgid "Forecasted time:"
|
|
157
|
-
msgstr "Forecasted time:"
|
|
158
|
-
|
|
159
167
|
#: src/utils/Translations.ts:13
|
|
160
168
|
msgid "Hard"
|
|
161
169
|
msgstr "Hard"
|
|
@@ -244,7 +252,11 @@ msgstr "Recommendation from {day} at {time} was not transfered to your logbook.{
|
|
|
244
252
|
msgid "Recommended"
|
|
245
253
|
msgstr "Recommended"
|
|
246
254
|
|
|
247
|
-
#: src/components/RecommendedInsulin.tsx:
|
|
255
|
+
#: src/components/RecommendedInsulin.tsx:94
|
|
256
|
+
msgid "Recommended amount of rapid-acting insulin for immidiate injection"
|
|
257
|
+
msgstr "Recommended amount of rapid-acting insulin for immidiate injection"
|
|
258
|
+
|
|
259
|
+
#: src/components/RecommendedInsulin.tsx:95
|
|
248
260
|
msgid "Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose"
|
|
249
261
|
msgstr "Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose"
|
|
250
262
|
|
|
@@ -273,7 +285,7 @@ msgstr "Start new calculation"
|
|
|
273
285
|
msgid "Total"
|
|
274
286
|
msgstr "Total"
|
|
275
287
|
|
|
276
|
-
#: src/components/RecommendedInsulin.tsx:
|
|
288
|
+
#: src/components/RecommendedInsulin.tsx:105
|
|
277
289
|
msgid "Units"
|
|
278
290
|
msgstr "Units"
|
|
279
291
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){if(ord)return"other";return n==1?"one":"other"}},messages:{"Active Insulin":"Insulina activa","Activity":"Actividad","Additional":"Adicional","Attention":"Atenci\xF3n","Based on the selected activity your insulin recommendation is reduced by:":"Seg\xFAn la actividad seleccionada, su recomendaci\xF3n de insulina se reduce en un:","Blood Glucose Level":"Glucosa en sangre","Blood Ketone Level":"Nivel de cetonas en sangre","Carbohydrates":"Hidratos de carbono","Close calculation":"Cerrar calculaci\xF3n","Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.":"Contemple no iniciar ninguna actividad f\xEDsica antes de que su nivel de glucosa en sangre se encuentre dentro del rango recomendado antes de una actividad f\xEDsica.","Edit":"Edit","Entered":"Introducido","Error. Hedia Calculator could not find your recent boluses":"Error. Hedia Calculator could not find your recent boluses","Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units":function(a){return["Error. La calculadora de Hedia no admite una dosis de insulina superior a ",a("SAFETY_INSULIN_LIMIT")," unidades."]},"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Error. La calculadora de Hedia no admite recomendaciones de insulina con bolos anteriores a 4 horas.","Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.":"Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.","Error. Hedia Calculator does not support your activity intensity value":"Error. La calculadora de Hedia no admite su valor de intensidad de actividad.","Error. Hedia Calculator does not support your activity type value":"Error. La calculadora de Hedia no admite su valor de tipo de actividad.","Error. Hedia Calculator does not support your current blood glucose level.":"Error. La calculadora de Hedia no admite tu glucosa en sangre actual.","Error. Hedia Calculator does not support your current blood glucose unit.":"Error. La calculadora de Hedia no admite su unidad de glucosa en sangre actual.","Error. Hedia Calculator does not support your current blood ketone level.":"Error. La calculadora de Hedia no admite su nivel de cetonas en sangre actual.","Error. Hedia Calculator does not support your current blood ketone unit.":"Error. La calculadora de Hedia no admite su unidad de cetonas en sangre actual.","Error. Hedia Calculator does not support your current language.":"Error. La calculadora de Hedia no admite su idioma actual.","Error. Hedia Calculator does not support your injection method.":"Error. La calculadora de Hedia no admite su m\xE9todo de inyecci\xF3n.","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Error. La calculadora de Hedia solo admite actividades con una duraci\xF3n m\xE1xima de 60 minutos.","Error. Please verify that your activity settings are set up correctly.":"Error. Compruebe si la configuraci\xF3n de su actividad es correcta.","Error. Please verify that your activity target blood glucose value is correct.":"Error. Compruebe si el valor deseado de glucosa en sangre de su actividad es correcto.","Error. Please verify that your insulin sensitivity value is correct.":"Error. Compruebe si el valor de su sensibilidad a la insulina es correcto.","Error. Please verify that your insulin to carb ratio value is correct.":"Error. Compruebe si el valor de su proporci\xF3n insulina-carbohidratos es correcto.","Error. Please verify that your target blood glucose value is correct.":"Error. Compruebe si el valor deseado de glucosa en sangre es correcto.","Error. Please verify your notifications settings.":"Error. Compruebe la configuraci\xF3n de las notificaciones.","Error. Your blood ketone settings are invalid.":"Error. Your blood ketone settings are invalid.","Food":"Comida","
|
|
1
|
+
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){if(ord)return"other";return n==1?"one":"other"}},messages:{"Active Insulin":"Insulina activa","Activity":"Actividad","Additional":"Adicional","Attention":"Atenci\xF3n","Based on the selected activity your insulin recommendation is reduced by:":"Seg\xFAn la actividad seleccionada, su recomendaci\xF3n de insulina se reduce en un:","Blood Glucose Level":"Glucosa en sangre","Blood Ketone Level":"Nivel de cetonas en sangre","Carbohydrates":"Hidratos de carbono","Close calculation":"Cerrar calculaci\xF3n","Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.":"Contemple no iniciar ninguna actividad f\xEDsica antes de que su nivel de glucosa en sangre se encuentre dentro del rango recomendado antes de una actividad f\xEDsica.","Current glucose: {0} mmol/L":function(a){return["Current glucose: ",a("0")," mmol/L"]},"Current glucose: {latestCGMReading} {0}":function(a){return["Current glucose: ",a("latestCGMReading")," ",a("0")]},"Edit":"Edit","Entered":"Introducido","Error. Hedia Calculator could not find your recent boluses":"Error. Hedia Calculator could not find your recent boluses","Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units":function(a){return["Error. La calculadora de Hedia no admite una dosis de insulina superior a ",a("SAFETY_INSULIN_LIMIT")," unidades."]},"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Error. La calculadora de Hedia no admite recomendaciones de insulina con bolos anteriores a 4 horas.","Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.":"Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.","Error. Hedia Calculator does not support your activity intensity value":"Error. La calculadora de Hedia no admite su valor de intensidad de actividad.","Error. Hedia Calculator does not support your activity type value":"Error. La calculadora de Hedia no admite su valor de tipo de actividad.","Error. Hedia Calculator does not support your current blood glucose level.":"Error. La calculadora de Hedia no admite tu glucosa en sangre actual.","Error. Hedia Calculator does not support your current blood glucose unit.":"Error. La calculadora de Hedia no admite su unidad de glucosa en sangre actual.","Error. Hedia Calculator does not support your current blood ketone level.":"Error. La calculadora de Hedia no admite su nivel de cetonas en sangre actual.","Error. Hedia Calculator does not support your current blood ketone unit.":"Error. La calculadora de Hedia no admite su unidad de cetonas en sangre actual.","Error. Hedia Calculator does not support your current language.":"Error. La calculadora de Hedia no admite su idioma actual.","Error. Hedia Calculator does not support your injection method.":"Error. La calculadora de Hedia no admite su m\xE9todo de inyecci\xF3n.","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Error. La calculadora de Hedia solo admite actividades con una duraci\xF3n m\xE1xima de 60 minutos.","Error. Please verify that your activity settings are set up correctly.":"Error. Compruebe si la configuraci\xF3n de su actividad es correcta.","Error. Please verify that your activity target blood glucose value is correct.":"Error. Compruebe si el valor deseado de glucosa en sangre de su actividad es correcto.","Error. Please verify that your insulin sensitivity value is correct.":"Error. Compruebe si el valor de su sensibilidad a la insulina es correcto.","Error. Please verify that your insulin to carb ratio value is correct.":"Error. Compruebe si el valor de su proporci\xF3n insulina-carbohidratos es correcto.","Error. Please verify that your target blood glucose value is correct.":"Error. Compruebe si el valor deseado de glucosa en sangre es correcto.","Error. Please verify your notifications settings.":"Error. Compruebe la configuraci\xF3n de las notificaciones.","Error. Your blood ketone settings are invalid.":"Error. Your blood ketone settings are invalid.","Food":"Comida","Forecast time:":"Forecast time:","Forecasted Glucose":"Forecasted Glucose","Hard":"Intensa","Have you taken rapid-acting insulin within the last 4 hours?":"Have you taken rapid-acting insulin within the last 4 hours?","Hedia Calculator does not support activities that finished more than 4 hours ago.":"La calculadora de Hedia no admite actividades que finalizaron hace m\xE1s de 4 horas.","Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.":"La calculadora de Hedia no admite recomendaciones de insulina con m\xE1s de 300 gramos de hidratos de carbono presentes.","Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.":function(a){return["Hedia no admite m\xE1s de ",a("SAFETY_INSULIN_LIMIT")," unidades de insulina por calculaci\xF3n."]},"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.":function(a){return["Hedia no admite m\xE1s de ",a("SAFETY_INSULIN_LIMIT")," unidades de insulina por calculaci\xF3n, pero debido a la actividad f\xEDsica que ha introducido, se ha reducido adicionalmente en un ",a("0"),"% a ",a("1")," unidades para esta calculaci\xF3n."]},"How are you feeling?":"\xBFQu\xE9 tal te encuentras?","If it is possible, postpone your planned exercise.":"Si es posible, posponga el ejercicio que ten\xEDa previsto hacer.","Instead of taking insulin":"En lugar de tomar insulina","Insulin recommendation":"Recomendaci\xF3n de insulina","Light":"Ligera","Moderate":"Moderada","More than 15 minutes has passed since this calculation was started.":"Han pasado m\xE1s de 15 minutos desde que comenz\xF3 la calculaci\xF3n.","NO":"NO","No":"No","No, return to dashboard":"No, volver al panel","OFF":"APAGADO","OK":"ACEPTAR","Please go through the calculation steps with new measurements to ensure a safe recommendation.":"Por favor, repita los pasos de la calculaci\xF3n con nuevas mediciones para garantizar una recomendaci\xF3n segura.","Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?":function(a){return["La recomendaci\xF3n del ",a("day")," a las ",a("time")," no se ha transferido a su diario.",a("0"),"\xBFUtiliz\xF3 la recomendaci\xF3n?"]},"Recommended":"Recomendado","Recommended amount of rapid-acting insulin for immidiate injection":"Recommended amount of rapid-acting insulin for immidiate injection","Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose":"Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose","Remind me to remeasure in":"Recordar hacer una nueva medici\xF3n en","Return to dashboard":"Volver al panel","Save data before closing?":"\xBFGuardar los datos antes de cerrar?","Save to logbook":"Guardar en el diario","Start new calculation":"Iniciar nueva calculaci\xF3n","Total":"Total","Units":"Unidades","Untitled Activity":"Actividad sin nombre","We recommend eating an additional:":"Recomendamos comer adicionalmente:","Would you like to add this to your current calculation?":"\xBFQuiere a\xF1adirlo a su calculaci\xF3n actual?","Yes":"S\xED","Yes, save to logbook":"S\xED, guardar en el diario","You have a high blood glucose level.":"Tiene una glucosa en sangre alta.","You should take rapid-acting insulin and measure ketones.":"Debe tomar insulina de acci\xF3n r\xE1pida y realizar una medici\xF3n de cetonas.","You will be reminded to measure your blood glucose level in 15 min.":"Se le recordar\xE1 que mida su glucosa en sangre en 15 minutos.","Your blood glucose level is very low.":"Su glucosa en sangre es muy baja.","Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.":"Su glucosa en sangre es muy baja. Tome glucag\xF3n o ingiera carbohidratos si es posible. Busque atenci\xF3n m\xE9dica.","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}.":function(a){return["Su recomendaci\xF3n habr\xEDa sido superior a ",a("0")," unidades de insulina, pero se ha limitado por razones de seguridad.",a("1")," Hedia nunca recomienda m\xE1s de ",a("SAFETY_INSULIN_LIMIT")," unidades de insulina por calculaci\xF3n, pero debido a la actividad f\xEDsica que ha introducido, se ha reducido adicionalmente en un ",a("2"),"% a ",a("3"),"."]},"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.":function(a){return["Su recomendaci\xF3n habr\xEDa sido superior a ",a("SAFETY_INSULIN_LIMIT")," unidades de insulina, pero se ha limitado por razones de seguridad. Hedia nunca recomienda m\xE1s de ",a("SAFETY_INSULIN_LIMIT")," unidades de insulina por calculaci\xF3n."]},"Your saved data will be used for future calculations.":"Los datos guardados se utilizar\xE1n para futuras calculaciones.","grams":"gramos","grams of carbohydrates":"gramos de hidratos de carbono","hours":"horas","min":"min","units":"unidades"}};
|
|
@@ -56,7 +56,15 @@ msgstr "Cerrar calculación"
|
|
|
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 "Contemple no iniciar ninguna actividad física antes de que su nivel de glucosa en sangre se encuentre dentro del rango recomendado antes de una actividad física."
|
|
58
58
|
|
|
59
|
-
#: src/components/
|
|
59
|
+
#: src/__tests__/components/ForecastInfoBar.test.tsx:24
|
|
60
|
+
msgid "Current glucose: {0} mmol/L"
|
|
61
|
+
msgstr ""
|
|
62
|
+
|
|
63
|
+
#: src/components/ForecastInfoBar.tsx:61
|
|
64
|
+
msgid "Current glucose: {latestCGMReading} {0}"
|
|
65
|
+
msgstr ""
|
|
66
|
+
|
|
67
|
+
#: src/components/RecommendedInsulin.tsx:109
|
|
60
68
|
msgid "Edit"
|
|
61
69
|
msgstr ""
|
|
62
70
|
|
|
@@ -148,12 +156,12 @@ msgstr ""
|
|
|
148
156
|
msgid "Food"
|
|
149
157
|
msgstr "Comida"
|
|
150
158
|
|
|
151
|
-
#: src/
|
|
152
|
-
msgid "
|
|
159
|
+
#: src/components/ForecastInfoBar.tsx:54
|
|
160
|
+
msgid "Forecast time:"
|
|
153
161
|
msgstr ""
|
|
154
162
|
|
|
155
|
-
#: src/
|
|
156
|
-
msgid "Forecasted
|
|
163
|
+
#: src/RecommendationScreen.tsx:454
|
|
164
|
+
msgid "Forecasted Glucose"
|
|
157
165
|
msgstr ""
|
|
158
166
|
|
|
159
167
|
#: src/utils/Translations.ts:13
|
|
@@ -244,7 +252,11 @@ msgstr "La recomendación del {day} a las {time} no se ha transferido a su diari
|
|
|
244
252
|
msgid "Recommended"
|
|
245
253
|
msgstr "Recomendado"
|
|
246
254
|
|
|
247
|
-
#: src/components/RecommendedInsulin.tsx:
|
|
255
|
+
#: src/components/RecommendedInsulin.tsx:94
|
|
256
|
+
msgid "Recommended amount of rapid-acting insulin for immidiate injection"
|
|
257
|
+
msgstr ""
|
|
258
|
+
|
|
259
|
+
#: src/components/RecommendedInsulin.tsx:95
|
|
248
260
|
msgid "Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose"
|
|
249
261
|
msgstr ""
|
|
250
262
|
|
|
@@ -273,7 +285,7 @@ msgstr "Iniciar nueva calculación"
|
|
|
273
285
|
msgid "Total"
|
|
274
286
|
msgstr "Total"
|
|
275
287
|
|
|
276
|
-
#: src/components/RecommendedInsulin.tsx:
|
|
288
|
+
#: src/components/RecommendedInsulin.tsx:105
|
|
277
289
|
msgid "Units"
|
|
278
290
|
msgstr "Unidades"
|
|
279
291
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){if(ord)return n==1?"one":"other";return n>=0&&n<2?"one":"other"}},messages:{"Active Insulin":"Insuline active","Activity":"Activit\xE9","Additional":"Suppl\xE9mentaire","Attention":"Attention","Based on the selected activity your insulin recommendation is reduced by:":"Sur la base de l\u2019activit\xE9 s\xE9lectionn\xE9e, votre recommandation d\u2019insuline est r\xE9duite de :","Blood Glucose Level":"Glyc\xE9mie","Blood Ketone Level":"Taux de c\xE9ton\xE9mie","Carbohydrates":"Glucides","Close calculation":"Fermer le calcul","Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.":"Envisagez de ne pas commencer d\u2019activit\xE9 physique avant que votre taux de glyc\xE9mie ne soit dans la plage recommand\xE9e avant l\u2019activit\xE9 physique.","Edit":"Edit","Entered":"Saisi","Error. Hedia Calculator could not find your recent boluses":"Error. Hedia Calculator could not find your recent boluses","Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units":function(a){return["Erreur. La calculatrice Hedia ne prend pas en charge une dose d\u2019insuline sup\xE9rieure \xE0 ",a("SAFETY_INSULIN_LIMIT")," unit\xE9s"]},"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Erreur. La calculatrice Hedia ne prend pas en charge des recommandations d\u2019insuline avec des bolus plus anciens que 4 heures","Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.":"Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.","Error. Hedia Calculator does not support your activity intensity value":"Erreur. La calculatrice Hedia ne prend pas en charge votre valeur d\u2019intensit\xE9 d\u2019activit\xE9","Error. Hedia Calculator does not support your activity type value":"Erreur. La calculatrice Hedia ne prend pas en charge votre valeur de type d\u2019activit\xE9","Error. Hedia Calculator does not support your current blood glucose level.":"Erreur. La calculatrice Hedia ne prend pas en charge votre glyc\xE9mie actuelle.","Error. Hedia Calculator does not support your current blood glucose unit.":"Erreur. La calculatrice Hedia ne prend pas en charge votre unit\xE9 de glyc\xE9mie actuelle.","Error. Hedia Calculator does not support your current blood ketone level.":"Erreur. La calculatrice Hedia ne prend pas en charge votre taux de c\xE9ton\xE9mie actuel.","Error. Hedia Calculator does not support your current blood ketone unit.":"Erreur. La calculatrice Hedia ne prend pas en charge votre unit\xE9 de c\xE9ton\xE9mie actuelle.","Error. Hedia Calculator does not support your current language.":"Erreur. La calculatrice Hedia ne prend pas en charge votre langue actuelle.","Error. Hedia Calculator does not support your injection method.":"Erreur. La calculatrice Hedia ne prend pas en charge votre m\xE9thode d\u2019injection.","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Erreur. La calculatrice Hedia ne prend en charge que des activit\xE9s d\u2019une dur\xE9e maximale de 60 minutes.","Error. Please verify that your activity settings are set up correctly.":"Erreur. Veuillez v\xE9rifier que vos param\xE8tres d\u2019activit\xE9 sont correctement param\xE9tr\xE9s.","Error. Please verify that your activity target blood glucose value is correct.":"Erreur. Veuillez v\xE9rifier que votre glyc\xE9mie d\xE9sir\xE9e pendant l\u2019activit\xE9 est correct.","Error. Please verify that your insulin sensitivity value is correct.":"Erreur. Veuillez v\xE9rifier que votre valeur de sensibilit\xE9 \xE0 l\u2019insuline est correcte.","Error. Please verify that your insulin to carb ratio value is correct.":"Erreur. Veuillez v\xE9rifier que votre valeur de rapport insuline/glucides est correcte.","Error. Please verify that your target blood glucose value is correct.":"Erreur. Veuillez v\xE9rifier que votre glyc\xE9mie cible est correct.","Error. Please verify your notifications settings.":"Erreur. Veuillez v\xE9rifier vos param\xE8tres de notification.","Error. Your blood ketone settings are invalid.":"Error. Your blood ketone settings are invalid.","Food":"Aliments","Forecasted Glucose":"Forecasted Glucose","Forecasted time:":"Forecasted time:","Hard":"Difficile","Have you taken rapid-acting insulin within the last 4 hours?":"Have you taken rapid-acting insulin within the last 4 hours?","Hedia Calculator does not support activities that finished more than 4 hours ago.":"La calculatrice Hedia ne prend pas en charge des activit\xE9s termin\xE9es il y a plus de 4 heures.","Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.":"La calculatrice Hedia ne prend pas en charge des recommandations d\u2019insuline avec plus de 300 grammes de glucides pr\xE9sents.","Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.":function(a){return["Hedia ne prend pas en charge plus de ",a("SAFETY_INSULIN_LIMIT")," unit\xE9s d\u2019insuline par calcul."]},"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.":function(a){return["Hedia ne prend pas en charge plus de ",a("SAFETY_INSULIN_LIMIT")," unit\xE9s d\u2019insuline par calcul, mais en raison de l\u2019activit\xE9 physique que vous avez saisie, ce chiffre a \xE9t\xE9 encore r\xE9duit de ",a("0")," % \xE0 ",a("1")," unit\xE9s pour ce calcul."]},"How are you feeling?":"Comment vous sentez-vous ?","If it is possible, postpone your planned exercise.":"Si possible, reportez votre activit\xE9 pr\xE9vu.","Instead of taking insulin":"Au lieu de prendre de l\u2019insuline","Insulin recommendation":"Recommandation d\u2019insuline","Light":"L\xE9g\xE8re","Moderate":"Mod\xE9r\xE9e","More than 15 minutes has passed since this calculation was started.":"Plus de 15 minutes se sont \xE9coul\xE9es depuis le d\xE9but de ce calcul.","NO":"NON","No":"Non","No, return to dashboard":"Non, retour au tableau de bord","OFF":"D\xC9SACTIV\xC9","OK":"OK","Please go through the calculation steps with new measurements to ensure a safe recommendation.":"Veuillez suivre les \xE9tapes de calcul avec de nouvelles mesures pour vous assurer d\u2019obtenir une recommandation s\xFBre.","Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?":function(a){return["La recommandation du ",a("day")," \xE0 ",a("time")," n\u2019a pas \xE9t\xE9 transf\xE9r\xE9e \xE0 votre journal de bord.",a("0"),"Avez-vous suivi la recommandation ?"]},"Recommended":"Recommand\xE9","Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose":"Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose","Remind me to remeasure in":"Rappelez-moi de mesurer ma glyc\xE9mie dans","Return to dashboard":"Retour au tableau de bord","Save data before closing?":"Enregistrer les donn\xE9es avant de fermer ?","Save to logbook":"Enregistrer dans le journal de bord","Start new calculation":"Commencer un nouveau calcul","Total":"Total","Units":"Unit\xE9s","Untitled Activity":"Activit\xE9 sans titre","We recommend eating an additional:":"Nous vous recommandons de manger en plus :","Would you like to add this to your current calculation?":"Souhaitez-vous ajouter cela \xE0 votre calcul actuel ?","Yes":"Oui","Yes, save to logbook":"Oui, enregistrer dans le journal de bord","You have a high blood glucose level.":"Vous avez une valeur de glyc\xE9mie \xE9lev\xE9e.","You should take rapid-acting insulin and measure ketones.":"Vous devriez prendre de l\u2019insuline \xE0 action rapide et mesurer les c\xE9tones.","You will be reminded to measure your blood glucose level in 15 min.":"Il vous sera rappel\xE9 de mesurer votre valeur de glyc\xE9mie dans 15 mn.","Your blood glucose level is very low.":"Votre valeur de glyc\xE9mie est tr\xE8s faible.","Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.":"Votre valeur de glyc\xE9mie est tr\xE8s faible. Prenez du glucagon ou mangez des glucides si possible. Consultez un m\xE9decin.","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}.":function(a){return["Votre recommandation aurait \xE9t\xE9 sup\xE9rieure \xE0 ",a("0")," unit\xE9s d\u2019insuline, mais elle a \xE9t\xE9 limit\xE9e pour des raisons de s\xE9curit\xE9.",a("1")," Hedia ne recommande jamais plus de ",a("SAFETY_INSULIN_LIMIT")," unit\xE9s d\u2019insuline par calcul, mais en raison de l\u2019activit\xE9 physique saisie, elle a \xE9t\xE9 r\xE9duite de ",a("2"),"% \xE0 ",a("3"),"."]},"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.":function(a){return["Votre recommandation aurait \xE9t\xE9 sup\xE9rieure \xE0 ",a("SAFETY_INSULIN_LIMIT")," unit\xE9s d\u2019insuline, mais elle a \xE9t\xE9 limit\xE9e pour des raisons de s\xE9curit\xE9. Hedia ne recommande jamais plus de ",a("SAFETY_INSULIN_LIMIT")," unit\xE9s d\u2019insuline par calcul."]},"Your saved data will be used for future calculations.":"Vos donn\xE9es enregistr\xE9es seront utilis\xE9es pour des calculs ult\xE9rieurs.","grams":"grammes","grams of carbohydrates":"grammes de glucides","hours":"heures","min":"min","units":"unit\xE9s"}};
|
|
1
|
+
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){if(ord)return n==1?"one":"other";return n>=0&&n<2?"one":"other"}},messages:{"Active Insulin":"Insuline active","Activity":"Activit\xE9","Additional":"Suppl\xE9mentaire","Attention":"Attention","Based on the selected activity your insulin recommendation is reduced by:":"Sur la base de l\u2019activit\xE9 s\xE9lectionn\xE9e, votre recommandation d\u2019insuline est r\xE9duite de :","Blood Glucose Level":"Glyc\xE9mie","Blood Ketone Level":"Taux de c\xE9ton\xE9mie","Carbohydrates":"Glucides","Close calculation":"Fermer le calcul","Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.":"Envisagez de ne pas commencer d\u2019activit\xE9 physique avant que votre taux de glyc\xE9mie ne soit dans la plage recommand\xE9e avant l\u2019activit\xE9 physique.","Current glucose: {0} mmol/L":function(a){return["Current glucose: ",a("0")," mmol/L"]},"Current glucose: {latestCGMReading} {0}":function(a){return["Current glucose: ",a("latestCGMReading")," ",a("0")]},"Edit":"Edit","Entered":"Saisi","Error. Hedia Calculator could not find your recent boluses":"Error. Hedia Calculator could not find your recent boluses","Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units":function(a){return["Erreur. La calculatrice Hedia ne prend pas en charge une dose d\u2019insuline sup\xE9rieure \xE0 ",a("SAFETY_INSULIN_LIMIT")," unit\xE9s"]},"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Erreur. La calculatrice Hedia ne prend pas en charge des recommandations d\u2019insuline avec des bolus plus anciens que 4 heures","Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.":"Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.","Error. Hedia Calculator does not support your activity intensity value":"Erreur. La calculatrice Hedia ne prend pas en charge votre valeur d\u2019intensit\xE9 d\u2019activit\xE9","Error. Hedia Calculator does not support your activity type value":"Erreur. La calculatrice Hedia ne prend pas en charge votre valeur de type d\u2019activit\xE9","Error. Hedia Calculator does not support your current blood glucose level.":"Erreur. La calculatrice Hedia ne prend pas en charge votre glyc\xE9mie actuelle.","Error. Hedia Calculator does not support your current blood glucose unit.":"Erreur. La calculatrice Hedia ne prend pas en charge votre unit\xE9 de glyc\xE9mie actuelle.","Error. Hedia Calculator does not support your current blood ketone level.":"Erreur. La calculatrice Hedia ne prend pas en charge votre taux de c\xE9ton\xE9mie actuel.","Error. Hedia Calculator does not support your current blood ketone unit.":"Erreur. La calculatrice Hedia ne prend pas en charge votre unit\xE9 de c\xE9ton\xE9mie actuelle.","Error. Hedia Calculator does not support your current language.":"Erreur. La calculatrice Hedia ne prend pas en charge votre langue actuelle.","Error. Hedia Calculator does not support your injection method.":"Erreur. La calculatrice Hedia ne prend pas en charge votre m\xE9thode d\u2019injection.","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Erreur. La calculatrice Hedia ne prend en charge que des activit\xE9s d\u2019une dur\xE9e maximale de 60 minutes.","Error. Please verify that your activity settings are set up correctly.":"Erreur. Veuillez v\xE9rifier que vos param\xE8tres d\u2019activit\xE9 sont correctement param\xE9tr\xE9s.","Error. Please verify that your activity target blood glucose value is correct.":"Erreur. Veuillez v\xE9rifier que votre glyc\xE9mie d\xE9sir\xE9e pendant l\u2019activit\xE9 est correct.","Error. Please verify that your insulin sensitivity value is correct.":"Erreur. Veuillez v\xE9rifier que votre valeur de sensibilit\xE9 \xE0 l\u2019insuline est correcte.","Error. Please verify that your insulin to carb ratio value is correct.":"Erreur. Veuillez v\xE9rifier que votre valeur de rapport insuline/glucides est correcte.","Error. Please verify that your target blood glucose value is correct.":"Erreur. Veuillez v\xE9rifier que votre glyc\xE9mie cible est correct.","Error. Please verify your notifications settings.":"Erreur. Veuillez v\xE9rifier vos param\xE8tres de notification.","Error. Your blood ketone settings are invalid.":"Error. Your blood ketone settings are invalid.","Food":"Aliments","Forecast time:":"Forecast time:","Forecasted Glucose":"Forecasted Glucose","Hard":"Difficile","Have you taken rapid-acting insulin within the last 4 hours?":"Have you taken rapid-acting insulin within the last 4 hours?","Hedia Calculator does not support activities that finished more than 4 hours ago.":"La calculatrice Hedia ne prend pas en charge des activit\xE9s termin\xE9es il y a plus de 4 heures.","Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.":"La calculatrice Hedia ne prend pas en charge des recommandations d\u2019insuline avec plus de 300 grammes de glucides pr\xE9sents.","Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.":function(a){return["Hedia ne prend pas en charge plus de ",a("SAFETY_INSULIN_LIMIT")," unit\xE9s d\u2019insuline par calcul."]},"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.":function(a){return["Hedia ne prend pas en charge plus de ",a("SAFETY_INSULIN_LIMIT")," unit\xE9s d\u2019insuline par calcul, mais en raison de l\u2019activit\xE9 physique que vous avez saisie, ce chiffre a \xE9t\xE9 encore r\xE9duit de ",a("0")," % \xE0 ",a("1")," unit\xE9s pour ce calcul."]},"How are you feeling?":"Comment vous sentez-vous ?","If it is possible, postpone your planned exercise.":"Si possible, reportez votre activit\xE9 pr\xE9vu.","Instead of taking insulin":"Au lieu de prendre de l\u2019insuline","Insulin recommendation":"Recommandation d\u2019insuline","Light":"L\xE9g\xE8re","Moderate":"Mod\xE9r\xE9e","More than 15 minutes has passed since this calculation was started.":"Plus de 15 minutes se sont \xE9coul\xE9es depuis le d\xE9but de ce calcul.","NO":"NON","No":"Non","No, return to dashboard":"Non, retour au tableau de bord","OFF":"D\xC9SACTIV\xC9","OK":"OK","Please go through the calculation steps with new measurements to ensure a safe recommendation.":"Veuillez suivre les \xE9tapes de calcul avec de nouvelles mesures pour vous assurer d\u2019obtenir une recommandation s\xFBre.","Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?":function(a){return["La recommandation du ",a("day")," \xE0 ",a("time")," n\u2019a pas \xE9t\xE9 transf\xE9r\xE9e \xE0 votre journal de bord.",a("0"),"Avez-vous suivi la recommandation ?"]},"Recommended":"Recommand\xE9","Recommended amount of rapid-acting insulin for immidiate injection":"Recommended amount of rapid-acting insulin for immidiate injection","Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose":"Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose","Remind me to remeasure in":"Rappelez-moi de mesurer ma glyc\xE9mie dans","Return to dashboard":"Retour au tableau de bord","Save data before closing?":"Enregistrer les donn\xE9es avant de fermer ?","Save to logbook":"Enregistrer dans le journal de bord","Start new calculation":"Commencer un nouveau calcul","Total":"Total","Units":"Unit\xE9s","Untitled Activity":"Activit\xE9 sans titre","We recommend eating an additional:":"Nous vous recommandons de manger en plus :","Would you like to add this to your current calculation?":"Souhaitez-vous ajouter cela \xE0 votre calcul actuel ?","Yes":"Oui","Yes, save to logbook":"Oui, enregistrer dans le journal de bord","You have a high blood glucose level.":"Vous avez une valeur de glyc\xE9mie \xE9lev\xE9e.","You should take rapid-acting insulin and measure ketones.":"Vous devriez prendre de l\u2019insuline \xE0 action rapide et mesurer les c\xE9tones.","You will be reminded to measure your blood glucose level in 15 min.":"Il vous sera rappel\xE9 de mesurer votre valeur de glyc\xE9mie dans 15 mn.","Your blood glucose level is very low.":"Votre valeur de glyc\xE9mie est tr\xE8s faible.","Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.":"Votre valeur de glyc\xE9mie est tr\xE8s faible. Prenez du glucagon ou mangez des glucides si possible. Consultez un m\xE9decin.","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}.":function(a){return["Votre recommandation aurait \xE9t\xE9 sup\xE9rieure \xE0 ",a("0")," unit\xE9s d\u2019insuline, mais elle a \xE9t\xE9 limit\xE9e pour des raisons de s\xE9curit\xE9.",a("1")," Hedia ne recommande jamais plus de ",a("SAFETY_INSULIN_LIMIT")," unit\xE9s d\u2019insuline par calcul, mais en raison de l\u2019activit\xE9 physique saisie, elle a \xE9t\xE9 r\xE9duite de ",a("2"),"% \xE0 ",a("3"),"."]},"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.":function(a){return["Votre recommandation aurait \xE9t\xE9 sup\xE9rieure \xE0 ",a("SAFETY_INSULIN_LIMIT")," unit\xE9s d\u2019insuline, mais elle a \xE9t\xE9 limit\xE9e pour des raisons de s\xE9curit\xE9. Hedia ne recommande jamais plus de ",a("SAFETY_INSULIN_LIMIT")," unit\xE9s d\u2019insuline par calcul."]},"Your saved data will be used for future calculations.":"Vos donn\xE9es enregistr\xE9es seront utilis\xE9es pour des calculs ult\xE9rieurs.","grams":"grammes","grams of carbohydrates":"grammes de glucides","hours":"heures","min":"min","units":"unit\xE9s"}};
|
|
@@ -56,7 +56,15 @@ msgstr "Fermer le calcul"
|
|
|
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 "Envisagez de ne pas commencer d’activité physique avant que votre taux de glycémie ne soit dans la plage recommandée avant l’activité physique."
|
|
58
58
|
|
|
59
|
-
#: src/components/
|
|
59
|
+
#: src/__tests__/components/ForecastInfoBar.test.tsx:24
|
|
60
|
+
msgid "Current glucose: {0} mmol/L"
|
|
61
|
+
msgstr ""
|
|
62
|
+
|
|
63
|
+
#: src/components/ForecastInfoBar.tsx:61
|
|
64
|
+
msgid "Current glucose: {latestCGMReading} {0}"
|
|
65
|
+
msgstr ""
|
|
66
|
+
|
|
67
|
+
#: src/components/RecommendedInsulin.tsx:109
|
|
60
68
|
msgid "Edit"
|
|
61
69
|
msgstr ""
|
|
62
70
|
|
|
@@ -148,12 +156,12 @@ msgstr ""
|
|
|
148
156
|
msgid "Food"
|
|
149
157
|
msgstr "Aliments"
|
|
150
158
|
|
|
151
|
-
#: src/
|
|
152
|
-
msgid "
|
|
159
|
+
#: src/components/ForecastInfoBar.tsx:54
|
|
160
|
+
msgid "Forecast time:"
|
|
153
161
|
msgstr ""
|
|
154
162
|
|
|
155
|
-
#: src/
|
|
156
|
-
msgid "Forecasted
|
|
163
|
+
#: src/RecommendationScreen.tsx:454
|
|
164
|
+
msgid "Forecasted Glucose"
|
|
157
165
|
msgstr ""
|
|
158
166
|
|
|
159
167
|
#: src/utils/Translations.ts:13
|
|
@@ -244,7 +252,11 @@ msgstr "La recommandation du {day} à {time} n’a pas été transférée à vot
|
|
|
244
252
|
msgid "Recommended"
|
|
245
253
|
msgstr "Recommandé"
|
|
246
254
|
|
|
247
|
-
#: src/components/RecommendedInsulin.tsx:
|
|
255
|
+
#: src/components/RecommendedInsulin.tsx:94
|
|
256
|
+
msgid "Recommended amount of rapid-acting insulin for immidiate injection"
|
|
257
|
+
msgstr ""
|
|
258
|
+
|
|
259
|
+
#: src/components/RecommendedInsulin.tsx:95
|
|
248
260
|
msgid "Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose"
|
|
249
261
|
msgstr ""
|
|
250
262
|
|
|
@@ -273,7 +285,7 @@ msgstr "Commencer un nouveau calcul"
|
|
|
273
285
|
msgid "Total"
|
|
274
286
|
msgstr "Total"
|
|
275
287
|
|
|
276
|
-
#: src/components/RecommendedInsulin.tsx:
|
|
288
|
+
#: src/components/RecommendedInsulin.tsx:105
|
|
277
289
|
msgid "Units"
|
|
278
290
|
msgstr "Unités"
|
|
279
291
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),v0=!s[1];if(ord)return n==11||n==8||n==80||n==800?"many":"other";return n==1&&v0?"one":"other"}},messages:{"Active Insulin":"Insulina attiva","Activity":"Attivit\xE0 fisica","Additional":"Ulteriori","Attention":"Attenzione","Based on the selected activity your insulin recommendation is reduced by:":"In base all'attivit\xE0 selezionata, la prescrizione per l'insulina \xE8 ridotta di:","Blood Glucose Level":"Indice glicemico","Blood Ketone Level":"Livello di chetoni nel sangue","Carbohydrates":"Carboidrati","Close calculation":"Chiudi calcolo","Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.":"Ricorda di non iniziare l'attivit\xE0 fisica prima che il livello di glucosio nel sangue non sia rientrato negli intervalli raccomandati prima dell'attivit\xE0 fisica.","Edit":"Edit","Entered":"Inserito","Error. Hedia Calculator could not find your recent boluses":"Error. Hedia Calculator could not find your recent boluses","Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units":function(a){return["Errore. Hedia Calculator non supporta una dose di insulina superiore a ",a("SAFETY_INSULIN_LIMIT")," unit\xE0"]},"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Errore. Hedia Calculator non supporta le raccomandazioni di insulina con boli pi\xF9 vecchi di 4 ore","Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.":"Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.","Error. Hedia Calculator does not support your activity intensity value":"Errore. Hedia Calculator non supporta il valore dell'intensit\xE0 dell'attivit\xE0","Error. Hedia Calculator does not support your activity type value":"Errore. Hedia Calculator non supporta il valore del tipo di attivit\xE0","Error. Hedia Calculator does not support your current blood glucose level.":"Errore. Hedia Calculator non supporta la tua glicemia attuale.","Error. Hedia Calculator does not support your current blood glucose unit.":"Errore. Hedia Calculator non supporta l'attuale unit\xE0 misura di glucosio nel sangue.","Error. Hedia Calculator does not support your current blood ketone level.":"Errore. Hedia Calculator non supporta l'attuale livello di chetoni nel sangue.","Error. Hedia Calculator does not support your current blood ketone unit.":"Errore. Hedia Calculator non supporta l'attuale unit\xE0 di misura di chetoni del sangue.","Error. Hedia Calculator does not support your current language.":"Errore. Hedia Calculator non supporta la lingua corrente.","Error. Hedia Calculator does not support your injection method.":"Errore. Hedia Calculator non supporta il metodo di iniezione.","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Errore. Hedia Calculator supporta solo attivit\xE0 della durata massima di 60 minuti.","Error. Please verify that your activity settings are set up correctly.":"Errore. Verificare che le impostazioni delle attivit\xE0 siano impostate correttamente.","Error. Please verify that your activity target blood glucose value is correct.":"Errore. Verificare che il indice glicemico desiderato durante l\u2019attivit\xE0 sia corretto.","Error. Please verify that your insulin sensitivity value is correct.":"Errore. Verificare che il valore della sensibilit\xE0 all'insulina sia corretto.","Error. Please verify that your insulin to carb ratio value is correct.":"Errore. Verificare che il valore del rapporto insulina/carboidrati sia corretto.","Error. Please verify that your target blood glucose value is correct.":"Errore. Verificare che il valore obiettivo della glicemia sia corretto.","Error. Please verify your notifications settings.":"Errore. Verificare le impostazioni di notifica.","Error. Your blood ketone settings are invalid.":"Error. Your blood ketone settings are invalid.","Food":"Cibo","
|
|
1
|
+
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),v0=!s[1];if(ord)return n==11||n==8||n==80||n==800?"many":"other";return n==1&&v0?"one":"other"}},messages:{"Active Insulin":"Insulina attiva","Activity":"Attivit\xE0 fisica","Additional":"Ulteriori","Attention":"Attenzione","Based on the selected activity your insulin recommendation is reduced by:":"In base all'attivit\xE0 selezionata, la prescrizione per l'insulina \xE8 ridotta di:","Blood Glucose Level":"Indice glicemico","Blood Ketone Level":"Livello di chetoni nel sangue","Carbohydrates":"Carboidrati","Close calculation":"Chiudi calcolo","Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.":"Ricorda di non iniziare l'attivit\xE0 fisica prima che il livello di glucosio nel sangue non sia rientrato negli intervalli raccomandati prima dell'attivit\xE0 fisica.","Current glucose: {0} mmol/L":function(a){return["Current glucose: ",a("0")," mmol/L"]},"Current glucose: {latestCGMReading} {0}":function(a){return["Current glucose: ",a("latestCGMReading")," ",a("0")]},"Edit":"Edit","Entered":"Inserito","Error. Hedia Calculator could not find your recent boluses":"Error. Hedia Calculator could not find your recent boluses","Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units":function(a){return["Errore. Hedia Calculator non supporta una dose di insulina superiore a ",a("SAFETY_INSULIN_LIMIT")," unit\xE0"]},"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Errore. Hedia Calculator non supporta le raccomandazioni di insulina con boli pi\xF9 vecchi di 4 ore","Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.":"Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.","Error. Hedia Calculator does not support your activity intensity value":"Errore. Hedia Calculator non supporta il valore dell'intensit\xE0 dell'attivit\xE0","Error. Hedia Calculator does not support your activity type value":"Errore. Hedia Calculator non supporta il valore del tipo di attivit\xE0","Error. Hedia Calculator does not support your current blood glucose level.":"Errore. Hedia Calculator non supporta la tua glicemia attuale.","Error. Hedia Calculator does not support your current blood glucose unit.":"Errore. Hedia Calculator non supporta l'attuale unit\xE0 misura di glucosio nel sangue.","Error. Hedia Calculator does not support your current blood ketone level.":"Errore. Hedia Calculator non supporta l'attuale livello di chetoni nel sangue.","Error. Hedia Calculator does not support your current blood ketone unit.":"Errore. Hedia Calculator non supporta l'attuale unit\xE0 di misura di chetoni del sangue.","Error. Hedia Calculator does not support your current language.":"Errore. Hedia Calculator non supporta la lingua corrente.","Error. Hedia Calculator does not support your injection method.":"Errore. Hedia Calculator non supporta il metodo di iniezione.","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Errore. Hedia Calculator supporta solo attivit\xE0 della durata massima di 60 minuti.","Error. Please verify that your activity settings are set up correctly.":"Errore. Verificare che le impostazioni delle attivit\xE0 siano impostate correttamente.","Error. Please verify that your activity target blood glucose value is correct.":"Errore. Verificare che il indice glicemico desiderato durante l\u2019attivit\xE0 sia corretto.","Error. Please verify that your insulin sensitivity value is correct.":"Errore. Verificare che il valore della sensibilit\xE0 all'insulina sia corretto.","Error. Please verify that your insulin to carb ratio value is correct.":"Errore. Verificare che il valore del rapporto insulina/carboidrati sia corretto.","Error. Please verify that your target blood glucose value is correct.":"Errore. Verificare che il valore obiettivo della glicemia sia corretto.","Error. Please verify your notifications settings.":"Errore. Verificare le impostazioni di notifica.","Error. Your blood ketone settings are invalid.":"Error. Your blood ketone settings are invalid.","Food":"Cibo","Forecast time:":"Forecast time:","Forecasted Glucose":"Forecasted Glucose","Hard":"Intensa","Have you taken rapid-acting insulin within the last 4 hours?":"Have you taken rapid-acting insulin within the last 4 hours?","Hedia Calculator does not support activities that finished more than 4 hours ago.":"Hedia Calculator non supporta attivit\xE0 che siano terminate pi\xF9 di 4 ore fa.","Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.":"Hedia Calculator non supporta le prescrizioni di insulina con pi\xF9 di 300 grammi di carboidrati presenti.","Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.":function(a){return["Hedia non supporta pi\xF9 di ",a("SAFETY_INSULIN_LIMIT")," unit\xE0 di insulina per ogni calcolo."]},"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.":function(a){return["Hedia non supporta pi\xF9 di ",a("SAFETY_INSULIN_LIMIT")," unit\xE0 di insulina per ogni calcolo, ma, a seguito dell'attivit\xE0 fisica che hai inserito, \xE8 stata ulteriormente ridotta del ",a("0"),"% a ",a("1")," unit\xE0 per questo calcolo."]},"How are you feeling?":"Come ti senti?","If it is possible, postpone your planned exercise.":"Se possibile, posticipa l'allenamento pianificato.","Instead of taking insulin":"Invece di assumere insulina","Insulin recommendation":"Prescrizione di insulina","Light":"Leggera","Moderate":"Moderata","More than 15 minutes has passed since this calculation was started.":"Sono passati pi\xF9 di 15 minuti dall'inizio di questo calcolo.","NO":"NO","No":"No","No, return to dashboard":"No, torna al pannello di controllo","OFF":"SPENTO","OK":"OK","Please go through the calculation steps with new measurements to ensure a safe recommendation.":"Completa tutte le fasi del calcolo con nuove misurazioni per assicurare una prescrizione sicura.","Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?":function(a){return["La prescrizione del ",a("day")," alle ",a("time")," non \xE8 stata trasferita nel tuo diario.",a("0")," Hai usato la prescrizione?"]},"Recommended":"Prescritta","Recommended amount of rapid-acting insulin for immidiate injection":"Recommended amount of rapid-acting insulin for immidiate injection","Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose":"Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose","Remind me to remeasure in":"Ricordami di misurare nuovamente tra","Return to dashboard":"Torna al pannello di controllo","Save data before closing?":"Salvare i dati prima della chiusura?","Save to logbook":"Salva nel diario","Start new calculation":"Inizia il nuovo calcolo","Total":"Totale","Units":"Unit\xE0","Untitled Activity":"Attivit\xE0 senza titolo","We recommend eating an additional:":"Consigliamo di ingerire una quantit\xE0 supplementare:","Would you like to add this to your current calculation?":"Vuoi aggiungere questo al tuo calcolo corrente?","Yes":"S\xEC","Yes, save to logbook":"S\xEC, salva nel diario","You have a high blood glucose level.":"Hai un alto indice glicemico.","You should take rapid-acting insulin and measure ketones.":"Devi assumere insulina ad azione rapida e misurare i chetoni.","You will be reminded to measure your blood glucose level in 15 min.":"Ti verr\xE0 ricordato di misurare il indice glicemico tra 15 min.","Your blood glucose level is very low.":"Il indice glicemico \xE8 molto basso.","Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.":"Il indice glicemico \xE8 molto basso. Assumi glucagon o ingerisci carboidrati, se possibile. Rivolgiti a un medico.","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}.":function(a){return["La tua prescrizione sarebbe stata superiore a ",a("0")," unit\xE0 di insulina, ma \xE8 stata limitata per motivi di sicurezza.",a("1")," Hedia non prescrive mai pi\xF9 di ",a("SAFETY_INSULIN_LIMIT")," unit\xE0 di insulina per calcolo, ma a seguito dell'attivit\xE0 fisica che hai inserito, questa \xE8 stata ulteriormente ridotta del ",a("2"),"% a ",a("3"),"."]},"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.":function(a){return["La tua prescrizione sarebbe stata superiore a ",a("SAFETY_INSULIN_LIMIT")," unit\xE0 di insulina, ma \xE8 stata limitata per motivi di sicurezza. Hedia non prescrive mai pi\xF9 di ",a("SAFETY_INSULIN_LIMIT")," unit\xE0 di insulina per calcolo."]},"Your saved data will be used for future calculations.":"I dati salvati saranno utilizzati per calcoli futuri.","grams":"grammi","grams of carbohydrates":"grammi di carboidrati","hours":"ore","min":"min","units":"unit\xE0"}};
|
|
@@ -56,7 +56,15 @@ msgstr "Chiudi calcolo"
|
|
|
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 "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
58
|
|
|
59
|
-
#: src/components/
|
|
59
|
+
#: src/__tests__/components/ForecastInfoBar.test.tsx:24
|
|
60
|
+
msgid "Current glucose: {0} mmol/L"
|
|
61
|
+
msgstr ""
|
|
62
|
+
|
|
63
|
+
#: src/components/ForecastInfoBar.tsx:61
|
|
64
|
+
msgid "Current glucose: {latestCGMReading} {0}"
|
|
65
|
+
msgstr ""
|
|
66
|
+
|
|
67
|
+
#: src/components/RecommendedInsulin.tsx:109
|
|
60
68
|
msgid "Edit"
|
|
61
69
|
msgstr ""
|
|
62
70
|
|
|
@@ -148,12 +156,12 @@ msgstr ""
|
|
|
148
156
|
msgid "Food"
|
|
149
157
|
msgstr "Cibo"
|
|
150
158
|
|
|
151
|
-
#: src/
|
|
152
|
-
msgid "
|
|
159
|
+
#: src/components/ForecastInfoBar.tsx:54
|
|
160
|
+
msgid "Forecast time:"
|
|
153
161
|
msgstr ""
|
|
154
162
|
|
|
155
|
-
#: src/
|
|
156
|
-
msgid "Forecasted
|
|
163
|
+
#: src/RecommendationScreen.tsx:454
|
|
164
|
+
msgid "Forecasted Glucose"
|
|
157
165
|
msgstr ""
|
|
158
166
|
|
|
159
167
|
#: src/utils/Translations.ts:13
|
|
@@ -244,7 +252,11 @@ msgstr "La prescrizione del {day} alle {time} non è stata trasferita nel tuo di
|
|
|
244
252
|
msgid "Recommended"
|
|
245
253
|
msgstr "Prescritta"
|
|
246
254
|
|
|
247
|
-
#: src/components/RecommendedInsulin.tsx:
|
|
255
|
+
#: src/components/RecommendedInsulin.tsx:94
|
|
256
|
+
msgid "Recommended amount of rapid-acting insulin for immidiate injection"
|
|
257
|
+
msgstr ""
|
|
258
|
+
|
|
259
|
+
#: src/components/RecommendedInsulin.tsx:95
|
|
248
260
|
msgid "Recommended amount of rapid-acting insulin for immidiate injection based on forecasted glucose"
|
|
249
261
|
msgstr ""
|
|
250
262
|
|
|
@@ -273,7 +285,7 @@ msgstr "Inizia il nuovo calcolo"
|
|
|
273
285
|
msgid "Total"
|
|
274
286
|
msgstr "Totale"
|
|
275
287
|
|
|
276
|
-
#: src/components/RecommendedInsulin.tsx:
|
|
288
|
+
#: src/components/RecommendedInsulin.tsx:105
|
|
277
289
|
msgid "Units"
|
|
278
290
|
msgstr "Unità"
|
|
279
291
|
|
package/dist/src/types/enum.d.ts
CHANGED
|
@@ -105,7 +105,8 @@ export declare enum RecommendationErrorEnum {
|
|
|
105
105
|
InjectionMethod = 18,
|
|
106
106
|
BloodKetoneUnit = 19,
|
|
107
107
|
BloodGlucoseUnit = 20,
|
|
108
|
-
BloodKetoneProps = 21
|
|
108
|
+
BloodKetoneProps = 21,
|
|
109
|
+
VeryLowForecastedGlucose = 22
|
|
109
110
|
}
|
|
110
111
|
/** Indicates the category of the user’s blood glucose level. */
|
|
111
112
|
export declare enum BgLevel {
|
package/dist/src/types/enum.js
CHANGED
|
@@ -120,6 +120,7 @@ export var RecommendationErrorEnum;
|
|
|
120
120
|
RecommendationErrorEnum[RecommendationErrorEnum["BloodKetoneUnit"] = 19] = "BloodKetoneUnit";
|
|
121
121
|
RecommendationErrorEnum[RecommendationErrorEnum["BloodGlucoseUnit"] = 20] = "BloodGlucoseUnit";
|
|
122
122
|
RecommendationErrorEnum[RecommendationErrorEnum["BloodKetoneProps"] = 21] = "BloodKetoneProps";
|
|
123
|
+
RecommendationErrorEnum[RecommendationErrorEnum["VeryLowForecastedGlucose"] = 22] = "VeryLowForecastedGlucose";
|
|
123
124
|
})(RecommendationErrorEnum || (RecommendationErrorEnum = {}));
|
|
124
125
|
/** Indicates the category of the user’s blood glucose level. */
|
|
125
126
|
export var BgLevel;
|
|
@@ -51,3 +51,5 @@ export declare const ACTIVITY_TARGET_BGL_MMOL_LIMITS: IInterval;
|
|
|
51
51
|
export declare const REMINDER_HOURS_LIMITS: IInterval;
|
|
52
52
|
/** The lower and upper limits for activity reduction. */
|
|
53
53
|
export declare const ACTIVITY_SETTINGS_INTERVAL_LIMITS: IInterval;
|
|
54
|
+
/** The number of CGM forecasted glucose units, that's considered to be very low. */
|
|
55
|
+
export declare const FORECASTED_CGM_VERY_LOW_LIMIT_MMOLL: number;
|
|
@@ -51,3 +51,5 @@ export const ACTIVITY_TARGET_BGL_MMOL_LIMITS = { min: 5, max: 13.9 };
|
|
|
51
51
|
export const REMINDER_HOURS_LIMITS = { min: 0, max: 6 };
|
|
52
52
|
/** The lower and upper limits for activity reduction. */
|
|
53
53
|
export const ACTIVITY_SETTINGS_INTERVAL_LIMITS = { min: 0, max: 1 };
|
|
54
|
+
/** The number of CGM forecasted glucose units, that's considered to be very low. */
|
|
55
|
+
export const FORECASTED_CGM_VERY_LOW_LIMIT_MMOLL = 3.5;
|
|
@@ -54,3 +54,5 @@ export declare const BloodKetoneUnitError: () => RecommendationError;
|
|
|
54
54
|
export declare const BloodGlucoseUnitError: () => RecommendationError;
|
|
55
55
|
/** The user has provided a blood ketone level but the blood ketone measuring unit is not defined. */
|
|
56
56
|
export declare const BloodKetonePropsError: () => RecommendationError;
|
|
57
|
+
/** The user has provided a forecast cgm glucose value is very low. */
|
|
58
|
+
export declare const ForecastedGlucoseIsVeryLowError: () => RecommendationError;
|
|
@@ -61,3 +61,5 @@ export const BloodKetoneUnitError = () => new RecommendationError(i18n._(t `Erro
|
|
|
61
61
|
export const BloodGlucoseUnitError = () => new RecommendationError(i18n._(t `Error. Hedia Calculator does not support your current blood glucose unit.`), RecommendationErrorEnum.BloodGlucoseUnit);
|
|
62
62
|
/** The user has provided a blood ketone level but the blood ketone measuring unit is not defined. */
|
|
63
63
|
export const BloodKetonePropsError = () => new RecommendationError(i18n._(t `Error. Your blood ketone settings are invalid.`), RecommendationErrorEnum.BloodKetoneProps);
|
|
64
|
+
/** The user has provided a forecast cgm glucose value is very low. */
|
|
65
|
+
export const ForecastedGlucoseIsVeryLowError = () => new RecommendationError(i18n._(t `Error. Your forecasted cgm glucose is very low.`), RecommendationErrorEnum.VeryLowForecastedGlucose);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
7
|
import { Activity, BloodGlucoseUnit, BloodKetonesUnit, BolusCalculator, Languages, Logbook, UserSettings } from "@hedia/types";
|
|
8
|
-
import { IRecommendationProps } from "../RecommendationScreen";
|
|
8
|
+
import { IForecast, IRecommendationProps } from "../RecommendationScreen";
|
|
9
9
|
/**
|
|
10
10
|
* Main function for validating all input properties for the insulin recommendation screen component.
|
|
11
11
|
* Throws an exception if any of the individual checks fail.
|
|
@@ -248,3 +248,11 @@ export declare function checkInsulinToCarbRatio(insulinToCarbRatio: number): voi
|
|
|
248
248
|
* @param carbohydrates The amount of carbohydrates that the user is eating in grams.
|
|
249
249
|
*/
|
|
250
250
|
export declare function checkCarbohydrates(carbohydrates: number): void;
|
|
251
|
+
/**
|
|
252
|
+
* Check if the forecasted glucose is not very low.
|
|
253
|
+
*
|
|
254
|
+
* Steps:
|
|
255
|
+
* 1. Check if forecasted glucose is above very low limit. If it isn’t then throw a ForecastedGlucoseIsVeryLowError().
|
|
256
|
+
* @param forecastedGlucose The amount of blood glucose in mmol/L that is received from forecast.
|
|
257
|
+
*/
|
|
258
|
+
export declare function checkVeryLowForecastedGlucose(forecast: IForecast | null): void;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { Activity, BloodGlucoseUnit, BloodKetonesUnit, Languages, UserSettings, } from "@hedia/types";
|
|
8
8
|
import moment from "moment";
|
|
9
|
-
import { ACTIVITY_BUFFER_MINUTES, ACTIVITY_DURATION_MINUTES_LIMITS, ACTIVITY_SETTINGS_INTERVAL_LIMITS, ACTIVITY_TARGET_BGL_MMOL_LIMITS, BOLUS_SECONDS_PASSED_LIMITS, CARBOHYDRATES_LIMTS, CURRENT_BGL_MMOL_LIMITS, CURRENT_BKL_MMOL_LIMITS, INSULIN_DOSE_LIMITS, INSULIN_SENSITIVITY_MMOL_LIMITS, INSULIN_TO_CARBS_RATIO_LIMITS, ONE_HOUR_MINUTES, REMINDER_HOURS_LIMITS, TARGET_BGL_MMOL_LIMITS, } from "./Constants";
|
|
10
|
-
import { ActivityDateError, ActivityDurationError, ActivityIntensityError, ActivitySettingsError, ActivityTargetBGLError, ActivityTypeError, BloodGlucoseUnitError, BloodKetonePropsError, BloodKetoneUnitError, BolusInsulinDoseError, BolusInsulinSecondsPassedError, CarbohydrateLimitError, CurrentBGLError, CurrentBKLError, InjectionMethodError, InsulinSensitivityError, InsulinToCarbsRatioError, LanguageError, LatestLogbook6HoursBGLError, RecentBolusError, TargetBGLError, UserReminderError, } from "./RecommendationError";
|
|
9
|
+
import { ACTIVITY_BUFFER_MINUTES, ACTIVITY_DURATION_MINUTES_LIMITS, ACTIVITY_SETTINGS_INTERVAL_LIMITS, ACTIVITY_TARGET_BGL_MMOL_LIMITS, BOLUS_SECONDS_PASSED_LIMITS, CARBOHYDRATES_LIMTS, CURRENT_BGL_MMOL_LIMITS, CURRENT_BKL_MMOL_LIMITS, FORECASTED_CGM_VERY_LOW_LIMIT_MMOLL, INSULIN_DOSE_LIMITS, INSULIN_SENSITIVITY_MMOL_LIMITS, INSULIN_TO_CARBS_RATIO_LIMITS, ONE_HOUR_MINUTES, REMINDER_HOURS_LIMITS, TARGET_BGL_MMOL_LIMITS, } from "./Constants";
|
|
10
|
+
import { ActivityDateError, ActivityDurationError, ActivityIntensityError, ActivitySettingsError, ActivityTargetBGLError, ActivityTypeError, BloodGlucoseUnitError, BloodKetonePropsError, BloodKetoneUnitError, BolusInsulinDoseError, BolusInsulinSecondsPassedError, CarbohydrateLimitError, CurrentBGLError, CurrentBKLError, ForecastedGlucoseIsVeryLowError, InjectionMethodError, InsulinSensitivityError, InsulinToCarbsRatioError, LanguageError, LatestLogbook6HoursBGLError, RecentBolusError, TargetBGLError, UserReminderError, } from "./RecommendationError";
|
|
11
11
|
import { Utils } from "./Utils";
|
|
12
12
|
const { hard } = Activity.Enums.ActivityIntensity;
|
|
13
13
|
const { fromFortysix } = Activity.Enums.ActivityReductionIntervals;
|
|
@@ -42,6 +42,7 @@ export function validateParams(props) {
|
|
|
42
42
|
if (props?.calculatorParams?.activity && props?.activityDisplayProps) {
|
|
43
43
|
checkActivityType(props.activityDisplayProps.activityType);
|
|
44
44
|
}
|
|
45
|
+
checkVeryLowForecastedGlucose(props.forecast);
|
|
45
46
|
}
|
|
46
47
|
/**
|
|
47
48
|
* In case the users is providing a blood ketone current level, check if the blood ketone unit is defined.
|
|
@@ -407,3 +408,17 @@ export function checkCarbohydrates(carbohydrates) {
|
|
|
407
408
|
throw CarbohydrateLimitError();
|
|
408
409
|
}
|
|
409
410
|
}
|
|
411
|
+
/**
|
|
412
|
+
* Check if the forecasted glucose is not very low.
|
|
413
|
+
*
|
|
414
|
+
* Steps:
|
|
415
|
+
* 1. Check if forecasted glucose is above very low limit. If it isn’t then throw a ForecastedGlucoseIsVeryLowError().
|
|
416
|
+
* @param forecastedGlucose The amount of blood glucose in mmol/L that is received from forecast.
|
|
417
|
+
*/
|
|
418
|
+
export function checkVeryLowForecastedGlucose(forecast) {
|
|
419
|
+
if (forecast?.forecastedGlucose) {
|
|
420
|
+
if (forecast.forecastedGlucose < FORECASTED_CGM_VERY_LOW_LIMIT_MMOLL) {
|
|
421
|
+
throw ForecastedGlucoseIsVeryLowError();
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hedia/recommendation-screen",
|
|
3
|
-
"version": "2.2.0-alpha.
|
|
3
|
+
"version": "2.2.0-alpha.21",
|
|
4
4
|
"description": "Hedia Recommendation Screen for Bolus and Carbohydrates",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"prettier-fix": "prettier --write \"**/*.{ts,tsx}\"",
|
|
19
19
|
"pkg-json-lint": "npmPkgJsonLint .",
|
|
20
20
|
"package-audit": "npm-audit --critical --warn",
|
|
21
|
-
"
|
|
21
|
+
"pipeline": "npm run tsc && npm run lint && npm run pkg-json-lint && npm run prettier && npm run package-audit",
|
|
22
|
+
"prepublishOnly": "npm ci --ignore-scripts --legacy-peer-deps && npm run build",
|
|
22
23
|
"postpublish": "npm run clean",
|
|
23
24
|
"a": "index-git.sh && cd android && gradlew clean && cd .. && react-native run-android",
|
|
24
25
|
"start": "react-native start",
|
|
@@ -26,7 +27,8 @@
|
|
|
26
27
|
"extract": "lingui extract",
|
|
27
28
|
"extract-clean": "lingui extract --clean",
|
|
28
29
|
"compile": "npm run cleanLanguage && lingui compile",
|
|
29
|
-
"cleanLanguage": "node ./src/locale/CleanLanguage.ts"
|
|
30
|
+
"cleanLanguage": "node ./src/locale/CleanLanguage.ts",
|
|
31
|
+
"prepare": "husky install"
|
|
30
32
|
},
|
|
31
33
|
"keywords": [
|
|
32
34
|
"Hedia",
|
|
@@ -50,28 +52,30 @@
|
|
|
50
52
|
"@hedia/recommendation-calculator": "2.0.15",
|
|
51
53
|
"@react-native-community/slider": "3.0.0",
|
|
52
54
|
"@testing-library/jest-native": "3.1.0",
|
|
53
|
-
"@types/jest": "
|
|
55
|
+
"@types/jest": "27.5.2",
|
|
54
56
|
"@types/lingui__core": "2.7.0",
|
|
55
57
|
"@types/lingui__macro": "2.7.3",
|
|
56
58
|
"@types/lingui__react": "2.8.2",
|
|
57
|
-
"@types/react": "
|
|
58
|
-
"@types/react-native": "0.
|
|
59
|
-
"@types/react-test-renderer": "
|
|
59
|
+
"@types/react": "18.0.0",
|
|
60
|
+
"@types/react-native": "0.69.4",
|
|
61
|
+
"@types/react-test-renderer": "18.0.0",
|
|
60
62
|
"babel-core": "7.0.0-bridge.0",
|
|
61
|
-
"babel-jest": "26.
|
|
63
|
+
"babel-jest": "26.6.3",
|
|
62
64
|
"babel-loader": "8.1.0",
|
|
63
65
|
"babel-plugin-macros": "2.8.0",
|
|
66
|
+
"husky": "8.0.1",
|
|
64
67
|
"jest": "26.6.3",
|
|
65
|
-
"metro-react-native-babel-preset": "0.
|
|
68
|
+
"metro-react-native-babel-preset": "0.70.3",
|
|
66
69
|
"npm-package-json-lint": "5.4.1",
|
|
67
70
|
"prettier": "2.5.1",
|
|
68
|
-
"react": "
|
|
69
|
-
"react-native": "0.
|
|
71
|
+
"react": "18.0.0",
|
|
72
|
+
"react-native": "0.69.4",
|
|
70
73
|
"react-native-keyboard-aware-scroll-view": "0.9.5",
|
|
71
74
|
"react-native-linear-gradient": "2.5.6",
|
|
75
|
+
"react-native-svg": "12.4.4",
|
|
72
76
|
"react-native-testing-library": "2.1.0",
|
|
73
77
|
"react-native-vector-icons": "9.1.0",
|
|
74
|
-
"react-test-renderer": "
|
|
78
|
+
"react-test-renderer": "18.0.0",
|
|
75
79
|
"tslint": "6.1.3",
|
|
76
80
|
"tslint-config-prettier": "1.18.0",
|
|
77
81
|
"typedoc": "0.21.10",
|
|
@@ -84,15 +88,15 @@
|
|
|
84
88
|
"@lingui/cli": "2.9.2",
|
|
85
89
|
"@lingui/macro": "2.9.2",
|
|
86
90
|
"@lingui/react": "2.9.2",
|
|
87
|
-
"moment": "2.29.
|
|
88
|
-
"react-native-modal": "13.0.1"
|
|
89
|
-
"react-native-svg": "12.3.0"
|
|
91
|
+
"moment": "2.29.4",
|
|
92
|
+
"react-native-modal": "13.0.1"
|
|
90
93
|
},
|
|
91
94
|
"peerDependencies": {
|
|
92
95
|
"@hedia/recommendation-calculator": "2.0.15",
|
|
93
96
|
"@lingui/macro": "2.9.2",
|
|
94
97
|
"@react-native-community/slider": "3.0.0",
|
|
95
98
|
"react-native-linear-gradient": "2.5.6",
|
|
96
|
-
"react-native-
|
|
99
|
+
"react-native-svg": "12.4.4",
|
|
100
|
+
"react-native-vector-icons": "9.2.0"
|
|
97
101
|
}
|
|
98
102
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|