@hedia/recommendation-screen 2.2.0-alpha.4 → 2.2.0-alpha.41

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 (100) hide show
  1. package/dist/index.js +1 -0
  2. package/dist/index.js.map +1 -0
  3. package/dist/src/RecommendationScreen.d.ts +3 -3
  4. package/dist/src/RecommendationScreen.js +39 -41
  5. package/dist/src/RecommendationScreen.js.map +1 -0
  6. package/dist/src/components/Header.js +7 -7
  7. package/dist/src/components/Header.js.map +1 -0
  8. package/dist/src/components/Icon.js +1 -2
  9. package/dist/src/components/Icon.js.map +1 -0
  10. package/dist/src/components/InfoBars.d.ts +1 -1
  11. package/dist/src/components/InfoBars.js +9 -9
  12. package/dist/src/components/InfoBars.js.map +1 -0
  13. package/dist/src/components/InvisibleNumberInput.js +3 -2
  14. package/dist/src/components/InvisibleNumberInput.js.map +1 -0
  15. package/dist/src/components/LimitationMessage.js +4 -4
  16. package/dist/src/components/LimitationMessage.js.map +1 -0
  17. package/dist/src/components/LineSeparator.js +1 -0
  18. package/dist/src/components/LineSeparator.js.map +1 -0
  19. package/dist/src/components/RecentInsulin.js +10 -9
  20. package/dist/src/components/RecentInsulin.js.map +1 -0
  21. package/dist/src/components/RecommendationModal.js +26 -26
  22. package/dist/src/components/RecommendationModal.js.map +1 -0
  23. package/dist/src/components/RecommendedCarbs.d.ts +2 -0
  24. package/dist/src/components/RecommendedCarbs.js +24 -28
  25. package/dist/src/components/RecommendedCarbs.js.map +1 -0
  26. package/dist/src/components/RecommendedInsulin.d.ts +1 -1
  27. package/dist/src/components/RecommendedInsulin.js +12 -13
  28. package/dist/src/components/RecommendedInsulin.js.map +1 -0
  29. package/dist/src/components/Remeasure.d.ts +5 -15
  30. package/dist/src/components/Remeasure.js +12 -29
  31. package/dist/src/components/Remeasure.js.map +1 -0
  32. package/dist/src/components/TransferToLogbook.js +8 -32
  33. package/dist/src/components/TransferToLogbook.js.map +1 -0
  34. package/dist/src/components/TwoOptionModal.js +15 -14
  35. package/dist/src/components/TwoOptionModal.js.map +1 -0
  36. package/dist/src/components/activity/Activity.d.ts +1 -1
  37. package/dist/src/components/activity/Activity.js +8 -7
  38. package/dist/src/components/activity/Activity.js.map +1 -0
  39. package/dist/src/components/activity/ActivityIcon.d.ts +1 -1
  40. package/dist/src/components/activity/ActivityIcon.js +6 -5
  41. package/dist/src/components/activity/ActivityIcon.js.map +1 -0
  42. package/dist/src/components/activity/ActivityIntensity.d.ts +1 -1
  43. package/dist/src/components/activity/ActivityIntensity.js +6 -4
  44. package/dist/src/components/activity/ActivityIntensity.js.map +1 -0
  45. package/dist/src/components/mood/Emotion.d.ts +1 -1
  46. package/dist/src/components/mood/Emotion.js +6 -5
  47. package/dist/src/components/mood/Emotion.js.map +1 -0
  48. package/dist/src/components/mood/MoodIcon.d.ts +1 -1
  49. package/dist/src/components/mood/MoodIcon.js +2 -1
  50. package/dist/src/components/mood/MoodIcon.js.map +1 -0
  51. package/dist/src/components/text/TextBold.js +1 -0
  52. package/dist/src/components/text/TextBold.js.map +1 -0
  53. package/dist/src/components/text/TextRegular.js +1 -0
  54. package/dist/src/components/text/TextRegular.js.map +1 -0
  55. package/dist/src/locales/da/messages.json +80 -0
  56. package/dist/src/locales/de/messages.json +80 -0
  57. package/dist/src/locales/en/messages.json +83 -0
  58. package/dist/src/locales/es/messages.json +80 -0
  59. package/dist/src/locales/fr/messages.json +80 -0
  60. package/dist/src/locales/it/messages.json +80 -0
  61. package/dist/src/locales/translate.d.ts +18 -0
  62. package/dist/src/locales/translate.js +51 -0
  63. package/dist/src/locales/translate.js.map +1 -0
  64. package/dist/src/types/enum.js +2 -0
  65. package/dist/src/types/enum.js.map +1 -0
  66. package/dist/src/types/types.js +1 -0
  67. package/dist/src/types/types.js.map +1 -0
  68. package/dist/src/utils/AttentionMessages.js +29 -24
  69. package/dist/src/utils/AttentionMessages.js.map +1 -0
  70. package/dist/src/utils/Constants.d.ts +27 -8
  71. package/dist/src/utils/Constants.js +26 -6
  72. package/dist/src/utils/Constants.js.map +1 -0
  73. package/dist/src/utils/RecommendationError.js +24 -24
  74. package/dist/src/utils/RecommendationError.js.map +1 -0
  75. package/dist/src/utils/RecommendationUtils.js +5 -2
  76. package/dist/src/utils/RecommendationUtils.js.map +1 -0
  77. package/dist/src/utils/Translations.js +5 -5
  78. package/dist/src/utils/Translations.js.map +1 -0
  79. package/dist/src/utils/Utils.d.ts +1 -1
  80. package/dist/src/utils/Utils.js +1 -0
  81. package/dist/src/utils/Utils.js.map +1 -0
  82. package/dist/src/utils/Validations.d.ts +1 -1
  83. package/dist/src/utils/Validations.js +3 -2
  84. package/dist/src/utils/Validations.js.map +1 -0
  85. package/dist/tsconfig.tsbuildinfo +1 -0
  86. package/package.json +85 -95
  87. package/dist/src/locale/da/messages.js +0 -1
  88. package/dist/src/locale/da/messages.po +0 -349
  89. package/dist/src/locale/de/messages.js +0 -1
  90. package/dist/src/locale/de/messages.po +0 -349
  91. package/dist/src/locale/en/messages.js +0 -1
  92. package/dist/src/locale/en/messages.po +0 -349
  93. package/dist/src/locale/es/messages.js +0 -1
  94. package/dist/src/locale/es/messages.po +0 -349
  95. package/dist/src/locale/fr/messages.js +0 -1
  96. package/dist/src/locale/fr/messages.po +0 -349
  97. package/dist/src/locale/i18nUtils.d.ts +0 -18
  98. package/dist/src/locale/i18nUtils.js +0 -39
  99. package/dist/src/locale/it/messages.js +0 -1
  100. package/dist/src/locale/it/messages.po +0 -349
