@hedia/recommendation-screen 2.0.1 → 2.1.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/App.d.ts +2 -2
- package/App.jsx +3 -20
- package/coverage/clover.xml +700 -0
- package/coverage/coverage-final.json +28 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +79 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +201 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +170 -0
- package/coverage/lcov-report/src/RecommendationScreen.tsx.html +1460 -0
- package/coverage/lcov-report/src/__tests__/index.html +111 -0
- package/coverage/lcov-report/src/__tests__/utils.tsx.html +512 -0
- package/coverage/lcov-report/src/components/Header.tsx.html +347 -0
- package/coverage/lcov-report/src/components/InfoBars.tsx.html +404 -0
- package/coverage/lcov-report/src/components/InvisibleNumberInput.tsx.html +374 -0
- package/coverage/lcov-report/src/components/LimitationMessage.tsx.html +191 -0
- package/coverage/lcov-report/src/components/LineSeparator.tsx.html +152 -0
- package/coverage/lcov-report/src/components/RecentInsulin.tsx.html +383 -0
- package/coverage/lcov-report/src/components/RecommendationModal.tsx.html +737 -0
- package/coverage/lcov-report/src/components/RecommendedCarbs.tsx.html +857 -0
- package/coverage/lcov-report/src/components/RecommendedInsulin.tsx.html +605 -0
- package/coverage/lcov-report/src/components/Remeasure.tsx.html +440 -0
- package/coverage/lcov-report/src/components/TransferToLogbook.tsx.html +380 -0
- package/coverage/lcov-report/src/components/TwoOptionModal.tsx.html +635 -0
- package/coverage/lcov-report/src/components/activity/Activity.tsx.html +311 -0
- package/coverage/lcov-report/src/components/activity/ActivityIcon.tsx.html +242 -0
- package/coverage/lcov-report/src/components/activity/ActivityIntensity.tsx.html +257 -0
- package/coverage/lcov-report/src/components/activity/index.html +141 -0
- package/coverage/lcov-report/src/components/index.html +276 -0
- package/coverage/lcov-report/src/components/mood/Emotion.tsx.html +278 -0
- package/coverage/lcov-report/src/components/mood/MoodIcon.tsx.html +260 -0
- package/coverage/lcov-report/src/components/mood/index.html +126 -0
- package/coverage/lcov-report/src/index.html +111 -0
- package/coverage/lcov-report/src/locale/i18nUtils.ts.html +161 -0
- package/coverage/lcov-report/src/locale/index.html +111 -0
- package/coverage/lcov-report/src/utils/AttentionMessages.tsx.html +326 -0
- package/coverage/lcov-report/src/utils/Constants.ts.html +176 -0
- package/coverage/lcov-report/src/utils/RecommendationError.tsx.html +500 -0
- package/coverage/lcov-report/src/utils/RecommendationUtils.ts.html +467 -0
- package/coverage/lcov-report/src/utils/Translations.ts.html +107 -0
- package/coverage/lcov-report/src/utils/Utils.ts.html +263 -0
- package/coverage/lcov-report/src/utils/Validations.ts.html +815 -0
- package/coverage/lcov-report/src/utils/index.html +201 -0
- package/coverage/lcov.info +1581 -0
- package/jest.config.js +2 -1
- package/package.json +2 -2
- package/src/RecommendationScreen.d.ts +2 -3
- package/src/__tests__/RecommendationUtils.test.js +6 -29
- package/src/__tests__/Utils.test.js +1 -1
- package/src/__tests__/Validations.test.js +19 -7
- package/src/__tests__/components/Emotion.test.jsx +7 -8
- package/src/__tests__/utils.d.ts +3 -1
- package/src/__tests__/utils.jsx +38 -9
- package/src/components/Icon.d.ts +13 -0
- package/src/components/Icon.jsx +42 -0
- package/src/components/LimitationMessage.d.ts +1 -2
- package/src/components/RecommendationModal.d.ts +2 -3
- package/src/components/RecommendationModal.jsx +2 -1
- package/src/components/activity/ActivityIntensity.jsx +4 -3
- package/src/locale/da/messages.js +1 -1
- package/src/locale/da/messages.po +14 -10
- package/src/locale/de/messages.js +1 -1
- package/src/locale/de/messages.po +14 -10
- package/src/locale/en/messages.js +1 -1
- package/src/locale/en/messages.po +14 -10
- package/src/locale/es/messages.js +1 -1
- package/src/locale/es/messages.po +14 -10
- package/src/locale/fr/messages.js +1 -1
- package/src/locale/fr/messages.po +14 -10
- package/src/locale/it/messages.js +1 -1
- package/src/locale/it/messages.po +14 -10
- package/src/types/enum.d.ts +9 -8
- package/src/types/enum.js +9 -8
- package/src/utils/AttentionMessages.d.ts +16 -10
- package/src/utils/AttentionMessages.jsx +15 -10
- package/src/utils/RecommendationError.d.ts +1 -0
- package/src/utils/RecommendationError.jsx +3 -1
- package/src/utils/RecommendationUtils.d.ts +2 -3
- package/src/utils/RecommendationUtils.js +10 -6
- package/src/utils/Utils.d.ts +2 -1
- package/src/utils/Utils.js +5 -1
- package/src/utils/Validations.d.ts +2 -1
- package/src/utils/Validations.js +25 -13
- package/tsconfig.json +7 -5
- package/App.tsx +0 -157
- package/index.ts +0 -6
- package/src/RecommendationScreen.tsx +0 -461
- package/src/__tests__/RecommendationScreen.test.tsx +0 -1231
- package/src/__tests__/RecommendationUtils.test.ts +0 -356
- package/src/__tests__/Translate.test.tsx +0 -31
- package/src/__tests__/Utils.test.ts +0 -91
- package/src/__tests__/Validations.test.ts +0 -625
- package/src/__tests__/components/Activity.test.tsx +0 -163
- package/src/__tests__/components/Emotion.test.tsx +0 -110
- package/src/__tests__/components/Header.test.tsx +0 -44
- package/src/__tests__/components/InfoBars.test.tsx +0 -152
- package/src/__tests__/components/InvisibleNumberInput.test.tsx +0 -294
- package/src/__tests__/components/LimitationMessage.test.tsx +0 -58
- package/src/__tests__/components/MoodIcon.test.tsx +0 -45
- package/src/__tests__/components/RecommendationModal.test.tsx +0 -169
- package/src/__tests__/components/RecommendedCarbs.test.tsx +0 -234
- package/src/__tests__/components/RecommendedInsulin.test.tsx +0 -241
- package/src/__tests__/components/Remeasure.test.tsx +0 -97
- package/src/__tests__/components/TransferToLogbook.test.tsx +0 -38
- package/src/__tests__/components/TwoOptionModal.test.tsx +0 -72
- package/src/__tests__/utils.tsx +0 -116
- package/src/components/Header.tsx +0 -89
- package/src/components/Icon.js +0 -41
- package/src/components/InfoBars.tsx +0 -108
- package/src/components/InvisibleNumberInput.tsx +0 -98
- package/src/components/LimitationMessage.tsx +0 -38
- package/src/components/LineSeparator.tsx +0 -24
- package/src/components/RecentInsulin.tsx +0 -101
- package/src/components/RecommendationModal.tsx +0 -224
- package/src/components/RecommendedCarbs.tsx +0 -259
- package/src/components/RecommendedInsulin.tsx +0 -175
- package/src/components/Remeasure.tsx +0 -120
- package/src/components/TransferToLogbook.tsx +0 -100
- package/src/components/TwoOptionModal.tsx +0 -185
- package/src/components/activity/Activity.tsx +0 -77
- package/src/components/activity/ActivityIcon.tsx +0 -54
- package/src/components/activity/ActivityIntensity.tsx +0 -58
- package/src/components/mood/Emotion.tsx +0 -66
- package/src/components/mood/MoodIcon.tsx +0 -60
- package/src/locale/CleanLanguage.ts +0 -13
- package/src/locale/i18nUtils.ts +0 -27
- package/src/types/enum.ts +0 -107
- package/src/types/types.ts +0 -16
- package/src/utils/AttentionMessages.tsx +0 -75
- package/src/utils/Constants.ts +0 -32
- package/src/utils/RecommendationError.tsx +0 -133
- package/src/utils/RecommendationUtils.ts +0 -125
- package/src/utils/Translations.ts +0 -9
- package/src/utils/Utils.ts +0 -57
- package/src/utils/Validations.ts +0 -233
package/jest.config.js
CHANGED
|
@@ -24,7 +24,8 @@ module.exports = {
|
|
|
24
24
|
"!src/types/**.*",
|
|
25
25
|
"!src/App.tsx",
|
|
26
26
|
"!src/locale/CleanLanguage.ts",
|
|
27
|
-
"!src/utils/RecommendationError.ts"
|
|
27
|
+
"!src/utils/RecommendationError.ts",
|
|
28
|
+
"!src/components/Icon.tsx"
|
|
28
29
|
],
|
|
29
30
|
// The directory where Jest should output its coverage files
|
|
30
31
|
coverageDirectory: "coverage",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hedia/recommendation-screen",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Hedia Recommendation Screen for Bolus and Carbohydrates",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"react-test-renderer": "16.13.1",
|
|
69
69
|
"tslint": "6.1.2",
|
|
70
70
|
"tslint-config-prettier": "1.18.0",
|
|
71
|
-
"typescript": "4.1.
|
|
71
|
+
"typescript": "4.1.5"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"moment": "2.27.0",
|
|
@@ -3,7 +3,6 @@ import { AppStateStatus } from "react-native";
|
|
|
3
3
|
import { BloodGlucoseUnit, BloodKetonesUnit, Languages, Logbook, UserSettings } from "@hedia/types";
|
|
4
4
|
import { RecommendationError } from "./utils/RecommendationError";
|
|
5
5
|
import { IActivityDisplayProps, IRecommendationParams, logbookEntry } from "./types/types";
|
|
6
|
-
import { AttentionMessage } from "./utils/AttentionMessages";
|
|
7
6
|
interface IResult {
|
|
8
7
|
suggested: number;
|
|
9
8
|
entered: number | null;
|
|
@@ -71,9 +70,9 @@ export default class RecommendationScreen extends React.Component<IRecommendatio
|
|
|
71
70
|
handleMoodSelected: (selectedMood: IState["selectedMood"]) => void;
|
|
72
71
|
updateInsulinRecommendation: (enteredInsulin: number) => void;
|
|
73
72
|
handleTransfer: () => void;
|
|
74
|
-
getBGLevelAttentionMessage: () =>
|
|
73
|
+
getBGLevelAttentionMessage: () => string | null;
|
|
75
74
|
getBGLevelRemeasurementReminder: () => number;
|
|
76
|
-
getLimitationAttentionMessage: () =>
|
|
75
|
+
getLimitationAttentionMessage: () => string | null;
|
|
77
76
|
render(): JSX.Element;
|
|
78
77
|
}
|
|
79
78
|
export {};
|
|
@@ -5,37 +5,20 @@ const enum_1 = require("../types/enum");
|
|
|
5
5
|
const AttentionMessages_1 = require("../utils/AttentionMessages");
|
|
6
6
|
const RecommendationError_1 = require("../utils/RecommendationError");
|
|
7
7
|
const RecommendationUtils_1 = require("../utils/RecommendationUtils");
|
|
8
|
+
const utils_1 = require("./utils");
|
|
8
9
|
const ActivityIntensity = types_1.Activity.Enums.ActivityIntensity;
|
|
9
10
|
const { moderate } = ActivityIntensity;
|
|
10
11
|
describe(`Actions based on the blood glucose level:: InsulinSettingsUtils `, () => {
|
|
11
12
|
const logbookUnder15MMOL = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
carbohydrates_suggested_grams: 25,
|
|
15
|
-
client_timestamp: `25`,
|
|
16
|
-
client_version: `25`,
|
|
17
|
-
entry_timestamp: `25`,
|
|
18
|
-
event_uuid: null,
|
|
19
|
-
insulin_entered_units: 25,
|
|
20
|
-
insulin_suggested_units: 25,
|
|
21
|
-
is_deleted: null,
|
|
22
|
-
mood: 2,
|
|
23
|
-
settings_uuid: `25`,
|
|
24
|
-
uuid: `aaa`,
|
|
25
|
-
device_and_os: `ios 12.1.2`,
|
|
26
|
-
overwritten_by_id: null,
|
|
27
|
-
server_timestamp: null,
|
|
28
|
-
server_version: null,
|
|
29
|
-
utc_timezone_offset: null,
|
|
30
|
-
blood_ketones_millimolar: null,
|
|
31
|
-
carbohydrates_modified_suggested_grams: null,
|
|
13
|
+
...utils_1.generateDefaultLogbook(),
|
|
14
|
+
blood_glucose_millimolar: 14.9,
|
|
32
15
|
};
|
|
33
16
|
const logbookOver15MMOL = {
|
|
34
|
-
...
|
|
17
|
+
...utils_1.generateDefaultLogbook(),
|
|
35
18
|
blood_glucose_millimolar: 15.1,
|
|
36
19
|
};
|
|
37
20
|
const logbookWithNullBloodGlucose = {
|
|
38
|
-
...
|
|
21
|
+
...utils_1.generateDefaultLogbook(),
|
|
39
22
|
blood_glucose_millimolar: null,
|
|
40
23
|
};
|
|
41
24
|
const inactiveDate = new Date(Date.now() + types_1.Milliseconds.Minute * 15.1);
|
|
@@ -44,13 +27,7 @@ describe(`Actions based on the blood glucose level:: InsulinSettingsUtils `, ()
|
|
|
44
27
|
activityDate: activeDate,
|
|
45
28
|
activityDuration: 10,
|
|
46
29
|
activityIntensity: moderate,
|
|
47
|
-
activitySettings:
|
|
48
|
-
hard: { fromFortysix: 0.25, fromThirty: 0.99, fromZero: 0.25 },
|
|
49
|
-
light: { fromFortysix: 0.25, fromThirty: 0.25, fromZero: 0.25 },
|
|
50
|
-
post: { fromFortysix: 0.25, fromThirty: 0.25, fromZero: 0.25 },
|
|
51
|
-
moderate: { fromZero: 0.7, fromThirty: 0.9, fromFortysix: 0.7 },
|
|
52
|
-
target: 8.3,
|
|
53
|
-
},
|
|
30
|
+
activitySettings: utils_1.generateDefaultActivitySettings(),
|
|
54
31
|
};
|
|
55
32
|
const inactiveActivity = { ...activeActivity, activityDate: inactiveDate };
|
|
56
33
|
it.each `
|
|
@@ -45,7 +45,7 @@ describe(`Utils helper functions`, () => {
|
|
|
45
45
|
${-1} | ${Constants_1.ACTIVITY_DURATION_MINUTES_LIMITS} | ${false}
|
|
46
46
|
${3601} | ${Constants_1.ACTIVITY_DURATION_MINUTES_LIMITS} | ${false}
|
|
47
47
|
`(`Check if a number is in the interval`, ({ value, interval, expected }) => {
|
|
48
|
-
expect(Utils_1.Utils.
|
|
48
|
+
expect(Utils_1.Utils.isInRange(value, interval)).toBe(expected);
|
|
49
49
|
});
|
|
50
50
|
test.each `
|
|
51
51
|
value | expected
|
|
@@ -23,6 +23,7 @@ const types_1 = require("@hedia/types");
|
|
|
23
23
|
const Constants_1 = require("../utils/Constants");
|
|
24
24
|
const Errors = __importStar(require("../utils/RecommendationError"));
|
|
25
25
|
const Validations = __importStar(require("../utils/Validations"));
|
|
26
|
+
const utils_1 = require("./utils");
|
|
26
27
|
const ActivityEnum = types_1.Activity.Enums.ActivityEnum;
|
|
27
28
|
const ActivityIntensity = types_1.Activity.Enums.ActivityIntensity;
|
|
28
29
|
const InjectionMethod = types_1.UserSettings.Enums.InjectionMethod;
|
|
@@ -94,6 +95,23 @@ describe(`Test validations functions for the recommendation props`, () => {
|
|
|
94
95
|
`(`Validation checking on supported languages types $invalidLanguage throws error`, (invalidLanguage) => {
|
|
95
96
|
expect(() => Validations.checkLanguage(invalidLanguage)).toThrowError(Errors.LanguageError());
|
|
96
97
|
});
|
|
98
|
+
it.each `
|
|
99
|
+
validLatestLogbookFrom6Hours
|
|
100
|
+
${utils_1.generateDefaultLogbook()}
|
|
101
|
+
${null}
|
|
102
|
+
`(`Validation checking on the latest logbook from the latest 6 hours with a valid logbook`, ({ validLatestLogbookFrom6Hours }) => {
|
|
103
|
+
expect(() => Validations.checkLatestLogbook6Hours(validLatestLogbookFrom6Hours)).not.toThrowError(Errors.LatestLogbook6HoursBGLError());
|
|
104
|
+
});
|
|
105
|
+
it.each `
|
|
106
|
+
invalidLatestLogbookFrom6Hours
|
|
107
|
+
${undefined}
|
|
108
|
+
${{}}
|
|
109
|
+
${[]}
|
|
110
|
+
${{ ...utils_1.generateDefaultLogbook(), blood_glucose_millimolar: 1 }}
|
|
111
|
+
${{ ...utils_1.generateDefaultLogbook(), blood_glucose_millimolar: 33.4 }}
|
|
112
|
+
`(`Validation checking on the latest logbook from the latest 6 hours with an invalid logbook `, ({ invalidLatestLogbookFrom6Hours }) => {
|
|
113
|
+
expect(() => Validations.checkLatestLogbook6Hours(invalidLatestLogbookFrom6Hours)).toThrowError(Errors.LatestLogbook6HoursBGLError());
|
|
114
|
+
});
|
|
97
115
|
test.each `
|
|
98
116
|
validActivityType
|
|
99
117
|
${ActivityEnum.Walk}
|
|
@@ -169,13 +187,7 @@ describe(`Test validations for the calculator parameters`, () => {
|
|
|
169
187
|
`(`Validation checking on activity $invalidIntensity throws error`, ({ invalidIntensity }) => {
|
|
170
188
|
expect(() => Validations.checkActivityIntensity(invalidIntensity)).toThrowError(Errors.ActivityIntensityError());
|
|
171
189
|
});
|
|
172
|
-
const validActivitySettings1 =
|
|
173
|
-
light: { fromZero: 0.25, fromThirty: 0.9, fromFortysix: 0.25 },
|
|
174
|
-
moderate: { fromZero: 0.25, fromThirty: 0.99, fromFortysix: 0.25 },
|
|
175
|
-
hard: { fromZero: 0.25, fromThirty: 0.9, fromFortysix: 1 },
|
|
176
|
-
post: { fromZero: 0, fromThirty: 0, fromFortysix: 0.25 },
|
|
177
|
-
target: 8.3,
|
|
178
|
-
};
|
|
190
|
+
const validActivitySettings1 = utils_1.generateDefaultActivitySettings();
|
|
179
191
|
const validActivitySettings2 = {
|
|
180
192
|
...validActivitySettings1,
|
|
181
193
|
hard: { fromZero: 1, fromThirty: 0.99, fromFortysix: null },
|
|
@@ -43,16 +43,15 @@ describe(`Emotion - Component`, () => {
|
|
|
43
43
|
react_native_testing_library_1.fireEvent(newIcon, `onPress`);
|
|
44
44
|
expect(mockedStateMood).toBe(mood);
|
|
45
45
|
wrapper.update(<Emotion_1.default moodSelected={mockSelected} currentMood={mockedStateMood}/>);
|
|
46
|
-
Object.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
expect(utils_1.getIcon(wrapper,
|
|
51
|
-
expect(utils_1.getIcon(wrapper, MoodEnum[key], false)).toBeNull();
|
|
46
|
+
const moodValues = Object.values(MoodEnum).filter((value) => typeof value === `string`);
|
|
47
|
+
moodValues.forEach((value) => {
|
|
48
|
+
if (moodName === value) {
|
|
49
|
+
expect(utils_1.getIcon(wrapper, value, true)).not.toBeNull();
|
|
50
|
+
expect(utils_1.getIcon(wrapper, value, false)).toBeNull();
|
|
52
51
|
}
|
|
53
52
|
else {
|
|
54
|
-
expect(utils_1.getIcon(wrapper,
|
|
55
|
-
expect(utils_1.getIcon(wrapper,
|
|
53
|
+
expect(utils_1.getIcon(wrapper, value, false)).not.toBeNull();
|
|
54
|
+
expect(utils_1.getIcon(wrapper, value, true)).toBeNull();
|
|
56
55
|
}
|
|
57
56
|
});
|
|
58
57
|
});
|
package/src/__tests__/utils.d.ts
CHANGED
|
@@ -3,10 +3,12 @@ import { RenderAPI } from "react-native-testing-library";
|
|
|
3
3
|
import { ReactTestInstance } from "react-test-renderer";
|
|
4
4
|
import { IRecommendationProps } from "../RecommendationScreen";
|
|
5
5
|
import { TestIdEnum } from "../types/enum";
|
|
6
|
-
import { IActivityParams, IRecommendationParams } from "../types/types";
|
|
6
|
+
import { IActivityParams, IRecommendationParams, logbookEntry } from "../types/types";
|
|
7
7
|
export declare function getRecommendationProps(partials?: Partial<IRecommendationProps>): IRecommendationProps;
|
|
8
8
|
export declare function generateDefaultCalculatorParams(): IRecommendationParams;
|
|
9
9
|
export declare function generateActivityProps(): IActivityParams;
|
|
10
|
+
export declare function generateDefaultActivitySettings(): IActivityParams["activitySettings"];
|
|
11
|
+
export declare function generateDefaultLogbook(): logbookEntry;
|
|
10
12
|
export declare function expectTextExists(component: RenderAPI, text: string | RegExp): void;
|
|
11
13
|
export declare function queryTextFromComponent(wrapper: RenderAPI, testID: TestIdEnum): string;
|
|
12
14
|
export declare function expectTextNotExists(component: RenderAPI, text: string | RegExp): void;
|
package/src/__tests__/utils.jsx
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getIcon = exports.i18nProvided = exports.expectTextNotExists = exports.queryTextFromComponent = exports.expectTextExists = exports.generateActivityProps = exports.generateDefaultCalculatorParams = exports.getRecommendationProps = void 0;
|
|
6
|
+
exports.getIcon = exports.i18nProvided = exports.expectTextNotExists = exports.queryTextFromComponent = exports.expectTextExists = exports.generateDefaultLogbook = exports.generateDefaultActivitySettings = exports.generateActivityProps = exports.generateDefaultCalculatorParams = exports.getRecommendationProps = void 0;
|
|
7
7
|
const types_1 = require("@hedia/types");
|
|
8
8
|
const react_1 = require("@lingui/react");
|
|
9
9
|
const react_2 = __importDefault(require("react"));
|
|
@@ -21,7 +21,7 @@ function getRecommendationProps(partials) {
|
|
|
21
21
|
bloodGlucoseUnit: partials?.bloodGlucoseUnit ?? types_1.BloodGlucoseUnit.MMOL_L,
|
|
22
22
|
language: partials?.language ?? types_1.Languages.en,
|
|
23
23
|
userReminder: partials?.userReminder ?? 1.5,
|
|
24
|
-
latestLogbookFrom6Hours: partials?.latestLogbookFrom6Hours ??
|
|
24
|
+
latestLogbookFrom6Hours: partials?.latestLogbookFrom6Hours ?? generateDefaultLogbook(),
|
|
25
25
|
calculatorParams: partials?.calculatorParams ?? generateDefaultCalculatorParams(),
|
|
26
26
|
injectionMethod: partials?.injectionMethod ?? PenHalf,
|
|
27
27
|
transferToLogbook: partials?.transferToLogbook ?? jest.fn(),
|
|
@@ -65,16 +65,45 @@ function generateActivityProps() {
|
|
|
65
65
|
activityDate: new Date(),
|
|
66
66
|
activityDuration: 30,
|
|
67
67
|
activityIntensity: moderate,
|
|
68
|
-
activitySettings:
|
|
69
|
-
hard: { fromFortysix: null, fromThirty: 0.25, fromZero: 1 },
|
|
70
|
-
light: { fromFortysix: 0.5, fromThirty: 0.75, fromZero: 1 },
|
|
71
|
-
moderate: { fromFortysix: 0.25, fromThirty: 0.5, fromZero: 1 },
|
|
72
|
-
post: { fromFortysix: 0.5, fromThirty: 0.5, fromZero: 1 },
|
|
73
|
-
target: 9,
|
|
74
|
-
},
|
|
68
|
+
activitySettings: generateDefaultActivitySettings(),
|
|
75
69
|
};
|
|
76
70
|
}
|
|
77
71
|
exports.generateActivityProps = generateActivityProps;
|
|
72
|
+
function generateDefaultActivitySettings() {
|
|
73
|
+
return {
|
|
74
|
+
hard: { fromFortysix: null, fromThirty: 0.25, fromZero: 1 },
|
|
75
|
+
light: { fromFortysix: 0.5, fromThirty: 0.75, fromZero: 1 },
|
|
76
|
+
moderate: { fromFortysix: 0.25, fromThirty: 0.5, fromZero: 1 },
|
|
77
|
+
post: { fromFortysix: 0.5, fromThirty: 0.5, fromZero: 1 },
|
|
78
|
+
target: 9,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
exports.generateDefaultActivitySettings = generateDefaultActivitySettings;
|
|
82
|
+
function generateDefaultLogbook() {
|
|
83
|
+
return {
|
|
84
|
+
blood_glucose_millimolar: 6,
|
|
85
|
+
carbohydrates_entered_grams: 25,
|
|
86
|
+
carbohydrates_suggested_grams: 25,
|
|
87
|
+
client_timestamp: `25`,
|
|
88
|
+
client_version: `25`,
|
|
89
|
+
entry_timestamp: `25`,
|
|
90
|
+
event_uuid: null,
|
|
91
|
+
insulin_entered_units: 25,
|
|
92
|
+
insulin_suggested_units: 25,
|
|
93
|
+
is_deleted: null,
|
|
94
|
+
mood: 2,
|
|
95
|
+
settings_uuid: `25`,
|
|
96
|
+
uuid: `aaa`,
|
|
97
|
+
device_and_os: `ios 12.1.2`,
|
|
98
|
+
overwritten_by_id: null,
|
|
99
|
+
server_timestamp: null,
|
|
100
|
+
server_version: null,
|
|
101
|
+
utc_timezone_offset: null,
|
|
102
|
+
blood_ketones_millimolar: null,
|
|
103
|
+
carbohydrates_modified_suggested_grams: null,
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
exports.generateDefaultLogbook = generateDefaultLogbook;
|
|
78
107
|
function expectTextExists(component, text) {
|
|
79
108
|
const element = component.queryByText(text);
|
|
80
109
|
/*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StyleSheet } from "react-native";
|
|
3
|
+
interface IProps {
|
|
4
|
+
iconIdentifier: string;
|
|
5
|
+
iconStyle: StyleSheet.NamedStyles<any>;
|
|
6
|
+
}
|
|
7
|
+
export default class Icon extends React.Component<IProps> {
|
|
8
|
+
static defaultProps: any;
|
|
9
|
+
_root: any;
|
|
10
|
+
setNativeProps(nativeProps: any): void;
|
|
11
|
+
render(): JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
// @ts-nocheck
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const IconSets = {
|
|
10
|
+
AntDesign: require(`react-native-vector-icons/AntDesign`),
|
|
11
|
+
Feather: require(`react-native-vector-icons/Feather`),
|
|
12
|
+
EvilIcons: require(`react-native-vector-icons/EvilIcons`),
|
|
13
|
+
Ionicons: require(`react-native-vector-icons/Ionicons`),
|
|
14
|
+
FontAwesome: require(`react-native-vector-icons/FontAwesome`),
|
|
15
|
+
Entypo: require(`react-native-vector-icons/Entypo`),
|
|
16
|
+
};
|
|
17
|
+
class Icon extends react_1.default.Component {
|
|
18
|
+
setNativeProps(nativeProps) {
|
|
19
|
+
this._root.setNativeProps(nativeProps);
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
const iconParts = this.props.iconIdentifier.split(`/`);
|
|
23
|
+
let iconPackageName = iconParts[0];
|
|
24
|
+
let iconName = iconParts[1];
|
|
25
|
+
if (!IconSets[iconPackageName]) {
|
|
26
|
+
iconPackageName = `FontAwesome`;
|
|
27
|
+
iconName = `question`;
|
|
28
|
+
}
|
|
29
|
+
const clonedProps = {
|
|
30
|
+
...this.props,
|
|
31
|
+
name: iconName,
|
|
32
|
+
iconIdentifier: undefined,
|
|
33
|
+
ref: (component) => (this._root = component),
|
|
34
|
+
};
|
|
35
|
+
const IconClass = IconSets[iconPackageName].default;
|
|
36
|
+
return <IconClass {...clonedProps}/>;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.default = Icon;
|
|
40
|
+
Icon.defaultProps = {
|
|
41
|
+
iconIdentifier: `FontAwesome/question`,
|
|
42
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { AttentionMessage } from "../utils/AttentionMessages";
|
|
3
2
|
export interface ILimitationMessageProps {
|
|
4
|
-
limitationMessage:
|
|
3
|
+
limitationMessage: string | null;
|
|
5
4
|
onPressNextButton(): void;
|
|
6
5
|
}
|
|
7
6
|
export default class LimitationMessage extends React.Component<ILimitationMessageProps> {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { AttentionMessage } from "../utils/AttentionMessages";
|
|
3
2
|
interface IModalProps {
|
|
4
3
|
isVisible: boolean;
|
|
5
4
|
suggestedCarbohydrates: number | null;
|
|
6
|
-
attentionMessage:
|
|
7
|
-
limitationMessage:
|
|
5
|
+
attentionMessage: string | null;
|
|
6
|
+
limitationMessage: string | null;
|
|
8
7
|
onClickOkButton(): void;
|
|
9
8
|
onAcceptCarbohydrates(): void;
|
|
10
9
|
onDeclineCarbohydrates(): void;
|
|
@@ -95,7 +95,8 @@ class RecommendationModal extends React.Component {
|
|
|
95
95
|
</React.Fragment>);
|
|
96
96
|
};
|
|
97
97
|
this.firstPage = () => {
|
|
98
|
-
|
|
98
|
+
const { limitationMessage } = this.props;
|
|
99
|
+
return <LimitationMessage_1.default limitationMessage={limitationMessage} onPressNextButton={this.onPressNextButton}/>;
|
|
99
100
|
};
|
|
100
101
|
this.state = {
|
|
101
102
|
firstPageVisible: !!this.props.limitationMessage,
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const types_1 = require("@hedia/types");
|
|
6
7
|
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const react_native_1 = require("react-native");
|
|
8
9
|
const Translations_1 = require("../../utils/Translations");
|
|
@@ -35,13 +36,13 @@ const activityIntensityStyles = react_native_1.StyleSheet.create({
|
|
|
35
36
|
padding: `5%`,
|
|
36
37
|
borderRadius: 5,
|
|
37
38
|
},
|
|
38
|
-
|
|
39
|
+
[types_1.Activity.Enums.ActivityIntensity.light]: {
|
|
39
40
|
backgroundColor: `#A5D871`,
|
|
40
41
|
},
|
|
41
|
-
|
|
42
|
+
[types_1.Activity.Enums.ActivityIntensity.moderate]: {
|
|
42
43
|
backgroundColor: `#F9BD5A`,
|
|
43
44
|
},
|
|
44
|
-
|
|
45
|
+
[types_1.Activity.Enums.ActivityIntensity.hard]: {
|
|
45
46
|
backgroundColor: `#EC5466`,
|
|
46
47
|
},
|
|
47
48
|
intensityContainer: {
|
|
@@ -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","Blood Ketone Level":"Blodketonniveau","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 could not find your recent boluses":"Error. Hedia Calculator could not find your recent boluses","Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units":function(a){return["Ups! Hedia kan ikke anbefale mere end ",a("SAFETY_INSULIN_LIMIT")," 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.":"Fejl. Hedia beregneren underst\xF8tter ikke dit nuv\xE6rende blodketonniveau.","Error. Hedia Calculator does not support your current blood ketone unit.":"Fejl. Hedia beregneren underst\xF8tter ikke din nuv\xE6rende blodketon enhed.","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 {SAFETY_INSULIN_LIMIT} units of insulin per calculation.":function(a){return["Hedia underst\xF8tter maksimalt ",a("SAFETY_INSULIN_LIMIT")," units af insulin per beregning"]},"Hedia doesn't support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {0}% to {1} units for this calculation.":function(a){return["Hedia underst\xF8tter maksimalt ",a("SAFETY_INSULIN_LIMIT")," units af insulin per beregning, men p\xE5 grund af den fysiske aktivitet du har indtastet er gr\xE6nsen reduceret med yderligere ",a("0"),"% til ",a("1")," 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.{1} Hedia never recommends more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {2}% to {3}.":function(a){return["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("SAFETY_INSULIN_LIMIT")," units af insulin per beregning, men p\xE5 grund af den fysiske aktivitet du har indtastet er gr\xE6nsen reduceret med yderligere ",a("2"),"% til ",a("3"),"."]},"Your recommendation would have been higher than {SAFETY_INSULIN_LIMIT} units of insulin, but it has been limited for safety reasons. Hedia never recommends more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.":function(a){return["Din anbefaling ville have v\xE6ret h\xF8jere end ",a("SAFETY_INSULIN_LIMIT")," units af insulin, men den er blevet begr\xE6nset af sikkerhedshensyn. Hedia anbefaler aldrig mere end ",a("SAFETY_INSULIN_LIMIT")," units af insulin per beregning."]},"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":"Blodketonniveau","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 could not find your recent boluses":"Error. Hedia Calculator could not find your recent boluses","Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units":function(a){return["Ups! Hedia kan ikke anbefale mere end ",a("SAFETY_INSULIN_LIMIT")," 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 the blood glucose level of your latest logbook entry from the last 6 hours.":"Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.","Error. Hedia Calculator does not support your activity intensity value":"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.":"Fejl. Hedia beregneren underst\xF8tter ikke dit nuv\xE6rende blodketonniveau.","Error. Hedia Calculator does not support your current blood ketone unit.":"Fejl. Hedia beregneren underst\xF8tter ikke din nuv\xE6rende blodketon enhed.","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 {SAFETY_INSULIN_LIMIT} units of insulin per calculation.":function(a){return["Hedia underst\xF8tter maksimalt ",a("SAFETY_INSULIN_LIMIT")," units af insulin per beregning"]},"Hedia doesn't support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {0}% to {1} units for this calculation.":function(a){return["Hedia underst\xF8tter maksimalt ",a("SAFETY_INSULIN_LIMIT")," units af insulin per beregning, men p\xE5 grund af den fysiske aktivitet du har indtastet er gr\xE6nsen reduceret med yderligere ",a("0"),"% til ",a("1")," 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.{1} Hedia never recommends more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {2}% to {3}.":function(a){return["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("SAFETY_INSULIN_LIMIT")," units af insulin per beregning, men p\xE5 grund af den fysiske aktivitet du har indtastet er gr\xE6nsen reduceret med yderligere ",a("2"),"% til ",a("3"),"."]},"Your recommendation would have been higher than {SAFETY_INSULIN_LIMIT} units of insulin, but it has been limited for safety reasons. Hedia never recommends more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.":function(a){return["Din anbefaling ville have v\xE6ret h\xF8jere end ",a("SAFETY_INSULIN_LIMIT")," units af insulin, men den er blevet begr\xE6nset af sikkerhedshensyn. Hedia anbefaler aldrig mere end ",a("SAFETY_INSULIN_LIMIT")," units af insulin per beregning."]},"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"}};
|
|
@@ -60,18 +60,22 @@ msgstr "Dit blodsukkerniveau ligger udenfor de anbefalede grænser for blodsukke
|
|
|
60
60
|
msgid "Entered"
|
|
61
61
|
msgstr "Indtastet"
|
|
62
62
|
|
|
63
|
-
#: src/utils/RecommendationError.tsx:
|
|
63
|
+
#: src/utils/RecommendationError.tsx:27
|
|
64
64
|
msgid "Error. Hedia Calculator could not find your recent boluses"
|
|
65
65
|
msgstr ""
|
|
66
66
|
|
|
67
|
-
#: src/utils/RecommendationError.tsx:
|
|
67
|
+
#: src/utils/RecommendationError.tsx:25
|
|
68
68
|
msgid "Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units"
|
|
69
69
|
msgstr "Ups! Hedia kan ikke anbefale mere end {SAFETY_INSULIN_LIMIT} enheder hurtigtvirkende insulin i én dosis"
|
|
70
70
|
|
|
71
|
-
#: src/utils/RecommendationError.tsx:
|
|
71
|
+
#: src/utils/RecommendationError.tsx:26
|
|
72
72
|
msgid "Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours"
|
|
73
73
|
msgstr "Ups! Indtast kun de hurtigtvirkende insulindoser der er under 4 timer gamle, så tager Hedia højde for aktiv insulin"
|
|
74
74
|
|
|
75
|
+
#: src/utils/RecommendationError.tsx:22
|
|
76
|
+
msgid "Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours."
|
|
77
|
+
msgstr ""
|
|
78
|
+
|
|
75
79
|
#: src/utils/RecommendationError.tsx:15
|
|
76
80
|
msgid "Error. Hedia Calculator does not support your activity intensity value"
|
|
77
81
|
msgstr "Ups! Hedia har lavet en fejl. Vælg venligst intensitet for aktivitet igen"
|
|
@@ -84,23 +88,23 @@ msgstr "Ups! Der er sket en fejl ved den valgte aktivitetstype. Gå venligst til
|
|
|
84
88
|
msgid "Error. Hedia Calculator does not support your current blood glucose level."
|
|
85
89
|
msgstr "Ups! Hedia har lavet en fejl. Indtast venligst en blodsukkerværdi indenfor Hedia’s definerede grænser for blodsukker"
|
|
86
90
|
|
|
87
|
-
#: src/utils/RecommendationError.tsx:
|
|
91
|
+
#: src/utils/RecommendationError.tsx:32
|
|
88
92
|
msgid "Error. Hedia Calculator does not support your current blood glucose unit."
|
|
89
93
|
msgstr "Ups! Gå venligst til indstillinger blodsukker og opdater blodsukker enhed til mmol/L eller mg/dL"
|
|
90
94
|
|
|
91
|
-
#: src/utils/RecommendationError.tsx:
|
|
95
|
+
#: src/utils/RecommendationError.tsx:23
|
|
92
96
|
msgid "Error. Hedia Calculator does not support your current blood ketone level."
|
|
93
97
|
msgstr "Fejl. Hedia beregneren understøtter ikke dit nuværende blodketonniveau."
|
|
94
98
|
|
|
95
|
-
#: src/utils/RecommendationError.tsx:
|
|
99
|
+
#: src/utils/RecommendationError.tsx:31
|
|
96
100
|
msgid "Error. Hedia Calculator does not support your current blood ketone unit."
|
|
97
101
|
msgstr "Fejl. Hedia beregneren understøtter ikke din nuværende blodketon enhed."
|
|
98
102
|
|
|
99
|
-
#: src/utils/RecommendationError.tsx:
|
|
103
|
+
#: src/utils/RecommendationError.tsx:30
|
|
100
104
|
msgid "Error. Hedia Calculator does not support your current language."
|
|
101
105
|
msgstr "Ups! Gå venligst til indstillinger for sprog og vælg dansk eller engelsk"
|
|
102
106
|
|
|
103
|
-
#: src/utils/RecommendationError.tsx:
|
|
107
|
+
#: src/utils/RecommendationError.tsx:29
|
|
104
108
|
msgid "Error. Hedia Calculator does not support your injection method."
|
|
105
109
|
msgstr "Ups! Gå venligst til indstillinger for insulinberegner og vælg behandlingstype"
|
|
106
110
|
|
|
@@ -124,11 +128,11 @@ msgstr "Ups! Gå venligst til insulinindstillinger under indstillinger for insul
|
|
|
124
128
|
msgid "Error. Please verify that your insulin to carb ratio value is correct."
|
|
125
129
|
msgstr "Ups! Gå venligst til insulinindstillinger under indstillinger for insulinberegner og bekræft at din kulhydrat-insulinratio er korrekt"
|
|
126
130
|
|
|
127
|
-
#: src/utils/RecommendationError.tsx:
|
|
131
|
+
#: src/utils/RecommendationError.tsx:24
|
|
128
132
|
msgid "Error. Please verify that your target blood glucose value is correct."
|
|
129
133
|
msgstr "Ups! Gå venligst til indstillinger for blodsukker og bekræft at blodsukkerniveaur er indstillet efter dine personlige mål"
|
|
130
134
|
|
|
131
|
-
#: src/utils/RecommendationError.tsx:
|
|
135
|
+
#: src/utils/RecommendationError.tsx:28
|
|
132
136
|
msgid "Error. Please verify your notifications settings."
|
|
133
137
|
msgstr "Ups! Gå venligst til indstillinger for notifikationer og bekræft at notifikationer er indstillet korrekt"
|
|
134
138
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),v0=!s[1];if(ord)return"other";return n==1&&v0?"one":"other"}},messages:{"Active Insulin":"Aktives Insulin","Activity":"Aktivit\xE4t","Additional":"Zus\xE4tzlich","Attention":"Achtung","Based on the selected activity your insulin recommendation is reduced by:":"Aufgrund der gew\xE4hlten Aktivit\xE4t wird Ihre Insulinempfehlung reduziert um:","Blood Glucose Level":"Blutzuckerspiegel","Blood Ketone Level":"Blutketonspiegel","Carbohydrates":"Kohlenhydrate","Close calculation":"Berechnung schlie\xDFen","Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.":"Bet\xE4tigen Sie sich erst dann k\xF6rperlich, wenn Ihr Blutzuckerspiegel vor der k\xF6rperlichen Aktivit\xE4t innerhalb des empfohlenen Wertebereichs liegt.","Entered":"Eingegeben","Error. Hedia Calculator could not find your recent boluses":"Error. Hedia Calculator could not find your recent boluses","Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units":function(a){return["Fehler. Der Hedia-Rechner unterst\xFCtzt keine Insulindosis, die mehr als ",a("SAFETY_INSULIN_LIMIT")," Einheiten hat."]},"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Fehler. Der Hedia-Rechner unterst\xFCtzt keine Insulinempfehlungen mit Boli, die \xE4lter als 4 Stunden sind.","Error. Hedia Calculator does not support your activity intensity value":"Fehler. Der Hedia-Rechner unterst\xFCtzt den Wert Ihrer Aktivit\xE4tsintensit\xE4t nicht.","Error. Hedia Calculator does not support your activity type value":"Fehler. Der Hedia-Rechner unterst\xFCtzt den Wert des Aktivit\xE4tstyps nicht.","Error. Hedia Calculator does not support your current blood glucose level.":"Fehler. Der Hedia-Rechner unterst\xFCtzt Ihren aktuellen Blutzuckerspiegel nicht.","Error. Hedia Calculator does not support your current blood glucose unit.":"Fehler. Der Hedia-Rechner unterst\xFCtzt Ihre aktuelle Blutzuckereinheit nicht.","Error. Hedia Calculator does not support your current blood ketone level.":"Fehler. Der Hedia-Rechner unterst\xFCtzt Ihren aktuellen Blutketonspiegel nicht.","Error. Hedia Calculator does not support your current blood ketone unit.":"Fehler. Der Hedia-Rechner unterst\xFCtzt Ihre aktuelle Messeinheit f\xFCr Blutketone nicht.","Error. Hedia Calculator does not support your current language.":"Fehler. Der Hedia-Rechner unterst\xFCtzt Ihre aktuelle Spracheinstellung nicht.","Error. Hedia Calculator does not support your injection method.":"Fehler. Der Hedia-Rechner unterst\xFCtzt Ihre Injektionsmethode nicht.","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Fehler. Der Hedia-Rechner unterst\xFCtzt nur Aktivit\xE4ten mit einer Dauer von maximal 60 Minuten.","Error. Please verify that your activity settings are set up correctly.":"Fehler. Bitte \xFCberpr\xFCfen Sie, ob Ihre Aktivit\xE4tseinstellungen korrekt eingestellt sind.","Error. Please verify that your activity target blood glucose value is correct.":"Fehler. Bitte \xFCberpr\xFCfen Sie, ob Ihr Blutzuckerzielwert f\xFCr Aktivit\xE4ten korrekt ist.","Error. Please verify that your insulin sensitivity value is correct.":"Fehler. Bitte \xFCberpr\xFCfen Sie, ob Ihr Insulinintensit\xE4tswert korrekt ist.","Error. Please verify that your insulin to carb ratio value is correct.":"Fehler. Bitte \xFCberpr\xFCfen Sie, ob der Wert von Ihrem Insulin-Kohlenhydrat-Verh\xE4ltnis korrekt ist.","Error. Please verify that your target blood glucose value is correct.":"Fehler. Bitte \xFCberpr\xFCfen Sie, ob Ihr Ziel-Blutzuckerwert korrekt ist.","Error. Please verify your notifications settings.":"Fehler. Bitte \xFCberpr\xFCfen Sie Ihre Benachrichtigungseinstellungen.","Food":"Lebensmittel","Hard":"Hart","Have you taken insulin within the last 4 hours?":"Haben Sie innerhalb der letzten 4 Stunden Insulin eingenommen?","Hedia Calculator does not support activities that finished more than 4 hours ago.":"Der Hedia-Rechner unterst\xFCtzt keine Aktivit\xE4ten, die vor \xFCber 4 Stunden beendet wurden.","Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.":"Der Hedia-Rechner unterst\xFCtzt keine Insulinempfehlungen, die mehr als 300 Gramm Kohlenhydrate enthalten.","Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.":function(a){return["Hedia unterst\xFCtzt nicht mehr als ",a("SAFETY_INSULIN_LIMIT")," Einheiten Insulin pro Berechnung."]},"Hedia doesn't support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {0}% to {1} units for this calculation.":function(a){return["Hedia unterst\xFCtzt nicht mehr als ",a("SAFETY_INSULIN_LIMIT")," Einheiten Insulin pro Berechnung, aber aufgrund der von Ihnen eingegebenen k\xF6rperlichen Aktivit\xE4t wurden sie bei dieser Berechnung um ",a("0"),"% auf ",a("1")," Einheiten weiter reduziert."]},"How are you feeling?":"Wie f\xFChlen Sie sich?","INSULIN{0}RECOMMENDATION":function(a){return["INSULIN",a("0"),"EMPFEHLUNG"]},"If it is possible, postpone your planned exercise.":"Wenn m\xF6glich, verschieben Sie Ihr geplantes Training.","Instead of taking insulin":"Statt der Einnahme von Insulin","Light":"Leicht","Moderate":"Moderat","More than 15 minutes has passed since this calculation was started.":"Seit Beginn dieser Berechnung sind mehr als 15 Minuten vergangen.","NO":"NEIN","No":"Nein","No, return to dashboard":"Nein, zur\xFCck zum Dashboard","OFF":"AUS","OK":"OK","Please go through the calculation steps with new measurements to ensure a safe recommendation.":"Bitte f\xFChren Sie die Berechnungsschritte mit neuen Messungen durch, um eine sichere Empfehlung zu erstellen.","Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?":function(a){return["Die Empfehlung von ",a("day")," um ",a("time")," wurden nicht in Ihr Tagebuch eingetragen.",a("0"),"Haben Sie sich an die Empfehlung gehalten?"]},"Recommended":"Empfohlen","Recommended amount of insulin":"Empfohlene Insulinmenge","Remind me to remeasure in":"Ich w\xFCnsche eine Erinnerung an eine erneute Messung in","Return to dashboard":"Zur\xFCck zum Dashboard","Save data before closing?":"\xC4nderungen vor dem Schlie\xDFen speichern?","Save to logbook":"Im Tagebuch speichern","Start new calculation":"Neue Berechnung starten","Total":"Gesamt","Transfer to logbook":"\xDCbertragung ins Tagebuch","Transferred to logbook":"Ins Tagebuch \xFCbertragen","Units":"Einheiten","Untitled Activity":"Unbenannte Aktivit\xE4t","We recommend eating an additional:":"Wir empfehlen Ihnen, zus\xE4tzlich Folgendes zu essen:","Would you like to add this to your current calculation?":"M\xF6chten Sie dies zu Ihrer aktuellen Berechnung hinzuf\xFCgen?","Yes":"Ja","Yes, save to logbook":"Ja, im Tagebuch speichern","You have a high blood glucose level.":"Sie haben einen hohen Blutzuckerspiegel.","You should take rapid-acting insulin and measure ketones.":"Sie sollten schnell wirkendes Insulin einnehmen und die Ketone messen.","You will be reminded to measure your blood glucose level in 15 min.":"Bitte messen Sie Ihren Blutzuckerspiegel in 15 Minuten.","Your blood glucose level is very low.":"Ihr Blutzuckerspiegel ist sehr niedrig.","Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.":"Ihr Blutzuckerspiegel ist sehr niedrig. Nehmen Sie Glucagon ein oder essen Sie, wenn m\xF6glich, Kohlenhydrate. Suchen Sie einen Arzt auf.","Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons.{1} Hedia never recommends more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {2}% to {3}.":function(a){return["Ihre Empfehlung w\xE4re h\xF6her als ",a("0")," Einheiten Insulin gewesen, aber sie wurde aus Sicherheitsgr\xFCnden begrenzt.",a("1")," Hedia empfiehlt nie mehr als ",a("SAFETY_INSULIN_LIMIT")," Einheiten Insulin pro Berechnung, aber aufgrund der von Ihnen eingegebenen k\xF6rperlichen Aktivit\xE4t wurden sie um ",a("2"),"% auf ",a("3")," weiter reduziert."]},"Your recommendation would have been higher than {SAFETY_INSULIN_LIMIT} units of insulin, but it has been limited for safety reasons. Hedia never recommends more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.":function(a){return["Ihre Empfehlung w\xE4re h\xF6her als ",a("SAFETY_INSULIN_LIMIT")," Einheiten Insulin gewesen, aber sie wurde aus Sicherheitsgr\xFCnden begrenzt. Hedia empfiehlt nie mehr als ",a("SAFETY_INSULIN_LIMIT")," Einheiten Insulin pro Berechnung."]},"Your saved data will be used for future calculations.":"Ihre gespeicherten Daten werden f\xFCr zuk\xFCnftige Berechnungen verwendet.","grams":"Gramm","grams of carbohydrates":"Gramm Kohlenhydrate","hours":"Stunden","min":"Minuten","units":"Einheiten"}};
|
|
1
|
+
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){var s=String(n).split("."),v0=!s[1];if(ord)return"other";return n==1&&v0?"one":"other"}},messages:{"Active Insulin":"Aktives Insulin","Activity":"Aktivit\xE4t","Additional":"Zus\xE4tzlich","Attention":"Achtung","Based on the selected activity your insulin recommendation is reduced by:":"Aufgrund der gew\xE4hlten Aktivit\xE4t wird Ihre Insulinempfehlung reduziert um:","Blood Glucose Level":"Blutzuckerspiegel","Blood Ketone Level":"Blutketonspiegel","Carbohydrates":"Kohlenhydrate","Close calculation":"Berechnung schlie\xDFen","Consider not to initiate physical activity before your blood glucose level is within the recommended ranges prior to physical activity.":"Bet\xE4tigen Sie sich erst dann k\xF6rperlich, wenn Ihr Blutzuckerspiegel vor der k\xF6rperlichen Aktivit\xE4t innerhalb des empfohlenen Wertebereichs liegt.","Entered":"Eingegeben","Error. Hedia Calculator could not find your recent boluses":"Error. Hedia Calculator could not find your recent boluses","Error. Hedia Calculator does not support an insulin dose greater than {SAFETY_INSULIN_LIMIT} units":function(a){return["Fehler. Der Hedia-Rechner unterst\xFCtzt keine Insulindosis, die mehr als ",a("SAFETY_INSULIN_LIMIT")," Einheiten hat."]},"Error. Hedia Calculator does not support insulin recommendations with boluses older than 4 hours":"Fehler. Der Hedia-Rechner unterst\xFCtzt keine Insulinempfehlungen mit Boli, die \xE4lter als 4 Stunden sind.","Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.":"Error. Hedia Calculator does not support the blood glucose level of your latest logbook entry from the last 6 hours.","Error. Hedia Calculator does not support your activity intensity value":"Fehler. Der Hedia-Rechner unterst\xFCtzt den Wert Ihrer Aktivit\xE4tsintensit\xE4t nicht.","Error. Hedia Calculator does not support your activity type value":"Fehler. Der Hedia-Rechner unterst\xFCtzt den Wert des Aktivit\xE4tstyps nicht.","Error. Hedia Calculator does not support your current blood glucose level.":"Fehler. Der Hedia-Rechner unterst\xFCtzt Ihren aktuellen Blutzuckerspiegel nicht.","Error. Hedia Calculator does not support your current blood glucose unit.":"Fehler. Der Hedia-Rechner unterst\xFCtzt Ihre aktuelle Blutzuckereinheit nicht.","Error. Hedia Calculator does not support your current blood ketone level.":"Fehler. Der Hedia-Rechner unterst\xFCtzt Ihren aktuellen Blutketonspiegel nicht.","Error. Hedia Calculator does not support your current blood ketone unit.":"Fehler. Der Hedia-Rechner unterst\xFCtzt Ihre aktuelle Messeinheit f\xFCr Blutketone nicht.","Error. Hedia Calculator does not support your current language.":"Fehler. Der Hedia-Rechner unterst\xFCtzt Ihre aktuelle Spracheinstellung nicht.","Error. Hedia Calculator does not support your injection method.":"Fehler. Der Hedia-Rechner unterst\xFCtzt Ihre Injektionsmethode nicht.","Error. Hedia Calculator only supports activities with a duration of maximum 60 minutes.":"Fehler. Der Hedia-Rechner unterst\xFCtzt nur Aktivit\xE4ten mit einer Dauer von maximal 60 Minuten.","Error. Please verify that your activity settings are set up correctly.":"Fehler. Bitte \xFCberpr\xFCfen Sie, ob Ihre Aktivit\xE4tseinstellungen korrekt eingestellt sind.","Error. Please verify that your activity target blood glucose value is correct.":"Fehler. Bitte \xFCberpr\xFCfen Sie, ob Ihr Blutzuckerzielwert f\xFCr Aktivit\xE4ten korrekt ist.","Error. Please verify that your insulin sensitivity value is correct.":"Fehler. Bitte \xFCberpr\xFCfen Sie, ob Ihr Insulinintensit\xE4tswert korrekt ist.","Error. Please verify that your insulin to carb ratio value is correct.":"Fehler. Bitte \xFCberpr\xFCfen Sie, ob der Wert von Ihrem Insulin-Kohlenhydrat-Verh\xE4ltnis korrekt ist.","Error. Please verify that your target blood glucose value is correct.":"Fehler. Bitte \xFCberpr\xFCfen Sie, ob Ihr Ziel-Blutzuckerwert korrekt ist.","Error. Please verify your notifications settings.":"Fehler. Bitte \xFCberpr\xFCfen Sie Ihre Benachrichtigungseinstellungen.","Food":"Lebensmittel","Hard":"Hart","Have you taken insulin within the last 4 hours?":"Haben Sie innerhalb der letzten 4 Stunden Insulin eingenommen?","Hedia Calculator does not support activities that finished more than 4 hours ago.":"Der Hedia-Rechner unterst\xFCtzt keine Aktivit\xE4ten, die vor \xFCber 4 Stunden beendet wurden.","Hedia Calculator does not support insulin recommendations with more than 300 grams of carbohydrates present.":"Der Hedia-Rechner unterst\xFCtzt keine Insulinempfehlungen, die mehr als 300 Gramm Kohlenhydrate enthalten.","Hedia does not support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.":function(a){return["Hedia unterst\xFCtzt nicht mehr als ",a("SAFETY_INSULIN_LIMIT")," Einheiten Insulin pro Berechnung."]},"Hedia doesn't support more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {0}% to {1} units for this calculation.":function(a){return["Hedia unterst\xFCtzt nicht mehr als ",a("SAFETY_INSULIN_LIMIT")," Einheiten Insulin pro Berechnung, aber aufgrund der von Ihnen eingegebenen k\xF6rperlichen Aktivit\xE4t wurden sie bei dieser Berechnung um ",a("0"),"% auf ",a("1")," Einheiten weiter reduziert."]},"How are you feeling?":"Wie f\xFChlen Sie sich?","INSULIN{0}RECOMMENDATION":function(a){return["INSULIN",a("0"),"EMPFEHLUNG"]},"If it is possible, postpone your planned exercise.":"Wenn m\xF6glich, verschieben Sie Ihr geplantes Training.","Instead of taking insulin":"Statt der Einnahme von Insulin","Light":"Leicht","Moderate":"Moderat","More than 15 minutes has passed since this calculation was started.":"Seit Beginn dieser Berechnung sind mehr als 15 Minuten vergangen.","NO":"NEIN","No":"Nein","No, return to dashboard":"Nein, zur\xFCck zum Dashboard","OFF":"AUS","OK":"OK","Please go through the calculation steps with new measurements to ensure a safe recommendation.":"Bitte f\xFChren Sie die Berechnungsschritte mit neuen Messungen durch, um eine sichere Empfehlung zu erstellen.","Recommendation from {day} at {time} was not transfered to your logbook.{0}Did you use the recommendation?":function(a){return["Die Empfehlung von ",a("day")," um ",a("time")," wurden nicht in Ihr Tagebuch eingetragen.",a("0"),"Haben Sie sich an die Empfehlung gehalten?"]},"Recommended":"Empfohlen","Recommended amount of insulin":"Empfohlene Insulinmenge","Remind me to remeasure in":"Ich w\xFCnsche eine Erinnerung an eine erneute Messung in","Return to dashboard":"Zur\xFCck zum Dashboard","Save data before closing?":"\xC4nderungen vor dem Schlie\xDFen speichern?","Save to logbook":"Im Tagebuch speichern","Start new calculation":"Neue Berechnung starten","Total":"Gesamt","Transfer to logbook":"\xDCbertragung ins Tagebuch","Transferred to logbook":"Ins Tagebuch \xFCbertragen","Units":"Einheiten","Untitled Activity":"Unbenannte Aktivit\xE4t","We recommend eating an additional:":"Wir empfehlen Ihnen, zus\xE4tzlich Folgendes zu essen:","Would you like to add this to your current calculation?":"M\xF6chten Sie dies zu Ihrer aktuellen Berechnung hinzuf\xFCgen?","Yes":"Ja","Yes, save to logbook":"Ja, im Tagebuch speichern","You have a high blood glucose level.":"Sie haben einen hohen Blutzuckerspiegel.","You should take rapid-acting insulin and measure ketones.":"Sie sollten schnell wirkendes Insulin einnehmen und die Ketone messen.","You will be reminded to measure your blood glucose level in 15 min.":"Bitte messen Sie Ihren Blutzuckerspiegel in 15 Minuten.","Your blood glucose level is very low.":"Ihr Blutzuckerspiegel ist sehr niedrig.","Your blood glucose level is very low. Take glucagon or eat carbohydrates if possible. Seek medical attention.":"Ihr Blutzuckerspiegel ist sehr niedrig. Nehmen Sie Glucagon ein oder essen Sie, wenn m\xF6glich, Kohlenhydrate. Suchen Sie einen Arzt auf.","Your recommendation would have been higher than {0} units of insulin, but it has been limited for safety reasons.{1} Hedia never recommends more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation, but because of the physical activity you entered it has been further reduced by {2}% to {3}.":function(a){return["Ihre Empfehlung w\xE4re h\xF6her als ",a("0")," Einheiten Insulin gewesen, aber sie wurde aus Sicherheitsgr\xFCnden begrenzt.",a("1")," Hedia empfiehlt nie mehr als ",a("SAFETY_INSULIN_LIMIT")," Einheiten Insulin pro Berechnung, aber aufgrund der von Ihnen eingegebenen k\xF6rperlichen Aktivit\xE4t wurden sie um ",a("2"),"% auf ",a("3")," weiter reduziert."]},"Your recommendation would have been higher than {SAFETY_INSULIN_LIMIT} units of insulin, but it has been limited for safety reasons. Hedia never recommends more than {SAFETY_INSULIN_LIMIT} units of insulin per calculation.":function(a){return["Ihre Empfehlung w\xE4re h\xF6her als ",a("SAFETY_INSULIN_LIMIT")," Einheiten Insulin gewesen, aber sie wurde aus Sicherheitsgr\xFCnden begrenzt. Hedia empfiehlt nie mehr als ",a("SAFETY_INSULIN_LIMIT")," Einheiten Insulin pro Berechnung."]},"Your saved data will be used for future calculations.":"Ihre gespeicherten Daten werden f\xFCr zuk\xFCnftige Berechnungen verwendet.","grams":"Gramm","grams of carbohydrates":"Gramm Kohlenhydrate","hours":"Stunden","min":"Minuten","units":"Einheiten"}};
|