@hedia/recommendation-screen 1.5.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/workspace.xml +118 -189
- package/package.json +2 -1
- package/src/RecommendationScreen.d.ts +6 -3
- package/src/RecommendationScreen.jsx +8 -6
- package/src/RecommendationScreen.tsx +32 -9
- package/src/components/InfoBars.d.ts +4 -1
- package/src/components/InfoBars.jsx +19 -3
- package/src/components/InfoBars.tsx +19 -4
- package/src/locale/da/messages.js +1 -1
- package/src/locale/da/messages.po +30 -18
- package/src/locale/en/messages.js +1 -1
- package/src/locale/en/messages.po +30 -18
- package/src/types/enum.d.ts +7 -9
- package/src/types/enum.js +8 -11
- package/src/types/enum.ts +3 -6
- package/src/utils/Constants.d.ts +5 -2
- package/src/utils/Constants.js +6 -3
- package/src/utils/Constants.ts +6 -2
- package/src/utils/RecommendationError.d.ts +3 -1
- package/src/utils/RecommendationError.jsx +4 -2
- package/src/utils/RecommendationError.tsx +12 -2
- package/src/utils/Utils.d.ts +6 -1
- package/src/utils/Utils.js +17 -2
- package/src/utils/Utils.ts +21 -3
- package/src/utils/Validations.d.ts +5 -2
- package/src/utils/Validations.js +28 -7
- package/src/utils/Validations.ts +32 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AppState, AppStateStatus, ScrollView, StyleSheet, View, YellowBox } from "react-native";
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { InjectionMethod, Language, Milliseconds, MoodEnum } from "./types/enum";
|
|
5
5
|
import { BACKGROUND_COLOUR_PURPLE, BORDER_COLOUR_GREY, BORDER_COLOUR_TEAL } from "./utils/Constants";
|
|
6
6
|
|
|
7
7
|
import Header, { headerStyles } from "./components/Header";
|
|
@@ -12,6 +12,7 @@ import RecommendedInsulin from "./components/RecommendedInsulin";
|
|
|
12
12
|
import Remeasure from "./components/Remeasure";
|
|
13
13
|
|
|
14
14
|
import * as Calculator from "@hedia/recommendation-calculator";
|
|
15
|
+
import { BloodGlucoseUnit, BloodKetonesUnit } from "@hedia/types";
|
|
15
16
|
import { I18nProvider } from "@lingui/react";
|
|
16
17
|
import Emotion from "./components/mood/Emotion";
|
|
17
18
|
import TransferToLogbook from "./components/TransferToLogbook";
|
|
@@ -41,11 +42,13 @@ interface IResult {
|
|
|
41
42
|
|
|
42
43
|
export interface IRecommendationProps {
|
|
43
44
|
// Values
|
|
44
|
-
|
|
45
|
+
bloodGlucoseUnit: BloodGlucoseUnit;
|
|
45
46
|
language: Language;
|
|
46
47
|
userReminder: number;
|
|
47
48
|
calculatorParams: Calculator.IRecommendationParams;
|
|
48
49
|
injectionMethod: InjectionMethod;
|
|
50
|
+
currentBKL: number;
|
|
51
|
+
bloodKetoneUnit: BloodKetonesUnit;
|
|
49
52
|
latestLogbookFrom6Hours: logbookEntry;
|
|
50
53
|
activityDisplayProps: IActivityDisplayProps;
|
|
51
54
|
|
|
@@ -54,7 +57,13 @@ export interface IRecommendationProps {
|
|
|
54
57
|
closeCalculationCallback(): void;
|
|
55
58
|
exitCallback(): void;
|
|
56
59
|
onRecentInsulinYes(): void;
|
|
57
|
-
transferToLogbook(
|
|
60
|
+
transferToLogbook(
|
|
61
|
+
carbs: IResult,
|
|
62
|
+
insulin: IResult,
|
|
63
|
+
reminder: number,
|
|
64
|
+
recommendationDate: Date,
|
|
65
|
+
mood: MoodEnum,
|
|
66
|
+
): void;
|
|
58
67
|
onError(error: RecommendationError): void;
|
|
59
68
|
showBolusBar(toggle: boolean): void;
|
|
60
69
|
restartCalculation(): void;
|
|
@@ -228,12 +237,19 @@ export default class RecommendationScreen extends React.Component<IRecommendatio
|
|
|
228
237
|
};
|
|
229
238
|
|
|
230
239
|
public handleTransfer = (): void => {
|
|
231
|
-
const {
|
|
240
|
+
const {
|
|
241
|
+
enteredCarbs,
|
|
242
|
+
enteredInsulin,
|
|
243
|
+
insulinRecommendation,
|
|
244
|
+
remeasureTime,
|
|
245
|
+
showExitModal,
|
|
246
|
+
selectedMood,
|
|
247
|
+
} = this.state;
|
|
232
248
|
const carbs: IResult = { suggested: this.suggestedCarbs, entered: enteredCarbs };
|
|
233
249
|
const insulin: IResult = { suggested: insulinRecommendation, entered: enteredInsulin };
|
|
234
250
|
|
|
235
251
|
showExitModal ? this.hideExitModal() : this.hideTimeoutModal();
|
|
236
|
-
this.props.transferToLogbook(carbs, insulin, remeasureTime, this.recommendationDate);
|
|
252
|
+
this.props.transferToLogbook(carbs, insulin, remeasureTime, this.recommendationDate, selectedMood);
|
|
237
253
|
};
|
|
238
254
|
|
|
239
255
|
public getBGLevelAttentionMessage = (): AttentionMessage => {
|
|
@@ -270,9 +286,10 @@ export default class RecommendationScreen extends React.Component<IRecommendatio
|
|
|
270
286
|
activityReduction,
|
|
271
287
|
isRecommendationDisplayed,
|
|
272
288
|
} = this.state;
|
|
273
|
-
const { calculatorParams,
|
|
289
|
+
const { calculatorParams, bloodGlucoseUnit, currentBKL, bloodKetoneUnit } = this.props;
|
|
274
290
|
const { currentBGL, carbohydrates } = calculatorParams;
|
|
275
|
-
const displayedBGL =
|
|
291
|
+
const displayedBGL = Utils.displayedBGLValue(currentBGL, bloodGlucoseUnit);
|
|
292
|
+
const displayedBKL = Utils.displayedBKLValue(currentBKL, bloodKetoneUnit);
|
|
276
293
|
|
|
277
294
|
return (
|
|
278
295
|
<I18nProvider language={this.props.language} i18n={i18n}>
|
|
@@ -281,13 +298,19 @@ export default class RecommendationScreen extends React.Component<IRecommendatio
|
|
|
281
298
|
<InfoBars
|
|
282
299
|
label={i18n._(t`Active Insulin`)}
|
|
283
300
|
value={activeInsulin ? `${activeInsulin.toFixed(1)}` : null}
|
|
284
|
-
|
|
301
|
+
unit={i18n._(t`units`)}
|
|
285
302
|
showNullAsDash={false}
|
|
286
303
|
/>
|
|
287
304
|
<InfoBars
|
|
288
305
|
label={i18n._(t`Blood Glucose Level`)}
|
|
289
306
|
value={currentBGL ? `${displayedBGL}` : null}
|
|
290
|
-
|
|
307
|
+
unit={this.props.bloodGlucoseUnit}
|
|
308
|
+
showNullAsDash={true}
|
|
309
|
+
/>
|
|
310
|
+
<InfoBars
|
|
311
|
+
label={i18n._(t`Blood Ketone Level`)}
|
|
312
|
+
value={currentBKL ? `${displayedBKL}` : null}
|
|
313
|
+
unit={this.props.bloodKetoneUnit}
|
|
291
314
|
showNullAsDash={true}
|
|
292
315
|
/>
|
|
293
316
|
<View style={containerStyles.calcContainer}>
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { BloodGlucoseUnit, BloodKetonesUnit } from "@hedia/types";
|
|
1
2
|
import React from "react";
|
|
2
3
|
export interface IProps {
|
|
3
4
|
label: string;
|
|
4
5
|
value?: string;
|
|
5
|
-
|
|
6
|
+
unit: string | BloodGlucoseUnit | BloodKetonesUnit;
|
|
6
7
|
showNullAsDash: boolean;
|
|
7
8
|
}
|
|
8
9
|
export default class InfoBars extends React.Component<IProps> {
|
|
10
|
+
displayValue: () => string;
|
|
11
|
+
displayUnit: () => string;
|
|
9
12
|
render(): JSX.Element;
|
|
10
13
|
}
|
|
11
14
|
export declare const infoStyles: {
|
|
@@ -4,13 +4,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.infoStyles = void 0;
|
|
7
|
+
const types_1 = require("@hedia/types");
|
|
8
|
+
const macro_1 = require("@lingui/macro");
|
|
7
9
|
const react_1 = __importDefault(require("react"));
|
|
8
10
|
const react_native_1 = require("react-native");
|
|
11
|
+
const i18nUtils_1 = require("../locale/i18nUtils");
|
|
9
12
|
const Constants_1 = require("../utils/Constants");
|
|
13
|
+
const Utils_1 = require("../utils/Utils");
|
|
10
14
|
const Header_1 = require("./Header");
|
|
11
15
|
class InfoBars extends react_1.default.Component {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.displayValue = () => {
|
|
19
|
+
const { showNullAsDash, unit, value } = this.props;
|
|
20
|
+
const noDecimal = unit === types_1.BloodGlucoseUnit.MG_DL || unit === types_1.BloodKetonesUnit.MG_DL;
|
|
21
|
+
const nullPlaceholder = noDecimal ? `-` : `-.-`;
|
|
22
|
+
return value ?? (showNullAsDash ? nullPlaceholder : `0`);
|
|
23
|
+
};
|
|
24
|
+
this.displayUnit = () => {
|
|
25
|
+
const { unit } = this.props;
|
|
26
|
+
return unit === i18nUtils_1.i18n._(macro_1.t `units`) ? unit : Utils_1.Utils.formatUnit(unit);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
12
29
|
render() {
|
|
13
|
-
const displayedValue = this.props.value ?? (this.props.showNullAsDash ? `-.-` : `0`);
|
|
14
30
|
return (<react_native_1.View style={exports.infoStyles.container}>
|
|
15
31
|
<react_native_1.View style={exports.infoStyles.margin}>
|
|
16
32
|
<react_native_1.View style={exports.infoStyles.border}>
|
|
@@ -20,10 +36,10 @@ class InfoBars extends react_1.default.Component {
|
|
|
20
36
|
</react_native_1.View>
|
|
21
37
|
<react_native_1.View style={exports.infoStyles.valueUnitContainer}>
|
|
22
38
|
<react_native_1.View style={exports.infoStyles.valueContainer}>
|
|
23
|
-
<react_native_1.Text style={exports.infoStyles.value}>{
|
|
39
|
+
<react_native_1.Text style={exports.infoStyles.value}>{this.displayValue()}</react_native_1.Text>
|
|
24
40
|
</react_native_1.View>
|
|
25
41
|
<react_native_1.View style={exports.infoStyles.unitContainer}>
|
|
26
|
-
<react_native_1.Text style={exports.infoStyles.units}>{this.
|
|
42
|
+
<react_native_1.Text style={exports.infoStyles.units}>{this.displayUnit()}</react_native_1.Text>
|
|
27
43
|
</react_native_1.View>
|
|
28
44
|
</react_native_1.View>
|
|
29
45
|
</react_native_1.View>
|
|
@@ -1,18 +1,33 @@
|
|
|
1
|
+
import { BloodGlucoseUnit, BloodKetonesUnit } from "@hedia/types";
|
|
2
|
+
import { t } from "@lingui/macro";
|
|
1
3
|
import React from "react";
|
|
2
4
|
import { Dimensions, StyleSheet, Text, View } from "react-native";
|
|
5
|
+
import { i18n } from "../locale/i18nUtils";
|
|
3
6
|
import { BORDER_COLOUR_GREY } from "../utils/Constants";
|
|
7
|
+
import { Utils } from "../utils/Utils";
|
|
4
8
|
import { headerStyles } from "./Header";
|
|
5
9
|
|
|
6
10
|
export interface IProps {
|
|
7
11
|
label: string;
|
|
8
12
|
value?: string;
|
|
9
|
-
|
|
13
|
+
unit: string | BloodGlucoseUnit | BloodKetonesUnit;
|
|
10
14
|
showNullAsDash: boolean;
|
|
11
15
|
}
|
|
12
16
|
|
|
13
17
|
export default class InfoBars extends React.Component<IProps> {
|
|
18
|
+
public displayValue = (): string => {
|
|
19
|
+
const { showNullAsDash, unit, value } = this.props;
|
|
20
|
+
const noDecimal = unit === BloodGlucoseUnit.MG_DL || unit === BloodKetonesUnit.MG_DL;
|
|
21
|
+
const nullPlaceholder = noDecimal ? `-` : `-.-`;
|
|
22
|
+
return value ?? (showNullAsDash ? nullPlaceholder : `0`);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
public displayUnit = (): string => {
|
|
26
|
+
const { unit } = this.props;
|
|
27
|
+
return unit === i18n._(t`units`) ? unit : Utils.formatUnit(unit as BloodGlucoseUnit | BloodKetonesUnit);
|
|
28
|
+
};
|
|
29
|
+
|
|
14
30
|
public render(): JSX.Element {
|
|
15
|
-
const displayedValue = this.props.value ?? (this.props.showNullAsDash ? `-.-` : `0`);
|
|
16
31
|
return (
|
|
17
32
|
<View style={infoStyles.container}>
|
|
18
33
|
<View style={infoStyles.margin}>
|
|
@@ -23,10 +38,10 @@ export default class InfoBars extends React.Component<IProps> {
|
|
|
23
38
|
</View>
|
|
24
39
|
<View style={infoStyles.valueUnitContainer}>
|
|
25
40
|
<View style={infoStyles.valueContainer}>
|
|
26
|
-
<Text style={infoStyles.value}>{
|
|
41
|
+
<Text style={infoStyles.value}>{this.displayValue()}</Text>
|
|
27
42
|
</View>
|
|
28
43
|
<View style={infoStyles.unitContainer}>
|
|
29
|
-
<Text style={infoStyles.units}>{this.
|
|
44
|
+
<Text style={infoStyles.units}>{this.displayUnit()}</Text>
|
|
30
45
|
</View>
|
|
31
46
|
</View>
|
|
32
47
|
</View>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),i=s[0],t0=Number(s[0])==n;if(ord)return"other";return n==1||!t0&&(i==0||i==1)?"one":"other"}},messages:{"Active Insulin":"Aktiv Insulin","Activity":"Aktivitet","Additional":"Supplerende","Attention":"OBS","Based on the selected activity your insulin recommendation is reduced by:":"Baseret p\xE5 din valgte aktivitet er din insulin anbefaling reduceret med:","Blood Glucose Level":"Blodsukkerniveau","Carbohydrates":"Kulhydrater","Close calculation":"Luk beregning","Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.":"Dit blodsukkerniveau ligger udenfor de anbefalede gr\xE6nser for blodsukker f\xF8r en aktivitet. Du b\xF8r overveje at udskyde fysisk aktivitet.","Entered":"Indtastet","Error. Hedia Calculator does not support an insulin dose greater than {0} units":function(a){return["Ups! Hedia kan ikke anbefale mere end ",a("0")," enheder hurtigtvirkende insulin i \xE9n dosis"]},"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Ups! Indtast kun de hurtigtvirkende insulindoser der er under 4 timer gamle, s\xE5 tager Hedia h\xF8jde for aktiv insulin","Error. Hedia Calculator does not support your activity intensity value":"Ups! Hedia har lavet en fejl. V\xE6lg venligst intensitet for aktivitet igen","Error. Hedia Calculator does not support your activity type value":"Ups! Der er sket en fejl ved den valgte aktivitetstype. G\xE5 venligst til \u201Caktivitet\u201D og indtast type igen","Error. Hedia Calculator does not support your current blood glucose level.":"Ups! Hedia har lavet en fejl. Indtast venligst en blodsukkerv\xE6rdi indenfor Hedia\u2019s definerede gr\xE6nser for blodsukker","Error. Hedia Calculator does not support your current blood glucose unit.":"Ups! G\xE5 venligst til indstillinger blodsukker og opdater blodsukker enhed til mmol/L eller mg/dL","Error. Hedia Calculator does not support your current language.":"Ups! G\xE5 venligst til indstillinger for sprog og v\xE6lg dansk eller engelsk","Error. Hedia Calculator does not support your injection method.":"Ups! G\xE5 venligst til indstillinger for insulinberegner og v\xE6lg behandlingstype","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Ups! Hedia har lavet en fejl. Indtast venligst en aktivitet p\xE5 max 60 minutters varighed","Error. Please verify that your activity settings are set up correctly.":"Ups! G\xE5 venligst til indstillinger for aktivitet og bekr\xE6ft at de er korrekte","Error. Please verify that your activity target blood glucose value is correct.":"Ups! G\xE5 venligst til indstillinger for aktivitet og bekr\xE6ft at aktivitetsm\xE5l er korrekt","Error. Please verify that your insulin sensitivity value is correct.":"Ups! G\xE5 venligst til insulinindstillinger under indstillinger for insulinberegner og bekr\xE6ft at din insulin sensitivitet er korrekt","Error. Please verify that your insulin to carb ratio value is correct.":"Ups! G\xE5 venligst til insulinindstillinger under indstillinger for insulinberegner og bekr\xE6ft at din kulhydrat-insulinratio er korrekt","Error. Please verify that your target blood glucose value is correct.":"Ups! G\xE5 venligst til indstillinger for blodsukker og bekr\xE6ft at blodsukkerniveaur er indstillet efter dine personlige m\xE5l","Error. Please verify your notifications settings.":"Ups! G\xE5 venligst til indstillinger for notifikationer og bekr\xE6ft at notifikationer er indstillet korrekt","Food":"Mad","Hard":"H\xE5rd","Have you taken insulin within the last 4 hours?":"Har du taget insulin inden for de sidste 4 timer?","Hedia Calculator does not support activities that finished more than 4 hours ago.":"Ups! Det lader til at du bruger en gammel version af Hedia. Det er ikke l\xE6ngere muligt at indtaste tidligere aktiviter i Hedia.","Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.":"Ups! Hedia har lavet en fejl. Indtast venligst en v\xE6rdi mellem 0 og 300 gram","Hedia does not support more than {0} units of insulin per calculation.":function(a){return["Hedia underst\xF8tter maksimalt ",a("0")," units af insulin per beregning"]},"Hedia doesn't support more than {0} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {1}% to {2} units for this calculation.":function(a){return["Hedia underst\xF8tter maksimalt ",a("0")," units af insulin per beregning, men p\xE5 grund af den fysiske aktivitet du har indtastet er gr\xE6nsen reduceret med yderligere ",a("1"),"% til ",a("2")," for denne beregning."]},"How are you feeling?":"Hvordan har du det?","INSULIN{0}RECOMMENDATION":function(a){return["INSULIN",a("0"),"ANBEFALING"]},"If it is possible, postpone your planned exercise.":"Hvis det er muligt, uds\xE6t din planlagte tr\xE6ning.","Instead of taking insulin":"I stedet for at tage insulin","Light":"Let","Moderate":"Moderat","More than 15 minutes has passed since this calculation was started.":"Der er g\xE5et mere end 15 minutter siden udregningen blev startet.","NO":"NEJ","No":"Nej","No, return to dashboard":"Nej, tilbage til dashboard","OFF":"OFF","OK":"OK","Please go through the calculation steps with new measurements to ensure a safe recommendation.":"G\xE5 venligst gennem udregningstrinnene igen med nye m\xE5linger for at sikre en sikker anbefaling.","Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?":function(a){return["Hedia's anbefaling fra ",a("day")," kl. ",a("time")," blev ikke overf\xF8rt til din logbog.",a("0"),"Brugte du anbefalingen?"]},"Recommended":"Anbefalet","Recommended amount of insulin":"Anbefalet enhed(er) af insulin","Remind me to remeasure in":"P\xE5mind mig at genm\xE5le om","Return to dashboard":"Tilbage til dashboard","Save data before closing?":"Vil du gemme din indtastning?","Save to logbook":"Gem i logbog","Start new calculation":"Start ny beregning","Total":"Sum","Transfer to logbook":"Overf\xF8r til logbog","Transferred to logbook":"Overf\xF8rt til logbog","Units":"Enheder","Untitled Activity":"Unavngivet aktivitet","We recommend eating an additional:":"Vi anbefaler at spise yderligere:","Would you like to add this to your current calculation?":"Vil du gerne tilf\xF8je dette til din nuv\xE6rende beregning?","Yes":"Ja","Yes, save to logbook":"Ja, gem i logbogen","You have a high blood glucose level.":"Du har et h\xF8jt blodsukkerniveau.","You should take rapid-acting insulin and measure ketones.":"Du burde tage hurtigtvirkende insulin og m\xE5le ketoner.","You will be reminded to measure your blood glucose level in 15 min.":"Du vil f\xE5 p\xE5mindelser om at m\xE5le dit blodsukkerniveau om 15 minutter.","Your blood glucose level is very low.":"Dit blodsukkerniveau er meget lavt.","Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.":"Dit blodsukkerniveau er meget lavt. Tag glukagon eller spis kulhydrater, hvis det er muligt. S\xF8g l\xE6gehj\xE6lp.","Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons. Hedia never recommends more than {1} units of insulin per calculation.":function(a){return["Din anbefaling ville have v\xE6ret h\xF8jere end ",a("0")," units af insulin, men den er blevet begr\xE6nset af sikkerhedshensyn. Hedia anbefaler aldrig mere end ",a("1")," units af insulin per beregning."]},"Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons.{1} Hedia never recommends more than {2} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {3}% to {4}.":function(a){return["Din anbefaling ville have v\xE6ret h\xF8jere end ",a("0")," units af insulin, men den er blevet begr\xE6nset af sikkerhedshensyn.",a("1")," Hedia anbefaler aldrig mere end ",a("2")," units af insulin per beregning, men p\xE5 grund af den fysiske aktivitet du har indtastet er gr\xE6nsen reduceret med yderligere ",a("3"),"% til ",a("4"),"."]},"Your saved data will be used for future calculations.":"Dine gemte indtastninger vil blive brugt til fremtidige beregninger.","grams":"gram","grams of carbohydrates":"gram kulhydrater","hours":"timer","min":"min","units":"enheder"}};
|
|
1
|
+
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),i=s[0],t0=Number(s[0])==n;if(ord)return"other";return n==1||!t0&&(i==0||i==1)?"one":"other"}},messages:{"Active Insulin":"Aktiv Insulin","Activity":"Aktivitet","Additional":"Supplerende","Attention":"OBS","Based on the selected activity your insulin recommendation is reduced by:":"Baseret p\xE5 din valgte aktivitet er din insulin anbefaling reduceret med:","Blood Glucose Level":"Blodsukkerniveau","Blood Ketone Level":"Blood Ketone Level","Carbohydrates":"Kulhydrater","Close calculation":"Luk beregning","Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.":"Dit blodsukkerniveau ligger udenfor de anbefalede gr\xE6nser for blodsukker f\xF8r en aktivitet. Du b\xF8r overveje at udskyde fysisk aktivitet.","Entered":"Indtastet","Error. Hedia Calculator does not support an insulin dose greater than {0} units":function(a){return["Ups! Hedia kan ikke anbefale mere end ",a("0")," enheder hurtigtvirkende insulin i \xE9n dosis"]},"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Ups! Indtast kun de hurtigtvirkende insulindoser der er under 4 timer gamle, s\xE5 tager Hedia h\xF8jde for aktiv insulin","Error. Hedia Calculator does not support your activity intensity value":"Ups! Hedia har lavet en fejl. V\xE6lg venligst intensitet for aktivitet igen","Error. Hedia Calculator does not support your activity type value":"Ups! Der er sket en fejl ved den valgte aktivitetstype. G\xE5 venligst til \u201Caktivitet\u201D og indtast type igen","Error. Hedia Calculator does not support your current blood glucose level.":"Ups! Hedia har lavet en fejl. Indtast venligst en blodsukkerv\xE6rdi indenfor Hedia\u2019s definerede gr\xE6nser for blodsukker","Error. Hedia Calculator does not support your current blood glucose unit.":"Ups! G\xE5 venligst til indstillinger blodsukker og opdater blodsukker enhed til mmol/L eller mg/dL","Error. Hedia Calculator does not support your current blood ketone level.":"Error. Hedia Calculator does not support your current blood ketone level.","Error. Hedia Calculator does not support your current blood ketone unit.":"Error. Hedia Calculator does not support your current blood ketone unit.","Error. Hedia Calculator does not support your current language.":"Ups! G\xE5 venligst til indstillinger for sprog og v\xE6lg dansk eller engelsk","Error. Hedia Calculator does not support your injection method.":"Ups! G\xE5 venligst til indstillinger for insulinberegner og v\xE6lg behandlingstype","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Ups! Hedia har lavet en fejl. Indtast venligst en aktivitet p\xE5 max 60 minutters varighed","Error. Please verify that your activity settings are set up correctly.":"Ups! G\xE5 venligst til indstillinger for aktivitet og bekr\xE6ft at de er korrekte","Error. Please verify that your activity target blood glucose value is correct.":"Ups! G\xE5 venligst til indstillinger for aktivitet og bekr\xE6ft at aktivitetsm\xE5l er korrekt","Error. Please verify that your insulin sensitivity value is correct.":"Ups! G\xE5 venligst til insulinindstillinger under indstillinger for insulinberegner og bekr\xE6ft at din insulin sensitivitet er korrekt","Error. Please verify that your insulin to carb ratio value is correct.":"Ups! G\xE5 venligst til insulinindstillinger under indstillinger for insulinberegner og bekr\xE6ft at din kulhydrat-insulinratio er korrekt","Error. Please verify that your target blood glucose value is correct.":"Ups! G\xE5 venligst til indstillinger for blodsukker og bekr\xE6ft at blodsukkerniveaur er indstillet efter dine personlige m\xE5l","Error. Please verify your notifications settings.":"Ups! G\xE5 venligst til indstillinger for notifikationer og bekr\xE6ft at notifikationer er indstillet korrekt","Food":"Mad","Hard":"H\xE5rd","Have you taken insulin within the last 4 hours?":"Har du taget insulin inden for de sidste 4 timer?","Hedia Calculator does not support activities that finished more than 4 hours ago.":"Ups! Det lader til at du bruger en gammel version af Hedia. Det er ikke l\xE6ngere muligt at indtaste tidligere aktiviter i Hedia.","Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.":"Ups! Hedia har lavet en fejl. Indtast venligst en v\xE6rdi mellem 0 og 300 gram","Hedia does not support more than {0} units of insulin per calculation.":function(a){return["Hedia underst\xF8tter maksimalt ",a("0")," units af insulin per beregning"]},"Hedia doesn't support more than {0} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {1}% to {2} units for this calculation.":function(a){return["Hedia underst\xF8tter maksimalt ",a("0")," units af insulin per beregning, men p\xE5 grund af den fysiske aktivitet du har indtastet er gr\xE6nsen reduceret med yderligere ",a("1"),"% til ",a("2")," for denne beregning."]},"How are you feeling?":"Hvordan har du det?","INSULIN{0}RECOMMENDATION":function(a){return["INSULIN",a("0"),"ANBEFALING"]},"If it is possible, postpone your planned exercise.":"Hvis det er muligt, uds\xE6t din planlagte tr\xE6ning.","Instead of taking insulin":"I stedet for at tage insulin","Light":"Let","Moderate":"Moderat","More than 15 minutes has passed since this calculation was started.":"Der er g\xE5et mere end 15 minutter siden udregningen blev startet.","NO":"NEJ","No":"Nej","No, return to dashboard":"Nej, tilbage til dashboard","OFF":"OFF","OK":"OK","Please go through the calculation steps with new measurements to ensure a safe recommendation.":"G\xE5 venligst gennem udregningstrinnene igen med nye m\xE5linger for at sikre en sikker anbefaling.","Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?":function(a){return["Hedia's anbefaling fra ",a("day")," kl. ",a("time")," blev ikke overf\xF8rt til din logbog.",a("0"),"Brugte du anbefalingen?"]},"Recommended":"Anbefalet","Recommended amount of insulin":"Anbefalet enhed(er) af insulin","Remind me to remeasure in":"P\xE5mind mig at genm\xE5le om","Return to dashboard":"Tilbage til dashboard","Save data before closing?":"Vil du gemme din indtastning?","Save to logbook":"Gem i logbog","Start new calculation":"Start ny beregning","Total":"Sum","Transfer to logbook":"Overf\xF8r til logbog","Transferred to logbook":"Overf\xF8rt til logbog","Units":"Enheder","Untitled Activity":"Unavngivet aktivitet","We recommend eating an additional:":"Vi anbefaler at spise yderligere:","Would you like to add this to your current calculation?":"Vil du gerne tilf\xF8je dette til din nuv\xE6rende beregning?","Yes":"Ja","Yes, save to logbook":"Ja, gem i logbogen","You have a high blood glucose level.":"Du har et h\xF8jt blodsukkerniveau.","You should take rapid-acting insulin and measure ketones.":"Du burde tage hurtigtvirkende insulin og m\xE5le ketoner.","You will be reminded to measure your blood glucose level in 15 min.":"Du vil f\xE5 p\xE5mindelser om at m\xE5le dit blodsukkerniveau om 15 minutter.","Your blood glucose level is very low.":"Dit blodsukkerniveau er meget lavt.","Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.":"Dit blodsukkerniveau er meget lavt. Tag glukagon eller spis kulhydrater, hvis det er muligt. S\xF8g l\xE6gehj\xE6lp.","Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons. Hedia never recommends more than {1} units of insulin per calculation.":function(a){return["Din anbefaling ville have v\xE6ret h\xF8jere end ",a("0")," units af insulin, men den er blevet begr\xE6nset af sikkerhedshensyn. Hedia anbefaler aldrig mere end ",a("1")," units af insulin per beregning."]},"Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons.{1} Hedia never recommends more than {2} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {3}% to {4}.":function(a){return["Din anbefaling ville have v\xE6ret h\xF8jere end ",a("0")," units af insulin, men den er blevet begr\xE6nset af sikkerhedshensyn.",a("1")," Hedia anbefaler aldrig mere end ",a("2")," units af insulin per beregning, men p\xE5 grund af den fysiske aktivitet du har indtastet er gr\xE6nsen reduceret med yderligere ",a("3"),"% til ",a("4"),"."]},"Your saved data will be used for future calculations.":"Dine gemte indtastninger vil blive brugt til fremtidige beregninger.","grams":"gram","grams of carbohydrates":"gram kulhydrater","hours":"timer","min":"min","units":"enheder"}};
|
|
@@ -13,7 +13,7 @@ msgstr ""
|
|
|
13
13
|
"Language-Team: \n"
|
|
14
14
|
"Plural-Forms: \n"
|
|
15
15
|
|
|
16
|
-
#: src/RecommendationScreen.tsx:
|
|
16
|
+
#: src/RecommendationScreen.tsx:182
|
|
17
17
|
msgid "Active Insulin"
|
|
18
18
|
msgstr "Aktiv Insulin"
|
|
19
19
|
|
|
@@ -36,15 +36,19 @@ msgstr "OBS"
|
|
|
36
36
|
msgid "Based on the selected activity your insulin recommendation is reduced by:"
|
|
37
37
|
msgstr "Baseret på din valgte aktivitet er din insulin anbefaling reduceret med:"
|
|
38
38
|
|
|
39
|
-
#: src/RecommendationScreen.tsx:
|
|
39
|
+
#: src/RecommendationScreen.tsx:183
|
|
40
40
|
msgid "Blood Glucose Level"
|
|
41
41
|
msgstr "Blodsukkerniveau"
|
|
42
42
|
|
|
43
|
+
#: src/RecommendationScreen.tsx:184
|
|
44
|
+
msgid "Blood Ketone Level"
|
|
45
|
+
msgstr ""
|
|
46
|
+
|
|
43
47
|
#: src/components/RecommendedCarbs.tsx:105
|
|
44
48
|
msgid "Carbohydrates"
|
|
45
49
|
msgstr "Kulhydrater"
|
|
46
50
|
|
|
47
|
-
#: src/RecommendationScreen.tsx:
|
|
51
|
+
#: src/RecommendationScreen.tsx:206
|
|
48
52
|
msgid "Close calculation"
|
|
49
53
|
msgstr "Luk beregning"
|
|
50
54
|
|
|
@@ -56,11 +60,11 @@ msgstr "Dit blodsukkerniveau ligger udenfor de anbefalede grænser for blodsukke
|
|
|
56
60
|
msgid "Entered"
|
|
57
61
|
msgstr "Indtastet"
|
|
58
62
|
|
|
59
|
-
#: src/utils/RecommendationError.tsx:
|
|
63
|
+
#: src/utils/RecommendationError.tsx:23
|
|
60
64
|
msgid "Error. Hedia Calculator does not support an insulin dose greater than {0} units"
|
|
61
65
|
msgstr "Ups! Hedia kan ikke anbefale mere end {0} enheder hurtigtvirkende insulin i én dosis"
|
|
62
66
|
|
|
63
|
-
#: src/utils/RecommendationError.tsx:
|
|
67
|
+
#: src/utils/RecommendationError.tsx:24
|
|
64
68
|
msgid "Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours"
|
|
65
69
|
msgstr "Ups! Indtast kun de hurtigtvirkende insulindoser der er under 4 timer gamle, så tager Hedia højde for aktiv insulin"
|
|
66
70
|
|
|
@@ -76,15 +80,23 @@ msgstr "Ups! Der er sket en fejl ved den valgte aktivitetstype. Gå venligst til
|
|
|
76
80
|
msgid "Error. Hedia Calculator does not support your current blood glucose level."
|
|
77
81
|
msgstr "Ups! Hedia har lavet en fejl. Indtast venligst en blodsukkerværdi indenfor Hedia’s definerede grænser for blodsukker"
|
|
78
82
|
|
|
79
|
-
#: src/utils/RecommendationError.tsx:
|
|
83
|
+
#: src/utils/RecommendationError.tsx:29
|
|
80
84
|
msgid "Error. Hedia Calculator does not support your current blood glucose unit."
|
|
81
85
|
msgstr "Ups! Gå venligst til indstillinger blodsukker og opdater blodsukker enhed til mmol/L eller mg/dL"
|
|
82
86
|
|
|
83
|
-
#: src/utils/RecommendationError.tsx:
|
|
87
|
+
#: src/utils/RecommendationError.tsx:21
|
|
88
|
+
msgid "Error. Hedia Calculator does not support your current blood ketone level."
|
|
89
|
+
msgstr ""
|
|
90
|
+
|
|
91
|
+
#: src/utils/RecommendationError.tsx:28
|
|
92
|
+
msgid "Error. Hedia Calculator does not support your current blood ketone unit."
|
|
93
|
+
msgstr ""
|
|
94
|
+
|
|
95
|
+
#: src/utils/RecommendationError.tsx:27
|
|
84
96
|
msgid "Error. Hedia Calculator does not support your current language."
|
|
85
97
|
msgstr "Ups! Gå venligst til indstillinger for sprog og vælg dansk eller engelsk"
|
|
86
98
|
|
|
87
|
-
#: src/utils/RecommendationError.tsx:
|
|
99
|
+
#: src/utils/RecommendationError.tsx:26
|
|
88
100
|
msgid "Error. Hedia Calculator does not support your injection method."
|
|
89
101
|
msgstr "Ups! Gå venligst til indstillinger for insulinberegner og vælg behandlingstype"
|
|
90
102
|
|
|
@@ -108,11 +120,11 @@ msgstr "Ups! Gå venligst til insulinindstillinger under indstillinger for insul
|
|
|
108
120
|
msgid "Error. Please verify that your insulin to carb ratio value is correct."
|
|
109
121
|
msgstr "Ups! Gå venligst til insulinindstillinger under indstillinger for insulinberegner og bekræft at din kulhydrat-insulinratio er korrekt"
|
|
110
122
|
|
|
111
|
-
#: src/utils/RecommendationError.tsx:
|
|
123
|
+
#: src/utils/RecommendationError.tsx:22
|
|
112
124
|
msgid "Error. Please verify that your target blood glucose value is correct."
|
|
113
125
|
msgstr "Ups! Gå venligst til indstillinger for blodsukker og bekræft at blodsukkerniveaur er indstillet efter dine personlige mål"
|
|
114
126
|
|
|
115
|
-
#: src/utils/RecommendationError.tsx:
|
|
127
|
+
#: src/utils/RecommendationError.tsx:25
|
|
116
128
|
msgid "Error. Please verify your notifications settings."
|
|
117
129
|
msgstr "Ups! Gå venligst til indstillinger for notifikationer og bekræft at notifikationer er indstillet korrekt"
|
|
118
130
|
|
|
@@ -180,7 +192,7 @@ msgstr "NEJ"
|
|
|
180
192
|
msgid "No"
|
|
181
193
|
msgstr "Nej"
|
|
182
194
|
|
|
183
|
-
#: src/RecommendationScreen.tsx:
|
|
195
|
+
#: src/RecommendationScreen.tsx:210
|
|
184
196
|
msgid "No, return to dashboard"
|
|
185
197
|
msgstr "Nej, tilbage til dashboard"
|
|
186
198
|
|
|
@@ -217,19 +229,19 @@ msgstr "Anbefalet enhed(er) af insulin"
|
|
|
217
229
|
msgid "Remind me to remeasure in"
|
|
218
230
|
msgstr "Påmind mig at genmåle om"
|
|
219
231
|
|
|
220
|
-
#: src/RecommendationScreen.tsx:
|
|
232
|
+
#: src/RecommendationScreen.tsx:210
|
|
221
233
|
msgid "Return to dashboard"
|
|
222
234
|
msgstr "Tilbage til dashboard"
|
|
223
235
|
|
|
224
|
-
#: src/RecommendationScreen.tsx:
|
|
236
|
+
#: src/RecommendationScreen.tsx:206
|
|
225
237
|
msgid "Save data before closing?"
|
|
226
238
|
msgstr "Vil du gemme din indtastning?"
|
|
227
239
|
|
|
228
|
-
#: src/RecommendationScreen.tsx:
|
|
240
|
+
#: src/RecommendationScreen.tsx:206
|
|
229
241
|
msgid "Save to logbook"
|
|
230
242
|
msgstr "Gem i logbog"
|
|
231
243
|
|
|
232
|
-
#: src/RecommendationScreen.tsx:
|
|
244
|
+
#: src/RecommendationScreen.tsx:210
|
|
233
245
|
msgid "Start new calculation"
|
|
234
246
|
msgstr "Start ny beregning"
|
|
235
247
|
|
|
@@ -265,7 +277,7 @@ msgstr "Vil du gerne tilføje dette til din nuværende beregning?"
|
|
|
265
277
|
msgid "Yes"
|
|
266
278
|
msgstr "Ja"
|
|
267
279
|
|
|
268
|
-
#: src/RecommendationScreen.tsx:
|
|
280
|
+
#: src/RecommendationScreen.tsx:210
|
|
269
281
|
msgid "Yes, save to logbook"
|
|
270
282
|
msgstr "Ja, gem i logbogen"
|
|
271
283
|
|
|
@@ -297,7 +309,7 @@ msgstr "Din anbefaling ville have været højere end {0} units af insulin, men d
|
|
|
297
309
|
msgid "Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons.{1} Hedia never recommends more than {2} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {3}% to {4}."
|
|
298
310
|
msgstr "Din anbefaling ville have været højere end {0} units af insulin, men den er blevet begrænset af sikkerhedshensyn.{1} Hedia anbefaler aldrig mere end {2} units af insulin per beregning, men på grund af den fysiske aktivitet du har indtastet er grænsen reduceret med yderligere {3}% til {4}."
|
|
299
311
|
|
|
300
|
-
#: src/RecommendationScreen.tsx:
|
|
312
|
+
#: src/RecommendationScreen.tsx:206
|
|
301
313
|
msgid "Your saved data will be used for future calculations."
|
|
302
314
|
msgstr "Dine gemte indtastninger vil blive brugt til fremtidige beregninger."
|
|
303
315
|
|
|
@@ -319,6 +331,6 @@ msgstr "timer"
|
|
|
319
331
|
msgid "min"
|
|
320
332
|
msgstr "min"
|
|
321
333
|
|
|
322
|
-
#: src/RecommendationScreen.tsx:
|
|
334
|
+
#: src/RecommendationScreen.tsx:182
|
|
323
335
|
msgid "units"
|
|
324
336
|
msgstr "enheder"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n10==1&&n100!=11?"one":n10==2&&n100!=12?"two":n10==3&&n100!=13?"few":"other";return n==1&&v0?"one":"other"}},messages:{"Active Insulin":"Active Insulin","Activity":"Activity","Additional":"Additional","Attention":"Attention","Based on the selected activity your insulin recommendation is reduced by:":"Based on the selected activity your insulin recommendation is reduced by:","Blood Glucose Level":"Blood Glucose Level","Carbohydrates":"Carbohydrates","Close calculation":"Close calculation","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 level is within the recommended ranges prior to physical activity.","Entered":"Entered","Error. Hedia Calculator does not support an insulin dose greater than {0} units":function(a){return["Error. Hedia Calculator does not support an insulin dose greater than ",a("0")," units"]},"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours","Error. Hedia Calculator does not support your activity intensity value":"Error. Hedia Calculator does not support your activity intensity value","Error. Hedia Calculator does not support your activity type value":"Error. Hedia Calculator does not support your activity type value","Error. Hedia Calculator does not support your current blood glucose level.":"Error. Hedia Calculator does not support your current blood glucose level.","Error. Hedia Calculator does not support your current blood glucose unit.":"Error. Hedia Calculator does not support your current blood glucose unit.","Error. Hedia Calculator does not support your current language.":"Error. Hedia Calculator does not support your current language.","Error. Hedia Calculator does not support your injection method.":"Error. Hedia Calculator does not support your injection method.","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.","Error. Please verify that your activity settings are set up correctly.":"Error. Please verify that your activity settings are set up correctly.","Error. Please verify that your activity target blood glucose value is correct.":"Error. Please verify that your activity target blood glucose value is correct.","Error. Please verify that your insulin sensitivity value is correct.":"Error. Please verify that your insulin sensitivity value is correct.","Error. Please verify that your insulin to carb ratio value is correct.":"Error. Please verify that your insulin to carb ratio value is correct.","Error. Please verify that your target blood glucose value is correct.":"Error. Please verify that your target blood glucose value is correct.","Error. Please verify your notifications settings.":"Error. Please verify your notifications settings.","Food":"Food","Hard":"Hard","Have you taken insulin within the last 4 hours?":"Have you taken insulin within the last 4 hours?","Hedia Calculator does not support activities that finished more than 4 hours ago.":"Hedia Calculator does not support activities that finished more than 4 hours ago.","Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.":"Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.","Hedia does not support more than {0} units of insulin per calculation.":function(a){return["Hedia does not support more than ",a("0")," units of insulin per calculation."]},"Hedia doesn't support more than {0} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {1}% to {2} units for this calculation.":function(a){return["Hedia doesn't support more than ",a("0")," units of insulin per calculation, but because of the physical activity you entered it has been further reduced by ",a("1"),"% to ",a("2")," units for this calculation."]},"How are you feeling?":"How are you feeling?","INSULIN{0}RECOMMENDATION":function(a){return["INSULIN",a("0"),"RECOMMENDATION"]},"If it is possible, postpone your planned exercise.":"If it is possible, postpone your planned exercise.","Instead of taking insulin":"Instead of taking insulin","Light":"Light","Moderate":"Moderate","More than 15 minutes has passed since this calculation was started.":"More than 15 minutes has passed since this calculation was started.","NO":"NO","No":"No","No, return to dashboard":"No, return to dashboard","OFF":"OFF","OK":"OK","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.","Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?":function(a){return["Recommendation from ",a("day")," at ",a("time")," was not transfered to your logbook.",a("0"),"Did you use the recommendation?"]},"Recommended":"Recommended","Recommended amount of insulin":"Recommended amount of insulin","Remind me to remeasure in":"Remind me to remeasure in","Return to dashboard":"Return to dashboard","Save data before closing?":"Save data before closing?","Save to logbook":"Save to logbook","Start new calculation":"Start new calculation","Total":"Total","Transfer to logbook":"Transfer to logbook","Transferred to logbook":"Transferred to logbook","Units":"Units","Untitled Activity":"Untitled Activity","We recommend eating an additional:":"We recommend eating an additional:","Would you like to add this to your current calculation?":"Would you like to add this to your current calculation?","Yes":"Yes","Yes, save to logbook":"Yes, save to logbook","You have a high blood glucose level.":"You have a high blood glucose level.","You should take rapid-acting insulin and measure ketones.":"You should take rapid-acting insulin and measure ketones.","You will be reminded to measure your blood glucose level in 15 min.":"You will be reminded to measure your blood glucose level in 15 min.","Your blood glucose level is very low.":"Your blood glucose level is very low.","Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.":"Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.","Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons. Hedia never recommends more than {1} units of insulin per calculation.":function(a){return["Your recommendation would have been higher than ",a("0")," units of insulin, but it has been limited for safety reasons. Hedia never recommends more than ",a("1")," units of insulin per calculation."]},"Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons.{1} Hedia never recommends more than {2} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {3}% to {4}.":function(a){return["Your recommendation would have been higher than ",a("0")," units of insulin, but it has been limited for safety reasons.",a("1")," Hedia never recommends more than ",a("2")," units of insulin per calculation, but because of the physical activity you entered it has been further reduced by ",a("3"),"% to ",a("4"),"."]},"Your saved data will be used for future calculations.":"Your saved data will be used for future calculations.","grams":"grams","grams of carbohydrates":"grams of carbohydrates","hours":"hours","min":"min","units":"units"}};
|
|
1
|
+
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n10==1&&n100!=11?"one":n10==2&&n100!=12?"two":n10==3&&n100!=13?"few":"other";return n==1&&v0?"one":"other"}},messages:{"Active Insulin":"Active Insulin","Activity":"Activity","Additional":"Additional","Attention":"Attention","Based on the selected activity your insulin recommendation is reduced by:":"Based on the selected activity your insulin recommendation is reduced by:","Blood Glucose Level":"Blood Glucose Level","Blood Ketone Level":"Blood Ketone Level","Carbohydrates":"Carbohydrates","Close calculation":"Close calculation","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 level is within the recommended ranges prior to physical activity.","Entered":"Entered","Error. Hedia Calculator does not support an insulin dose greater than {0} units":function(a){return["Error. Hedia Calculator does not support an insulin dose greater than ",a("0")," units"]},"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours","Error. Hedia Calculator does not support your activity intensity value":"Error. Hedia Calculator does not support your activity intensity value","Error. Hedia Calculator does not support your activity type value":"Error. Hedia Calculator does not support your activity type value","Error. Hedia Calculator does not support your current blood glucose level.":"Error. Hedia Calculator does not support your current blood glucose level.","Error. Hedia Calculator does not support your current blood glucose unit.":"Error. Hedia Calculator does not support your current blood glucose unit.","Error. Hedia Calculator does not support your current blood ketone level.":"Error. Hedia Calculator does not support your current blood ketone level.","Error. Hedia Calculator does not support your current blood ketone unit.":"Error. Hedia Calculator does not support your current blood ketone unit.","Error. Hedia Calculator does not support your current language.":"Error. Hedia Calculator does not support your current language.","Error. Hedia Calculator does not support your injection method.":"Error. Hedia Calculator does not support your injection method.","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.","Error. Please verify that your activity settings are set up correctly.":"Error. Please verify that your activity settings are set up correctly.","Error. Please verify that your activity target blood glucose value is correct.":"Error. Please verify that your activity target blood glucose value is correct.","Error. Please verify that your insulin sensitivity value is correct.":"Error. Please verify that your insulin sensitivity value is correct.","Error. Please verify that your insulin to carb ratio value is correct.":"Error. Please verify that your insulin to carb ratio value is correct.","Error. Please verify that your target blood glucose value is correct.":"Error. Please verify that your target blood glucose value is correct.","Error. Please verify your notifications settings.":"Error. Please verify your notifications settings.","Food":"Food","Hard":"Hard","Have you taken insulin within the last 4 hours?":"Have you taken insulin within the last 4 hours?","Hedia Calculator does not support activities that finished more than 4 hours ago.":"Hedia Calculator does not support activities that finished more than 4 hours ago.","Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.":"Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.","Hedia does not support more than {0} units of insulin per calculation.":function(a){return["Hedia does not support more than ",a("0")," units of insulin per calculation."]},"Hedia doesn't support more than {0} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {1}% to {2} units for this calculation.":function(a){return["Hedia doesn't support more than ",a("0")," units of insulin per calculation, but because of the physical activity you entered it has been further reduced by ",a("1"),"% to ",a("2")," units for this calculation."]},"How are you feeling?":"How are you feeling?","INSULIN{0}RECOMMENDATION":function(a){return["INSULIN",a("0"),"RECOMMENDATION"]},"If it is possible, postpone your planned exercise.":"If it is possible, postpone your planned exercise.","Instead of taking insulin":"Instead of taking insulin","Light":"Light","Moderate":"Moderate","More than 15 minutes has passed since this calculation was started.":"More than 15 minutes has passed since this calculation was started.","NO":"NO","No":"No","No, return to dashboard":"No, return to dashboard","OFF":"OFF","OK":"OK","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.","Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?":function(a){return["Recommendation from ",a("day")," at ",a("time")," was not transfered to your logbook.",a("0"),"Did you use the recommendation?"]},"Recommended":"Recommended","Recommended amount of insulin":"Recommended amount of insulin","Remind me to remeasure in":"Remind me to remeasure in","Return to dashboard":"Return to dashboard","Save data before closing?":"Save data before closing?","Save to logbook":"Save to logbook","Start new calculation":"Start new calculation","Total":"Total","Transfer to logbook":"Transfer to logbook","Transferred to logbook":"Transferred to logbook","Units":"Units","Untitled Activity":"Untitled Activity","We recommend eating an additional:":"We recommend eating an additional:","Would you like to add this to your current calculation?":"Would you like to add this to your current calculation?","Yes":"Yes","Yes, save to logbook":"Yes, save to logbook","You have a high blood glucose level.":"You have a high blood glucose level.","You should take rapid-acting insulin and measure ketones.":"You should take rapid-acting insulin and measure ketones.","You will be reminded to measure your blood glucose level in 15 min.":"You will be reminded to measure your blood glucose level in 15 min.","Your blood glucose level is very low.":"Your blood glucose level is very low.","Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.":"Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.","Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons. Hedia never recommends more than {1} units of insulin per calculation.":function(a){return["Your recommendation would have been higher than ",a("0")," units of insulin, but it has been limited for safety reasons. Hedia never recommends more than ",a("1")," units of insulin per calculation."]},"Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons.{1} Hedia never recommends more than {2} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {3}% to {4}.":function(a){return["Your recommendation would have been higher than ",a("0")," units of insulin, but it has been limited for safety reasons.",a("1")," Hedia never recommends more than ",a("2")," units of insulin per calculation, but because of the physical activity you entered it has been further reduced by ",a("3"),"% to ",a("4"),"."]},"Your saved data will be used for future calculations.":"Your saved data will be used for future calculations.","grams":"grams","grams of carbohydrates":"grams of carbohydrates","hours":"hours","min":"min","units":"units"}};
|
|
@@ -13,7 +13,7 @@ msgstr ""
|
|
|
13
13
|
"Language-Team: \n"
|
|
14
14
|
"Plural-Forms: \n"
|
|
15
15
|
|
|
16
|
-
#: src/RecommendationScreen.tsx:
|
|
16
|
+
#: src/RecommendationScreen.tsx:182
|
|
17
17
|
msgid "Active Insulin"
|
|
18
18
|
msgstr "Active Insulin"
|
|
19
19
|
|
|
@@ -36,15 +36,19 @@ msgstr "Attention"
|
|
|
36
36
|
msgid "Based on the selected activity your insulin recommendation is reduced by:"
|
|
37
37
|
msgstr "Based on the selected activity your insulin recommendation is reduced by:"
|
|
38
38
|
|
|
39
|
-
#: src/RecommendationScreen.tsx:
|
|
39
|
+
#: src/RecommendationScreen.tsx:183
|
|
40
40
|
msgid "Blood Glucose Level"
|
|
41
41
|
msgstr "Blood Glucose Level"
|
|
42
42
|
|
|
43
|
+
#: src/RecommendationScreen.tsx:184
|
|
44
|
+
msgid "Blood Ketone Level"
|
|
45
|
+
msgstr "Blood Ketone Level"
|
|
46
|
+
|
|
43
47
|
#: src/components/RecommendedCarbs.tsx:105
|
|
44
48
|
msgid "Carbohydrates"
|
|
45
49
|
msgstr "Carbohydrates"
|
|
46
50
|
|
|
47
|
-
#: src/RecommendationScreen.tsx:
|
|
51
|
+
#: src/RecommendationScreen.tsx:206
|
|
48
52
|
msgid "Close calculation"
|
|
49
53
|
msgstr "Close calculation"
|
|
50
54
|
|
|
@@ -56,11 +60,11 @@ msgstr "Consider not to initiate physical activity before your blood glucose lev
|
|
|
56
60
|
msgid "Entered"
|
|
57
61
|
msgstr "Entered"
|
|
58
62
|
|
|
59
|
-
#: src/utils/RecommendationError.tsx:
|
|
63
|
+
#: src/utils/RecommendationError.tsx:23
|
|
60
64
|
msgid "Error. Hedia Calculator does not support an insulin dose greater than {0} units"
|
|
61
65
|
msgstr "Error. Hedia Calculator does not support an insulin dose greater than {0} units"
|
|
62
66
|
|
|
63
|
-
#: src/utils/RecommendationError.tsx:
|
|
67
|
+
#: src/utils/RecommendationError.tsx:24
|
|
64
68
|
msgid "Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours"
|
|
65
69
|
msgstr "Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours"
|
|
66
70
|
|
|
@@ -76,15 +80,23 @@ msgstr "Error. Hedia Calculator does not support your activity type value"
|
|
|
76
80
|
msgid "Error. Hedia Calculator does not support your current blood glucose level."
|
|
77
81
|
msgstr "Error. Hedia Calculator does not support your current blood glucose level."
|
|
78
82
|
|
|
79
|
-
#: src/utils/RecommendationError.tsx:
|
|
83
|
+
#: src/utils/RecommendationError.tsx:29
|
|
80
84
|
msgid "Error. Hedia Calculator does not support your current blood glucose unit."
|
|
81
85
|
msgstr "Error. Hedia Calculator does not support your current blood glucose unit."
|
|
82
86
|
|
|
83
|
-
#: src/utils/RecommendationError.tsx:
|
|
87
|
+
#: src/utils/RecommendationError.tsx:21
|
|
88
|
+
msgid "Error. Hedia Calculator does not support your current blood ketone level."
|
|
89
|
+
msgstr "Error. Hedia Calculator does not support your current blood ketone level."
|
|
90
|
+
|
|
91
|
+
#: src/utils/RecommendationError.tsx:28
|
|
92
|
+
msgid "Error. Hedia Calculator does not support your current blood ketone unit."
|
|
93
|
+
msgstr "Error. Hedia Calculator does not support your current blood ketone unit."
|
|
94
|
+
|
|
95
|
+
#: src/utils/RecommendationError.tsx:27
|
|
84
96
|
msgid "Error. Hedia Calculator does not support your current language."
|
|
85
97
|
msgstr "Error. Hedia Calculator does not support your current language."
|
|
86
98
|
|
|
87
|
-
#: src/utils/RecommendationError.tsx:
|
|
99
|
+
#: src/utils/RecommendationError.tsx:26
|
|
88
100
|
msgid "Error. Hedia Calculator does not support your injection method."
|
|
89
101
|
msgstr "Error. Hedia Calculator does not support your injection method."
|
|
90
102
|
|
|
@@ -108,11 +120,11 @@ msgstr "Error. Please verify that your insulin sensitivity value is correct."
|
|
|
108
120
|
msgid "Error. Please verify that your insulin to carb ratio value is correct."
|
|
109
121
|
msgstr "Error. Please verify that your insulin to carb ratio value is correct."
|
|
110
122
|
|
|
111
|
-
#: src/utils/RecommendationError.tsx:
|
|
123
|
+
#: src/utils/RecommendationError.tsx:22
|
|
112
124
|
msgid "Error. Please verify that your target blood glucose value is correct."
|
|
113
125
|
msgstr "Error. Please verify that your target blood glucose value is correct."
|
|
114
126
|
|
|
115
|
-
#: src/utils/RecommendationError.tsx:
|
|
127
|
+
#: src/utils/RecommendationError.tsx:25
|
|
116
128
|
msgid "Error. Please verify your notifications settings."
|
|
117
129
|
msgstr "Error. Please verify your notifications settings."
|
|
118
130
|
|
|
@@ -180,7 +192,7 @@ msgstr "NO"
|
|
|
180
192
|
msgid "No"
|
|
181
193
|
msgstr "No"
|
|
182
194
|
|
|
183
|
-
#: src/RecommendationScreen.tsx:
|
|
195
|
+
#: src/RecommendationScreen.tsx:210
|
|
184
196
|
msgid "No, return to dashboard"
|
|
185
197
|
msgstr "No, return to dashboard"
|
|
186
198
|
|
|
@@ -217,19 +229,19 @@ msgstr "Recommended amount of insulin"
|
|
|
217
229
|
msgid "Remind me to remeasure in"
|
|
218
230
|
msgstr "Remind me to remeasure in"
|
|
219
231
|
|
|
220
|
-
#: src/RecommendationScreen.tsx:
|
|
232
|
+
#: src/RecommendationScreen.tsx:210
|
|
221
233
|
msgid "Return to dashboard"
|
|
222
234
|
msgstr "Return to dashboard"
|
|
223
235
|
|
|
224
|
-
#: src/RecommendationScreen.tsx:
|
|
236
|
+
#: src/RecommendationScreen.tsx:206
|
|
225
237
|
msgid "Save data before closing?"
|
|
226
238
|
msgstr "Save data before closing?"
|
|
227
239
|
|
|
228
|
-
#: src/RecommendationScreen.tsx:
|
|
240
|
+
#: src/RecommendationScreen.tsx:206
|
|
229
241
|
msgid "Save to logbook"
|
|
230
242
|
msgstr "Save to logbook"
|
|
231
243
|
|
|
232
|
-
#: src/RecommendationScreen.tsx:
|
|
244
|
+
#: src/RecommendationScreen.tsx:210
|
|
233
245
|
msgid "Start new calculation"
|
|
234
246
|
msgstr "Start new calculation"
|
|
235
247
|
|
|
@@ -265,7 +277,7 @@ msgstr "Would you like to add this to your current calculation?"
|
|
|
265
277
|
msgid "Yes"
|
|
266
278
|
msgstr "Yes"
|
|
267
279
|
|
|
268
|
-
#: src/RecommendationScreen.tsx:
|
|
280
|
+
#: src/RecommendationScreen.tsx:210
|
|
269
281
|
msgid "Yes, save to logbook"
|
|
270
282
|
msgstr "Yes, save to logbook"
|
|
271
283
|
|
|
@@ -297,7 +309,7 @@ msgstr "Your recommendation would have been higher than {0} units of insulin, bu
|
|
|
297
309
|
msgid "Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons.{1} Hedia never recommends more than {2} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {3}% to {4}."
|
|
298
310
|
msgstr "Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons.{1} Hedia never recommends more than {2} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {3}% to {4}."
|
|
299
311
|
|
|
300
|
-
#: src/RecommendationScreen.tsx:
|
|
312
|
+
#: src/RecommendationScreen.tsx:206
|
|
301
313
|
msgid "Your saved data will be used for future calculations."
|
|
302
314
|
msgstr "Your saved data will be used for future calculations."
|
|
303
315
|
|
|
@@ -319,6 +331,6 @@ msgstr "hours"
|
|
|
319
331
|
msgid "min"
|
|
320
332
|
msgstr "min"
|
|
321
333
|
|
|
322
|
-
#: src/RecommendationScreen.tsx:
|
|
334
|
+
#: src/RecommendationScreen.tsx:182
|
|
323
335
|
msgid "units"
|
|
324
336
|
msgstr "units"
|
package/src/types/enum.d.ts
CHANGED
|
@@ -12,10 +12,6 @@ export declare enum ActivityEnum {
|
|
|
12
12
|
Swim = 3,
|
|
13
13
|
Other = 4
|
|
14
14
|
}
|
|
15
|
-
export declare enum BGUnit {
|
|
16
|
-
MMOL_L = "mmol/l",
|
|
17
|
-
MG_DL = "mg/dl"
|
|
18
|
-
}
|
|
19
15
|
export declare enum InjectionMethod {
|
|
20
16
|
PenHalf = "Pen-half",
|
|
21
17
|
PenWhole = "Pen-whole",
|
|
@@ -43,11 +39,13 @@ export declare enum RecommendationErrorEnum {
|
|
|
43
39
|
InsulinSensitivity = 9,
|
|
44
40
|
InsulinToCarbsRatio = 10,
|
|
45
41
|
CurrentBGL = 11,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
CurrentBKL = 12,
|
|
43
|
+
TargetBGL = 13,
|
|
44
|
+
UserReminder = 14,
|
|
45
|
+
Language = 15,
|
|
46
|
+
InjectionMethod = 16,
|
|
47
|
+
BloodKetoneUnit = 17,
|
|
48
|
+
BloodGlucoseUnit = 18
|
|
51
49
|
}
|
|
52
50
|
export declare enum Milliseconds {
|
|
53
51
|
Second = 1000,
|