@@ -0,0 +1,83 @@
1
+ {
2
+ "Active Insulin": "Active insulin",
3
+ "Activity": "Activity",
4
+ "Additional": "Additional",
5
+ "Attention": "Attention",
6
+ "Based on the selected activity your insulin recommendation is reduced by:": "Based on the selected activity your insulin recommendation is reduced by:",
7
+ "Blood Glucose Level": "Blood glucose",
8
+ "Blood Ketone Level": "Blood ketone level",
9
+ "Carbohydrates": "Carbohydrates",
10
+ "Close calculation": "Close calculation",
11
+ "Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.": "Consider not to initiate physical activity before your blood glucose is within the recommended ranges prior to physical activity.",
12
+ "Entered": "Entered",
13
+ "Error. Hedia Calculator could not find your recent boluses": "Error. Hedia Calculator could not find your recent boluses",
14
+ "Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units": "Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units",
15
+ "Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours": "Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours",
16
+ "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.",
17
+ "Error. Hedia Calculator does not support your activity intensity value": "Error. Hedia Calculator does not support your activity intensity value",
18
+ "Error. Hedia Calculator does not support your activity type value": "Error. Hedia Calculator does not support your activity type value",
19
+ "Error. Hedia Calculator does not support your current blood glucose level.": "Error. Hedia Calculator does not support your current blood glucose.",
20
+ "Error. Hedia Calculator does not support your current blood glucose unit.": "Error. Hedia Calculator does not support your current blood glucose unit.",
21
+ "Error. Hedia Calculator does not support your current blood ketone level.": "Error. Hedia Calculator does not support your current blood ketone level.",
22
+ "Error. Hedia Calculator does not support your current blood ketone unit.": "Error. Hedia Calculator does not support your current blood ketone unit.",
23
+ "Error. Hedia Calculator does not support your current language.": "Error. Hedia Calculator does not support your current language.",
24
+ "Error. Hedia Calculator does not support your injection method.": "Error. Hedia Calculator does not support your injection method.",
25
+ "Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.": "Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.",
26
+ "Error. Please verify that your activity settings are set up correctly.": "Error. Please verify that your activity settings are set up correctly.",
27
+ "Error. Please verify that your activity target blood glucose value is correct.": "Error. Please verify that your desired blood glucose during activity is correct.",
28
+ "Error. Please verify that your insulin sensitivity value is correct.": "Error. Please verify that your insulin sensitivity value is correct.",
29
+ "Error. Please verify that your insulin to carb ratio value is correct.": "Error. Please verify that your insulin to carb ratio value is correct.",
30
+ "Error. Please verify that your target blood glucose value is correct.": "Error. Please verify that your target blood glucose is correct.",
31
+ "Error. Please verify your notifications settings.": "Error. Please verify your notifications settings.",
32
+ "Error. Your blood ketone settings are invalid.": "Error. Your blood ketone settings are invalid.",
33
+ "Food": "Food",
34
+ "grams": "grams",
35
+ "grams of carbohydrates": "grams of carbohydrates",
36
+ "Hard": "Hard",
37
+ "Have you taken insulin within the last 4 hours?": "Have you taken insulin within the last 4 hours?",
38
+ "Hedia Calculator does not support activities that finished more than 4 hours ago.": "Hedia Calculator does not support activities that finished more than 4 hours ago.",
39
+ "Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.": "Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.",
40
+ "Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.": "Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.",
41
+ "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.": "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.",
42
+ "hours": "hours",
43
+ "How are you feeling?": "How are you feeling?",
44
+ "If it is possible, postpone your planned exercise.": "If it is possible, postpone your planned exercise.",
45
+ "Instead of taking insulin": "Instead of taking insulin",
46
+ "INSULIN{0}RECOMMENDATION": "INSULIN{0}RECOMMENDATION",
47
+ "Light": "Light",
48
+ "min": "min",
49
+ "Moderate": "Moderate",
50
+ "More than 15 minutes has passed since this calculation was started.": "More than 15 minutes has passed since this calculation was started.",
51
+ "NO": "NO",
52
+ "No": "No",
53
+ "No, return to dashboard": "No, return to dashboard",
54
+ "OFF": "OFF",
55
+ "OK": "OK",
56
+ "Please go through the calculation steps with new measurements to ensure a safe recommendation.": "Please go through the calculation steps with new measurements to ensure a safe recommendation.",
57
+ "Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?": "Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?",
58
+ "Recommended": "Recommended",
59
+ "Recommended amount of insulin": "Recommended amount of insulin",
60
+ "Remind me to remeasure in": "Remind me to remeasure in",
61
+ "Return to dashboard": "Return to dashboard",
62
+ "Save data before closing?": "Save data before closing?",
63
+ "Save to logbook": "Save to logbook",
64
+ "Start new calculation": "Start new calculation",
65
+ "Total": "Total",
66
+ "Transfer to logbook": "Transfer to logbook",
67
+ "Transferred to logbook": "Transferred to logbook",
68
+ "Units": "Units",
69
+ "units": "units",
70
+ "Untitled Activity": "Untitled activity",
71
+ "We recommend eating an additional:": "We recommend eating an additional:",
72
+ "Would you like to add this to your current calculation?": "Would you like to add this to your current calculation?",
73
+ "Yes": "Yes",
74
+ "Yes, save to logbook": "Yes, save to logbook",
75
+ "You have a high blood glucose level.": "You have high blood glucose.",
76
+ "You should take rapid-acting insulin and measure ketones.": "You should take rapid-acting insulin and measure ketones.",
77
+ "You will be reminded to measure your blood glucose level in 15 min.": "You will be reminded to measure your blood glucose in 15 min.",
78
+ "Your blood glucose level is very low.": "Your blood glucose is very low.",
79
+ "Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.": "Your blood glucose is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.",
80
+ "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}.": "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}.",
81
+ "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.": "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.",
82
+ "Your saved data will be used for future calculations.": "Your saved data will be used for future calculations."
83
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "Active Insulin": "Insulina activa",
3
+ "Activity": "Actividad",
4
+ "Additional": "Adicional",
5
+ "Attention": "Atención",
6
+ "Based on the selected activity your insulin recommendation is reduced by:": "Según la actividad seleccionada, su recomendación de insulina se reduce en un:",
7
+ "Blood Glucose Level": "Glucosa en sangre",
8
+ "Blood Ketone Level": "Nivel de cetonas en sangre",
9
+ "Carbohydrates": "Hidratos de carbono",
10
+ "Close calculation": "Cerrar calculación",
11
+ "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ísica antes de que su nivel de glucosa en sangre se encuentre dentro del rango recomendado antes de una actividad física.",
12
+ "Entered": "Introducido",
13
+ "Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units": "Error. La calculadora de Hedia no admite una dosis de insulina superior a {SAFETY_INSULIN_LIMIT} unidades.",
14
+ "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.",
15
+ "Error. Hedia Calculator does not support your activity intensity value": "Error. La calculadora de Hedia no admite su valor de intensidad de actividad.",
16
+ "Error. Hedia Calculator does not support your activity type value": "Error. La calculadora de Hedia no admite su valor de tipo de actividad.",
17
+ "Error. Hedia Calculator does not support your current blood glucose level.": "Error. La calculadora de Hedia no admite tu glucosa en sangre actual.",
18
+ "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.",
19
+ "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.",
20
+ "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.",
21
+ "Error. Hedia Calculator does not support your current language.": "Error. La calculadora de Hedia no admite su idioma actual.",
22
+ "Error. Hedia Calculator does not support your injection method.": "Error. La calculadora de Hedia no admite su método de inyección.",
23
+ "Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.": "Error. La calculadora de Hedia solo admite actividades con una duración máxima de 60 minutos.",
24
+ "Error. Please verify that your activity settings are set up correctly.": "Error. Compruebe si la configuración de su actividad es correcta.",
25
+ "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.",
26
+ "Error. Please verify that your insulin sensitivity value is correct.": "Error. Compruebe si el valor de su sensibilidad a la insulina es correcto.",
27
+ "Error. Please verify that your insulin to carb ratio value is correct.": "Error. Compruebe si el valor de su proporción insulina-carbohidratos es correcto.",
28
+ "Error. Please verify that your target blood glucose value is correct.": "Error. Compruebe si el valor deseado de glucosa en sangre es correcto.",
29
+ "Error. Please verify your notifications settings.": "Error. Compruebe la configuración de las notificaciones.",
30
+ "Food": "Comida",
31
+ "grams": "gramos",
32
+ "grams of carbohydrates": "gramos de hidratos de carbono",
33
+ "Hard": "Intensa",
34
+ "Have you taken insulin within the last 4 hours?": "¿Ha tomado insulina en las últimas 4 horas?",
35
+ "Hedia Calculator does not support activities that finished more than 4 hours ago.": "La calculadora de Hedia no admite actividades que finalizaron hace más de 4 horas.",
36
+ "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ás de 300 gramos de hidratos de carbono presentes.",
37
+ "Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.": "Hedia no admite más de {SAFETY_INSULIN_LIMIT} unidades de insulina por calculación.",
38
+ "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.": "Hedia no admite más de {SAFETY_INSULIN_LIMIT} unidades de insulina por calculación, pero debido a la actividad física que ha introducido, se ha reducido adicionalmente en un {0}% a {1} unidades para esta calculación.",
39
+ "hours": "horas",
40
+ "How are you feeling?": "¿Qué tal te encuentras?",
41
+ "If it is possible, postpone your planned exercise.": "Si es posible, posponga el ejercicio que tenía previsto hacer.",
42
+ "Instead of taking insulin": "En lugar de tomar insulina",
43
+ "INSULIN{0}RECOMMENDATION": "RECOMENDACIÓN{0}DE INSULINA",
44
+ "Light": "Ligera",
45
+ "min": "min",
46
+ "Moderate": "Moderada",
47
+ "More than 15 minutes has passed since this calculation was started.": "Han pasado más de 15 minutos desde que comenzó la calculación.",
48
+ "NO": "NO",
49
+ "No": "No",
50
+ "No, return to dashboard": "No, volver al panel",
51
+ "OFF": "APAGADO",
52
+ "OK": "ACEPTAR",
53
+ "Please go through the calculation steps with new measurements to ensure a safe recommendation.": "Por favor, repita los pasos de la calculación con nuevas mediciones para garantizar una recomendación segura.",
54
+ "Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?": "La recomendación del {day} a las {time} no se ha transferido a su diario.{0}¿Utilizó la recomendación?",
55
+ "Recommended": "Recomendado",
56
+ "Recommended amount of insulin": "Cantidad recomendada de insulina",
57
+ "Remind me to remeasure in": "Recordar hacer una nueva medición en",
58
+ "Return to dashboard": "Volver al panel",
59
+ "Save data before closing?": "¿Guardar los datos antes de cerrar?",
60
+ "Save to logbook": "Guardar en el diario",
61
+ "Start new calculation": "Iniciar nueva calculación",
62
+ "Total": "Total",
63
+ "Transfer to logbook": "Transferir al diario",
64
+ "Transferred to logbook": "Transferido al diario",
65
+ "Units": "Unidades",
66
+ "units": "unidades",
67
+ "Untitled Activity": "Actividad sin nombre",
68
+ "We recommend eating an additional:": "Recomendamos comer adicionalmente:",
69
+ "Would you like to add this to your current calculation?": "¿Quiere añadirlo a su calculación actual?",
70
+ "Yes": "Sí",
71
+ "Yes, save to logbook": "Sí, guardar en el diario",
72
+ "You have a high blood glucose level.": "Tiene una glucosa en sangre alta.",
73
+ "You should take rapid-acting insulin and measure ketones.": "Debe tomar insulina de acción rápida y realizar una medición de cetonas.",
74
+ "You will be reminded to measure your blood glucose level in 15 min.": "Se le recordará que mida su glucosa en sangre en 15 minutos.",
75
+ "Your blood glucose level is very low.": "Su glucosa en sangre es muy baja.",
76
+ "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ón o ingiera carbohidratos si es posible. Busque atención médica.",
77
+ "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}.": "Su recomendación habría sido superior a {0} unidades de insulina, pero se ha limitado por razones de seguridad.{1} Hedia nunca recomienda más de {SAFETY_INSULIN_LIMIT} unidades de insulina por calculación, pero debido a la actividad física que ha introducido, se ha reducido adicionalmente en un {2}% a {3}.",
78
+ "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.": "Su recomendación habría sido superior a {SAFETY_INSULIN_LIMIT} unidades de insulina, pero se ha limitado por razones de seguridad. Hedia nunca recomienda más de {SAFETY_INSULIN_LIMIT} unidades de insulina por calculación.",
79
+ "Your saved data will be used for future calculations.": "Los datos guardados se utilizarán para futuras calculaciones."
80
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "Active Insulin": "Insuline active",
3
+ "Activity": "Activité",
4
+ "Additional": "Supplémentaire",
5
+ "Attention": "Attention",
6
+ "Based on the selected activity your insulin recommendation is reduced by:": "Sur la base de l’activité sélectionnée, votre recommandation d’insuline est réduite de :",
7
+ "Blood Glucose Level": "Glycémie",
8
+ "Blood Ketone Level": "Taux de cétonémie",
9
+ "Carbohydrates": "Glucides",
10
+ "Close calculation": "Fermer le calcul",
11
+ "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’activité physique avant que votre taux de glycémie ne soit dans la plage recommandée avant l’activité physique.",
12
+ "Entered": "Saisi",
13
+ "Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units": "Erreur. La calculatrice Hedia ne prend pas en charge une dose d’insuline supérieure à {SAFETY_INSULIN_LIMIT} unités",
14
+ "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’insuline avec des bolus plus anciens que 4 heures",
15
+ "Error. Hedia Calculator does not support your activity intensity value": "Erreur. La calculatrice Hedia ne prend pas en charge votre valeur d’intensité d’activité",
16
+ "Error. Hedia Calculator does not support your activity type value": "Erreur. La calculatrice Hedia ne prend pas en charge votre valeur de type d’activité",
17
+ "Error. Hedia Calculator does not support your current blood glucose level.": "Erreur. La calculatrice Hedia ne prend pas en charge votre glycémie actuelle.",
18
+ "Error. Hedia Calculator does not support your current blood glucose unit.": "Erreur. La calculatrice Hedia ne prend pas en charge votre unité de glycémie actuelle.",
19
+ "Error. Hedia Calculator does not support your current blood ketone level.": "Erreur. La calculatrice Hedia ne prend pas en charge votre taux de cétonémie actuel.",
20
+ "Error. Hedia Calculator does not support your current blood ketone unit.": "Erreur. La calculatrice Hedia ne prend pas en charge votre unité de cétonémie actuelle.",
21
+ "Error. Hedia Calculator does not support your current language.": "Erreur. La calculatrice Hedia ne prend pas en charge votre langue actuelle.",
22
+ "Error. Hedia Calculator does not support your injection method.": "Erreur. La calculatrice Hedia ne prend pas en charge votre méthode d’injection.",
23
+ "Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.": "Erreur. La calculatrice Hedia ne prend en charge que des activités d’une durée maximale de 60 minutes.",
24
+ "Error. Please verify that your activity settings are set up correctly.": "Erreur. Veuillez vérifier que vos paramètres d’activité sont correctement paramétrés.",
25
+ "Error. Please verify that your activity target blood glucose value is correct.": "Erreur. Veuillez vérifier que votre glycémie désirée pendant l’activité est correct.",
26
+ "Error. Please verify that your insulin sensitivity value is correct.": "Erreur. Veuillez vérifier que votre valeur de sensibilité à l’insuline est correcte.",
27
+ "Error. Please verify that your insulin to carb ratio value is correct.": "Erreur. Veuillez vérifier que votre valeur de rapport insuline/glucides est correcte.",
28
+ "Error. Please verify that your target blood glucose value is correct.": "Erreur. Veuillez vérifier que votre glycémie cible est correct.",
29
+ "Error. Please verify your notifications settings.": "Erreur. Veuillez vérifier vos paramètres de notification.",
30
+ "Food": "Aliments",
31
+ "grams": "grammes",
32
+ "grams of carbohydrates": "grammes de glucides",
33
+ "Hard": "Difficile",
34
+ "Have you taken insulin within the last 4 hours?": "Avez-vous pris de l’insuline au cours des 4 dernières heures ?",
35
+ "Hedia Calculator does not support activities that finished more than 4 hours ago.": "La calculatrice Hedia ne prend pas en charge des activités terminées il y a plus de 4 heures.",
36
+ "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’insuline avec plus de 300 grammes de glucides présents.",
37
+ "Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.": "Hedia ne prend pas en charge plus de {SAFETY_INSULIN_LIMIT} unités d’insuline par calcul.",
38
+ "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.": "Hedia ne prend pas en charge plus de {SAFETY_INSULIN_LIMIT} unités d’insuline par calcul, mais en raison de l’activité physique que vous avez saisie, ce chiffre a été encore réduit de {0} % à {1} unités pour ce calcul.",
39
+ "hours": "heures",
40
+ "How are you feeling?": "Comment vous sentez-vous ?",
41
+ "If it is possible, postpone your planned exercise.": "Si possible, reportez votre activité prévu.",
42
+ "Instead of taking insulin": "Au lieu de prendre de l’insuline",
43
+ "INSULIN{0}RECOMMENDATION": "RECOMMANDATION{0}D’INSULINE",
44
+ "Light": "Légère",
45
+ "min": "min",
46
+ "Moderate": "Modérée",
47
+ "More than 15 minutes has passed since this calculation was started.": "Plus de 15 minutes se sont écoulées depuis le début de ce calcul.",
48
+ "NO": "NON",
49
+ "No": "Non",
50
+ "No, return to dashboard": "Non, retour au tableau de bord",
51
+ "OFF": "DÉSACTIVÉ",
52
+ "OK": "OK",
53
+ "Please go through the calculation steps with new measurements to ensure a safe recommendation.": "Veuillez suivre les étapes de calcul avec de nouvelles mesures pour vous assurer d’obtenir une recommandation sûre.",
54
+ "Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?": "La recommandation du {day} à {time} n’a pas été transférée à votre journal de bord.{0}Avez-vous suivi la recommandation ?",
55
+ "Recommended": "Recommandé",
56
+ "Recommended amount of insulin": "Dose recommandée d’insuline",
57
+ "Remind me to remeasure in": "Rappelez-moi de mesurer ma glycémie dans",
58
+ "Return to dashboard": "Retour au tableau de bord",
59
+ "Save data before closing?": "Enregistrer les données avant de fermer ?",
60
+ "Save to logbook": "Enregistrer dans le journal de bord",
61
+ "Start new calculation": "Commencer un nouveau calcul",
62
+ "Total": "Total",
63
+ "Transfer to logbook": "Transfert au journal de bord",
64
+ "Transferred to logbook": "Transféré au journal de bord",
65
+ "Units": "Unités",
66
+ "units": "unités",
67
+ "Untitled Activity": "Activité sans titre",
68
+ "We recommend eating an additional:": "Nous vous recommandons de manger en plus :",
69
+ "Would you like to add this to your current calculation?": "Souhaitez-vous ajouter cela à votre calcul actuel ?",
70
+ "Yes": "Oui",
71
+ "Yes, save to logbook": "Oui, enregistrer dans le journal de bord",
72
+ "You have a high blood glucose level.": "Vous avez une valeur de glycémie élevée.",
73
+ "You should take rapid-acting insulin and measure ketones.": "Vous devriez prendre de l’insuline à action rapide et mesurer les cétones.",
74
+ "You will be reminded to measure your blood glucose level in 15 min.": "Il vous sera rappelé de mesurer votre valeur de glycémie dans 15 mn.",
75
+ "Your blood glucose level is very low.": "Votre valeur de glycémie est très faible.",
76
+ "Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.": "Votre valeur de glycémie est très faible. Prenez du glucagon ou mangez des glucides si possible. Consultez un médecin.",
77
+ "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}.": "Votre recommandation aurait été supérieure à {0} unités d’insuline, mais elle a été limitée pour des raisons de sécurité.{1} Hedia ne recommande jamais plus de {SAFETY_INSULIN_LIMIT} unités d’insuline par calcul, mais en raison de l’activité physique saisie, elle a été réduite de {2}% à {3}.",
78
+ "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.": "Votre recommandation aurait été supérieure à {SAFETY_INSULIN_LIMIT} unités d’insuline, mais elle a été limitée pour des raisons de sécurité. Hedia ne recommande jamais plus de {SAFETY_INSULIN_LIMIT} unités d’insuline par calcul.",
79
+ "Your saved data will be used for future calculations.": "Vos données enregistrées seront utilisées pour des calculs ultérieurs."
80
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "Active Insulin": "Insulina attiva",
3
+ "Activity": "Attività fisica",
4
+ "Additional": "Ulteriori",
5
+ "Attention": "Attenzione",
6
+ "Based on the selected activity your insulin recommendation is reduced by:": "In base all'attività selezionata, la prescrizione per l'insulina è ridotta di:",
7
+ "Blood Glucose Level": "Indice glicemico",
8
+ "Blood Ketone Level": "Livello di chetoni nel sangue",
9
+ "Carbohydrates": "Carboidrati",
10
+ "Close calculation": "Chiudi calcolo",
11
+ "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à fisica prima che il livello di glucosio nel sangue non sia rientrato negli intervalli raccomandati prima dell'attività fisica.",
12
+ "Entered": "Inserito",
13
+ "Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units": "Errore. Hedia Calculator non supporta una dose di insulina superiore a {SAFETY_INSULIN_LIMIT} unità",
14
+ "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ù vecchi di 4 ore",
15
+ "Error. Hedia Calculator does not support your activity intensity value": "Errore. Hedia Calculator non supporta il valore dell'intensità dell'attività",
16
+ "Error. Hedia Calculator does not support your activity type value": "Errore. Hedia Calculator non supporta il valore del tipo di attività",
17
+ "Error. Hedia Calculator does not support your current blood glucose level.": "Errore. Hedia Calculator non supporta la tua glicemia attuale.",
18
+ "Error. Hedia Calculator does not support your current blood glucose unit.": "Errore. Hedia Calculator non supporta l'attuale unità misura di glucosio nel sangue.",
19
+ "Error. Hedia Calculator does not support your current blood ketone level.": "Errore. Hedia Calculator non supporta l'attuale livello di chetoni nel sangue.",
20
+ "Error. Hedia Calculator does not support your current blood ketone unit.": "Errore. Hedia Calculator non supporta l'attuale unità di misura di chetoni del sangue.",
21
+ "Error. Hedia Calculator does not support your current language.": "Errore. Hedia Calculator non supporta la lingua corrente.",
22
+ "Error. Hedia Calculator does not support your injection method.": "Errore. Hedia Calculator non supporta il metodo di iniezione.",
23
+ "Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.": "Errore. Hedia Calculator supporta solo attività della durata massima di 60 minuti.",
24
+ "Error. Please verify that your activity settings are set up correctly.": "Errore. Verificare che le impostazioni delle attività siano impostate correttamente.",
25
+ "Error. Please verify that your activity target blood glucose value is correct.": "Errore. Verificare che il indice glicemico desiderato durante l’attività sia corretto.",
26
+ "Error. Please verify that your insulin sensitivity value is correct.": "Errore. Verificare che il valore della sensibilità all'insulina sia corretto.",
27
+ "Error. Please verify that your insulin to carb ratio value is correct.": "Errore. Verificare che il valore del rapporto insulina/carboidrati sia corretto.",
28
+ "Error. Please verify that your target blood glucose value is correct.": "Errore. Verificare che il valore obiettivo della glicemia sia corretto.",
29
+ "Error. Please verify your notifications settings.": "Errore. Verificare le impostazioni di notifica.",
30
+ "Food": "Cibo",
31
+ "grams": "grammi",
32
+ "grams of carbohydrates": "grammi di carboidrati",
33
+ "Hard": "Intensa",
34
+ "Have you taken insulin within the last 4 hours?": "Hai assunto insulina nelle ultime 4 ore?",
35
+ "Hedia Calculator does not support activities that finished more than 4 hours ago.": "Hedia Calculator non supporta attività che siano terminate più di 4 ore fa.",
36
+ "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ù di 300 grammi di carboidrati presenti.",
37
+ "Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.": "Hedia non supporta più di {SAFETY_INSULIN_LIMIT} unità di insulina per ogni calcolo.",
38
+ "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.": "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.",
39
+ "hours": "ore",
40
+ "How are you feeling?": "Come ti senti?",
41
+ "If it is possible, postpone your planned exercise.": "Se possibile, posticipa l'allenamento pianificato.",
42
+ "Instead of taking insulin": "Invece di assumere insulina",
43
+ "INSULIN{0}RECOMMENDATION": "PRESCRIZIONE DI{0}INSULINA",
44
+ "Light": "Leggera",
45
+ "min": "min",
46
+ "Moderate": "Moderata",
47
+ "More than 15 minutes has passed since this calculation was started.": "Sono passati più di 15 minuti dall'inizio di questo calcolo.",
48
+ "NO": "NO",
49
+ "No": "No",
50
+ "No, return to dashboard": "No, torna al pannello di controllo",
51
+ "OFF": "SPENTO",
52
+ "OK": "OK",
53
+ "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.",
54
+ "Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?": "La prescrizione del {day} alle {time} non è stata trasferita nel tuo diario.{0} Hai usato la prescrizione?",
55
+ "Recommended": "Prescritta",
56
+ "Recommended amount of insulin": "Quantità prescritta di insulina",
57
+ "Remind me to remeasure in": "Ricordami di misurare nuovamente tra",
58
+ "Return to dashboard": "Torna al pannello di controllo",
59
+ "Save data before closing?": "Salvare i dati prima della chiusura?",
60
+ "Save to logbook": "Salva nel diario",
61
+ "Start new calculation": "Inizia il nuovo calcolo",
62
+ "Total": "Totale",
63
+ "Transfer to logbook": "Trasferisci al diario",
64
+ "Transferred to logbook": "Trasferito al diario",
65
+ "Units": "Unità",
66
+ "units": "unità",
67
+ "Untitled Activity": "Attività senza titolo",
68
+ "We recommend eating an additional:": "Consigliamo di ingerire una quantità supplementare:",
69
+ "Would you like to add this to your current calculation?": "Vuoi aggiungere questo al tuo calcolo corrente?",
70
+ "Yes": "Sì",
71
+ "Yes, save to logbook": "Sì, salva nel diario",
72
+ "You have a high blood glucose level.": "Hai un alto indice glicemico.",
73
+ "You should take rapid-acting insulin and measure ketones.": "Devi assumere insulina ad azione rapida e misurare i chetoni.",
74
+ "You will be reminded to measure your blood glucose level in 15 min.": "Ti verrà ricordato di misurare il indice glicemico tra 15 min.",
75
+ "Your blood glucose level is very low.": "Il indice glicemico è molto basso.",
76
+ "Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.": "Il indice glicemico è molto basso. Assumi glucagon o ingerisci carboidrati, se possibile. Rivolgiti a un medico.",
77
+ "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}.": "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}.",
78
+ "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.": "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.",
79
+ "Your saved data will be used for future calculations.": "I dati salvati saranno utilizzati per calcoli futuri."
80
+ }
@@ -0,0 +1,18 @@
1
+ import "moment/min/locales";
2
+ import { Languages } from "@hedia/types";
3
+ /**
4
+ * Change the language that is used to display text on the recommendation screen.
5
+ *
6
+ * Steps:
7
+ * 1. Set the locale for the date-time library
8
+ * 2. Load the desired language in the memory
9
+ * @param language The language to switch to.
10
+ */
11
+ export declare const changeLocale: (language: keyof typeof Languages) => void;
12
+ /**
13
+ * Get the translation in the language that was initialised by the changeLocale function.
14
+ *
15
+ * @param textKeys The key for the desired translation.
16
+ * @param values The parameters to be introduced in the translations.
17
+ */
18
+ export declare const translate: (textKeys: string, values?: Record<string, unknown>) => string;
@@ -0,0 +1,51 @@
1
+ import "moment/min/locales";
2
+ import moment from "moment";
3
+ /** Internalisation object containing the translations. Call changeLanguage in order to change the language. */
4
+ const languageMap = {
5
+ da: require(`./da/messages.json`),
6
+ en: require(`./en/messages.json`),
7
+ de: require(`./de/messages.json`),
8
+ es: require(`./es/messages.json`),
9
+ fr: require(`./fr/messages.json`),
10
+ it: require(`./it/messages.json`),
11
+ };
12
+ let toLocaleTexts;
13
+ /**
14
+ * Change the language that is used to display text on the recommendation screen.
15
+ *
16
+ * Steps:
17
+ * 1. Set the locale for the date-time library
18
+ * 2. Load the desired language in the memory
19
+ * @param language The language to switch to.
20
+ */
21
+ export const changeLocale = (language) => {
22
+ moment.locale(language === `en` ? `en-gb` : language);
23
+ toLocaleTexts = languageMap[language];
24
+ };
25
+ /**
26
+ * Get the translation in the language that was initialised by the changeLocale function.
27
+ *
28
+ * @param textKeys The key for the desired translation.
29
+ * @param values The parameters to be introduced in the translations.
30
+ */
31
+ export const translate = (textKeys, values) => {
32
+ const englishTexts = languageMap[`en`];
33
+ const englishText = englishTexts[textKeys];
34
+ const translatedText = toLocaleTexts?.[textKeys];
35
+ if (!englishText && !translatedText) {
36
+ console.warn(`No text/key with value ${textKeys} was found`);
37
+ return textKeys;
38
+ }
39
+ if (!values) {
40
+ return translatedText ?? englishText;
41
+ }
42
+ let translatedTextWithValues = translatedText;
43
+ let englishTextsWithValues = englishText;
44
+ const valuesKeys = Object.keys(values);
45
+ for (const k of valuesKeys) {
46
+ translatedTextWithValues = translatedTextWithValues?.replaceAll(`{${k}}`, `${values[k]}`);
47
+ englishTextsWithValues = englishTextsWithValues.replaceAll(`{${k}}`, `${values[k]}`);
48
+ }
49
+ return translatedTextWithValues ?? englishTextsWithValues;
50
+ };
51
+ //# sourceMappingURL=translate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translate.js","sourceRoot":"","sources":["../../../src/locales/translate.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAE5B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAI5B,+GAA+G;AAC/G,MAAM,WAAW,GAA2D;IAC3E,EAAE,EAAE,OAAO,CAAC,oBAAoB,CAAC;IACjC,EAAE,EAAE,OAAO,CAAC,oBAAoB,CAAC;IACjC,EAAE,EAAE,OAAO,CAAC,oBAAoB,CAAC;IACjC,EAAE,EAAE,OAAO,CAAC,oBAAoB,CAAC;IACjC,EAAE,EAAE,OAAO,CAAC,oBAAoB,CAAC;IACjC,EAAE,EAAE,OAAO,CAAC,oBAAoB,CAAC;CACjC,CAAC;AACF,IAAI,aAAqC,CAAC;AAE1C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,QAAgC,EAAE,EAAE;IAChE,MAAM,CAAC,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IACtD,aAAa,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAgB,EAAE,MAAgC,EAAE,EAAE;IAC/E,MAAM,YAAY,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACvC,MAAM,WAAW,GAAW,YAAY,CAAC,QAAQ,CAAC,CAAC;IACnD,MAAM,cAAc,GAAW,aAAa,EAAE,CAAC,QAAQ,CAAC,CAAC;IAEzD,IAAI,CAAC,WAAW,IAAI,CAAC,cAAc,EAAE;QACpC,OAAO,CAAC,IAAI,CAAC,0BAA0B,QAAQ,YAAY,CAAC,CAAC;QAC7D,OAAO,QAAQ,CAAC;KAChB;IAED,IAAI,CAAC,MAAM,EAAE;QACZ,OAAO,cAAc,IAAI,WAAW,CAAC;KACrC;IAED,IAAI,wBAAwB,GAAG,cAAc,CAAC;IAC9C,IAAI,sBAAsB,GAAG,WAAW,CAAC;IACzC,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvC,KAAK,MAAM,CAAC,IAAI,UAAU,EAAE;QAC3B,wBAAwB,GAAG,wBAAwB,EAAE,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC1F,sBAAsB,GAAG,sBAAsB,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;KACrF;IACD,OAAO,wBAAwB,IAAI,sBAAsB,CAAC;AAC3D,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-namespace */
1
2
  /** Namespace containing data required by component testing */
2
3
  export var Testing;
3
4
  (function (Testing) {
@@ -140,3 +141,4 @@ export var RecommendationReminders;
140
141
  RecommendationReminders[RecommendationReminders["Reminder60Minutes"] = 1] = "Reminder60Minutes";
141
142
  RecommendationReminders[RecommendationReminders["HediaReminderDefault"] = 1.5] = "HediaReminderDefault";
142
143
  })(RecommendationReminders || (RecommendationReminders = {}));
144
+ //# sourceMappingURL=enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/types/enum.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,8DAA8D;AAC9D,MAAM,KAAW,OAAO,CAqGvB;AArGD,WAAiB,OAAO;IACvB,uHAAuH;IACvH,IAAiB,EAAE,CAgFlB;IAhFD,WAAiB,EAAE;QAClB,IAAY,2BAEX;QAFD,WAAY,2BAA2B;YACtC,6FAA8D,CAAA;QAC/D,CAAC,EAFW,2BAA2B,GAA3B,8BAA2B,KAA3B,8BAA2B,QAEtC;QAED,IAAY,eAGX;QAHD,WAAY,eAAe;YAC1B,iEAA8C,CAAA;YAC9C,sEAAmD,CAAA;QACpD,CAAC,EAHW,eAAe,GAAf,kBAAe,KAAf,kBAAe,QAG1B;QAED,IAAY,aAGX;QAHD,WAAY,aAAa;YACxB,4DAA2C,CAAA;YAC3C,2CAA0B,CAAA;QAC3B,CAAC,EAHW,aAAa,GAAb,gBAAa,KAAb,gBAAa,QAGxB;QAED,IAAY,wBAEX;QAFD,WAAY,wBAAwB;YACnC,qEAAyC,CAAA;QAC1C,CAAC,EAFW,wBAAwB,GAAxB,2BAAwB,KAAxB,2BAAwB,QAEnC;QAED,IAAY,oBAGX;QAHD,WAAY,oBAAoB;YAC/B,gDAAwB,CAAA;YACxB,kDAA0B,CAAA;QAC3B,CAAC,EAHW,oBAAoB,GAApB,uBAAoB,KAApB,uBAAoB,QAG/B;QAED,IAAY,uBAOX;QAPD,WAAY,uBAAuB;YAClC,iEAAsC,CAAA;YACtC,0EAA+C,CAAA;YAC/C,mFAAwD,CAAA;YACxD,yDAA8B,CAAA;YAC9B,8EAAmD,CAAA;YACnD,qDAA0B,CAAA;QAC3B,CAAC,EAPW,uBAAuB,GAAvB,0BAAuB,KAAvB,0BAAuB,QAOlC;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+FAAqB,CAAA;IACrB,uGAA0B,CAAA;AAC3B,CAAC,EALW,uBAAuB,KAAvB,uBAAuB,QAKlC"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/types/types.ts"],"names":[],"mappings":""}
@@ -1,7 +1,6 @@
1
- import { BolusCalculator } from "@hedia/types";
2
- import { t } from "@lingui/macro";
3
1
  import moment from "moment";
4
- import { i18n } from "../locale/i18nUtils";
2
+ import { BolusCalculator } from "@hedia/types";
3
+ import { translate } from "../locales/translate";
5
4
  /** Provides methods for getting variants of attention messages */
6
5
  export const AttentionMessage = {
7
6
  /**
@@ -74,45 +73,51 @@ export function getLimitedValue(reduction) {
74
73
  /** Provides methods for getting strings for composing attention messages and other important communications to the user. */
75
74
  export class Messages {
76
75
  /** Inform the user that their BGL is very low and what they should do about it. */
77
- static VeryLowBGL = () => i18n._(t `Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.`);
76
+ static VeryLowBGL = () => translate(`Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.`);
78
77
  /** Inform the user that their BGL is very low. */
79
- static LowBGL = () => i18n._(t `Your blood glucose level is very low.`);
78
+ static LowBGL = () => translate(`Your blood glucose level is very low.`);
80
79
  /** Inform the user that they will be reminded to remeasure their BGL soon. */
81
- static Reminder15Minutes = () => i18n._(t `You will be reminded to measure your blood glucose level in 15 min.`);
80
+ static Reminder15Minutes = () => translate(`You will be reminded to measure your blood glucose level in 15 min.`);
82
81
  /** Encourages the user to postpone exercise. Specifically when their BGL is high. */
83
- static PostponePhysicalActivity = () => i18n._(t `If it is possible, postpone your planned exercise.`);
82
+ static PostponePhysicalActivity = () => translate(`If it is possible, postpone your planned exercise.`);
84
83
  /** Encourages the user to postpone exercise. Specifically when their BGL is low. */
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.`);
84
+ static PostponePhysicalActivityUnder5MMOL = () => translate(`Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.`);
86
85
  /** Inform about high BGL. */
87
- static HighBGL = () => i18n._(t `You have a high blood glucose level.`);
86
+ static HighBGL = () => translate(`You have a high blood glucose level.`);
88
87
  /** Encourage user to measure ketones. */
89
- static InsulinKetones = () => i18n._(t `You should take rapid-acting insulin and measure ketones.`);
88
+ static InsulinKetones = () => translate(`You should take rapid-acting insulin and measure ketones.`);
90
89
  /** Inform the user that their insulin recommendation was limited for safety. */
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.`);
90
+ static RecommendationWasLimited = () => translate(`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 });
93
91
  /** Inform the user that their insulin recommendation was limited for safety in combination with an activity. */
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)}.`);
92
+ static RecommendationWasLimitedActivity = (activityReduction) => translate(`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
+ });
100
99
  /** Inform the user that the insulin amount they entered is above HDA’s safety limit. */
101
100
  static InsulinInputWasLimited = (activityReduction) => activityReduction
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.`);
101
+ ? translate(`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
+ : translate(`Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.`, {
107
+ SAFETY_INSULIN_LIMIT,
108
+ });
105
109
  /** Title for the modal that informs the user that their calculation is too old. */
106
- static TimeoutPrompTitle = () => i18n._(t `More than 15 minutes has passed since this calculation was started.`);
110
+ static TimeoutPrompTitle = () => translate(`More than 15 minutes has passed since this calculation was started.`);
107
111
  /**
108
112
  * Inform the user that their recommendation calculation is too old.
109
113
  * Variant to show when they didn’t see the actual insulin recommendation because they didn’t tell whether they injected insulin recently.
110
114
  */
111
- static TimeoutRecommendationNotVisible = () => i18n._(t `Please go through the calculation steps with new measurements to ensure a safe recommendation.`);
115
+ static TimeoutRecommendationNotVisible = () => translate(`Please go through the calculation steps with new measurements to ensure a safe recommendation.`);
112
116
  /** Inform the user that their recommendation calculation is too old. */
113
117
  static TimeoutRecommendationVisible = (date) => {
114
118
  const day = moment(date).format(`LL`);
115
119
  const time = moment(date).format(`HH:mm`);
116
- return i18n._(t `Recommendation from ${day} at ${time} was not transfered to your logbook.${`\n`}Did you use the recommendation?`);
120
+ return translate(`Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?`, { day, time, 0: `\n` });
117
121
  };
118
122
  }
123
+ //# sourceMappingURL=AttentionMessages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttentionMessages.js","sourceRoot":"","sources":["../../../src/utils/AttentionMessages.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,kEAAkE;AAClE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B;;;;OAIG;IACH,kBAAkB,EAAE,GAAW,EAAE,CAAC,GAAG,QAAQ,CAAC,UAAU,EAAE,GAAG,IAAI,GAAG,QAAQ,CAAC,iBAAiB,EAAE,EAAE;IAElG;;;;OAIG;IACH,YAAY,EAAE,GAAW,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,GAAG,IAAI,GAAG,QAAQ,CAAC,iBAAiB,EAAE,EAAE;IAExF,gEAAgE;IAChE,gBAAgB,EAAE,GAAW,EAAE,CAAC,QAAQ,CAAC,iBAAiB,EAAE;IAE5D,iFAAiF;IACjF,+BAA+B,EAAE,GAAW,EAAE,CAAC,QAAQ,CAAC,kCAAkC,EAAE;IAE5F;;;;;;OAMG;IACH,qBAAqB,EAAE,GAAW,EAAE,CACnC,GAAG,QAAQ,CAAC,OAAO,EAAE,GAAG,IAAI,GAAG,QAAQ,CAAC,cAAc,EAAE,GAAG,IAAI,GAAG,QAAQ,CAAC,iBAAiB,EAAE,GAAG,IAAI,GAAG,QAAQ,CAAC,wBAAwB,EAAE,EAAE;IAE9I;;;;OAIG;IACH,mBAAmB,EAAE,GAAW,EAAE,CAAC,GAAG,QAAQ,CAAC,OAAO,EAAE,GAAG,IAAI,GAAG,QAAQ,CAAC,cAAc,EAAE,GAAG,IAAI,EAAE;IAEpG;;;;;;O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G,GAAW,EAAE,CAC5D,SAAS,CAAC,gGAAgG,CAAC,CAAC;IAC7G,yEAAyE;IAClE,MAAM,CAAC,4BAA4B,GAAG,CAAC,IAAU,EAAU,EAAE;QACnE,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACtC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC1C,OAAO,SAAS,CACf,2GAA2G,EAC3G,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CACtB,CAAC;IACH,CAAC,CAAC"}
@@ -1,10 +1,29 @@
1
1
  import { IInterval } from "../types/types";
2
- /** Reusable color definition. */
3
- export declare const BACKGROUND_COLOUR_PURPLE = "rgba(27, 31, 72, 1)";
4
- /** Reusable color definition. */
5
- export declare const BORDER_COLOUR_GREY = "rgba(74, 91, 134, 1)";
6
- /** Reusable color definition. */
7
- export declare const BORDER_COLOUR_TEAL = "rgba(1, 255, 252, 0.8)";
2
+ /** Reusable color definitions. */
3
+ export declare const colors: {
4
+ blue: string;
5
+ darkBlue: string;
6
+ darkBlueX: string;
7
+ semiDarkBlue: string;
8
+ dustyBlue: string;
9
+ fadeBlue: string;
10
+ lightBlue: string;
11
+ mistBlue: string;
12
+ purple: string;
13
+ deepPurple: string;
14
+ teal: string;
15
+ gradientMain: string[];
16
+ gradientPurple: string[];
17
+ white: string;
18
+ black: string;
19
+ transparentWhite: string;
20
+ transparentBlack: string;
21
+ transparentDarkBlue: string;
22
+ transparentLightBlue: string;
23
+ activityGreen: string;
24
+ activityOrange: string;
25
+ activityRed: string;
26
+ };
8
27
  /** The threshold above which hyperglycemia is considered to be severe in mmol/L */
9
28
  export declare const SEVERE_HYPERGLYCEMIA_START_MMOL = 15;
10
29
  /** The number of seconds in four hours. */
@@ -28,13 +47,13 @@ export declare const INSULIN_TO_CARBS_RATIO_LIMITS: IInterval;
28
47
  /** The lower and upper limits of the entered blood glucose level value in mmol/L. */
29
48
  export declare const CURRENT_BGL_MMOL_LIMITS: IInterval;
30
49
  /** The conversion factor to multiply a blood glucose value with to go from mmol/L to mg/dL. */
31
- export declare const MMOLL_PER_MGDL_BGL: number;
50
+ export declare const MMOLL_PER_MGDL_BGL = 0.0555;
32
51
  /** The conversion factor to multiply a blood glucose value with to go from mg/dL to mmol/L. */
33
52
  export declare const MGDL_PER_MMOLL_BGL: number;
34
53
  /** The lower and upper limits of the entered blood ketones value in mmol/L. */
35
54
  export declare const CURRENT_BKL_MMOL_LIMITS: IInterval;
36
55
  /** The conversion factor to multiply a blood ketones value with to go from mmol/L to mg/dL. */
37
- export declare const MMOLL_PER_MGDL_BKL: number;
56
+ export declare const MMOLL_PER_MGDL_BKL = 0.096;
38
57
  /** The conversion factor to multiply a blood ketones value with to go from mg/dL to mmol/L. */
39
58
  export declare const MGDL_PER_MMOLL_BKL: number;
40
59
  /** The lower and upper limits for a valid BGL target in mmol/L. */