mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Migrated titles to use translate()
This commit is contained in:
+286
@@ -13356,6 +13356,292 @@ function init() {
|
||||
, zh_cn: 'That value is unknown at the moment. Please see your Nightscout site for more details.'
|
||||
, zh_tw: 'That value is unknown at the moment. Please see your Nightscout site for more details.'
|
||||
},
|
||||
'virtAsstTitleAR2Forecast': {
|
||||
bg: 'AR2 Forecast'
|
||||
, cs: 'AR2 Forecast'
|
||||
, de: 'AR2 Forecast'
|
||||
, dk: 'AR2 Forecast'
|
||||
, el: 'AR2 Forecast'
|
||||
, en: 'AR2 Forecast'
|
||||
, es: 'AR2 Forecast'
|
||||
, fi: 'AR2 Forecast'
|
||||
, fr: 'AR2 Forecast'
|
||||
, he: 'AR2 Forecast'
|
||||
, hr: 'AR2 Forecast'
|
||||
, it: 'AR2 Forecast'
|
||||
, ko: 'AR2 Forecast'
|
||||
, nb: 'AR2 Forecast'
|
||||
, pl: 'AR2 Forecast'
|
||||
, pt: 'AR2 Forecast'
|
||||
, ro: 'AR2 Forecast'
|
||||
, nl: 'AR2 Forecast'
|
||||
, ru: 'AR2 Forecast'
|
||||
, sk: 'AR2 Forecast'
|
||||
, sv: 'AR2 Forecast'
|
||||
, tr: 'AR2 Forecast'
|
||||
, zh_cn: 'AR2 Forecast'
|
||||
, zh_tw: 'AR2 Forecast'
|
||||
},
|
||||
'virtAsstTitleCurrentBasal': {
|
||||
bg: 'Current Basal'
|
||||
, cs: 'Current Basal'
|
||||
, de: 'Current Basal'
|
||||
, dk: 'Current Basal'
|
||||
, el: 'Current Basal'
|
||||
, en: 'Current Basal'
|
||||
, es: 'Current Basal'
|
||||
, fi: 'Current Basal'
|
||||
, fr: 'Current Basal'
|
||||
, he: 'Current Basal'
|
||||
, hr: 'Current Basal'
|
||||
, it: 'Current Basal'
|
||||
, ko: 'Current Basal'
|
||||
, nb: 'Current Basal'
|
||||
, pl: 'Current Basal'
|
||||
, pt: 'Current Basal'
|
||||
, ro: 'Current Basal'
|
||||
, nl: 'Current Basal'
|
||||
, ru: 'Current Basal'
|
||||
, sk: 'Current Basal'
|
||||
, sv: 'Current Basal'
|
||||
, tr: 'Current Basal'
|
||||
, zh_cn: 'Current Basal'
|
||||
, zh_tw: 'Current Basal'
|
||||
},
|
||||
'virtAsstTitleCurrentCOB': {
|
||||
bg: 'Current COB'
|
||||
, cs: 'Current COB'
|
||||
, de: 'Current COB'
|
||||
, dk: 'Current COB'
|
||||
, el: 'Current COB'
|
||||
, en: 'Current COB'
|
||||
, es: 'Current COB'
|
||||
, fi: 'Current COB'
|
||||
, fr: 'Current COB'
|
||||
, he: 'Current COB'
|
||||
, hr: 'Current COB'
|
||||
, it: 'Current COB'
|
||||
, ko: 'Current COB'
|
||||
, nb: 'Current COB'
|
||||
, pl: 'Current COB'
|
||||
, pt: 'Current COB'
|
||||
, ro: 'Current COB'
|
||||
, nl: 'Current COB'
|
||||
, ru: 'Current COB'
|
||||
, sk: 'Current COB'
|
||||
, sv: 'Current COB'
|
||||
, tr: 'Current COB'
|
||||
, zh_cn: 'Current COB'
|
||||
, zh_tw: 'Current COB'
|
||||
},
|
||||
'virtAsstTitleCurrentIOB': {
|
||||
bg: 'Current IOB'
|
||||
, cs: 'Current IOB'
|
||||
, de: 'Current IOB'
|
||||
, dk: 'Current IOB'
|
||||
, el: 'Current IOB'
|
||||
, en: 'Current IOB'
|
||||
, es: 'Current IOB'
|
||||
, fi: 'Current IOB'
|
||||
, fr: 'Current IOB'
|
||||
, he: 'Current IOB'
|
||||
, hr: 'Current IOB'
|
||||
, it: 'Current IOB'
|
||||
, ko: 'Current IOB'
|
||||
, nb: 'Current IOB'
|
||||
, pl: 'Current IOB'
|
||||
, pt: 'Current IOB'
|
||||
, ro: 'Current IOB'
|
||||
, nl: 'Current IOB'
|
||||
, ru: 'Current IOB'
|
||||
, sk: 'Current IOB'
|
||||
, sv: 'Current IOB'
|
||||
, tr: 'Current IOB'
|
||||
, zh_cn: 'Current IOB'
|
||||
, zh_tw: 'Current IOB'
|
||||
},
|
||||
'virtAsstTitleLoopForecast': {
|
||||
bg: 'Loop Forecast'
|
||||
, cs: 'Loop Forecast'
|
||||
, de: 'Loop Forecast'
|
||||
, dk: 'Loop Forecast'
|
||||
, el: 'Loop Forecast'
|
||||
, en: 'Loop Forecast'
|
||||
, es: 'Loop Forecast'
|
||||
, fi: 'Loop Forecast'
|
||||
, fr: 'Loop Forecast'
|
||||
, he: 'Loop Forecast'
|
||||
, hr: 'Loop Forecast'
|
||||
, it: 'Loop Forecast'
|
||||
, ko: 'Loop Forecast'
|
||||
, nb: 'Loop Forecast'
|
||||
, pl: 'Loop Forecast'
|
||||
, pt: 'Loop Forecast'
|
||||
, ro: 'Loop Forecast'
|
||||
, nl: 'Loop Forecast'
|
||||
, ru: 'Loop Forecast'
|
||||
, sk: 'Loop Forecast'
|
||||
, sv: 'Loop Forecast'
|
||||
, tr: 'Loop Forecast'
|
||||
, zh_cn: 'Loop Forecast'
|
||||
, zh_tw: 'Loop Forecast'
|
||||
},
|
||||
'virtAsstTitleLastLoop': {
|
||||
bg: 'Last Loop'
|
||||
, cs: 'Last Loop'
|
||||
, de: 'Last Loop'
|
||||
, dk: 'Last Loop'
|
||||
, el: 'Last Loop'
|
||||
, en: 'Last Loop'
|
||||
, es: 'Last Loop'
|
||||
, fi: 'Last Loop'
|
||||
, fr: 'Last Loop'
|
||||
, he: 'Last Loop'
|
||||
, hr: 'Last Loop'
|
||||
, it: 'Last Loop'
|
||||
, ko: 'Last Loop'
|
||||
, nb: 'Last Loop'
|
||||
, pl: 'Last Loop'
|
||||
, pt: 'Last Loop'
|
||||
, ro: 'Last Loop'
|
||||
, nl: 'Last Loop'
|
||||
, ru: 'Last Loop'
|
||||
, sk: 'Last Loop'
|
||||
, sv: 'Last Loop'
|
||||
, tr: 'Last Loop'
|
||||
, zh_cn: 'Last Loop'
|
||||
, zh_tw: 'Last Loop'
|
||||
},
|
||||
'virtAsstTitleOpenAPSForecast': {
|
||||
bg: 'OpenAPS Forecast'
|
||||
, cs: 'OpenAPS Forecast'
|
||||
, de: 'OpenAPS Forecast'
|
||||
, dk: 'OpenAPS Forecast'
|
||||
, el: 'OpenAPS Forecast'
|
||||
, en: 'OpenAPS Forecast'
|
||||
, es: 'OpenAPS Forecast'
|
||||
, fi: 'OpenAPS Forecast'
|
||||
, fr: 'OpenAPS Forecast'
|
||||
, he: 'OpenAPS Forecast'
|
||||
, hr: 'OpenAPS Forecast'
|
||||
, it: 'OpenAPS Forecast'
|
||||
, ko: 'OpenAPS Forecast'
|
||||
, nb: 'OpenAPS Forecast'
|
||||
, pl: 'OpenAPS Forecast'
|
||||
, pt: 'OpenAPS Forecast'
|
||||
, ro: 'OpenAPS Forecast'
|
||||
, nl: 'OpenAPS Forecast'
|
||||
, ru: 'OpenAPS Forecast'
|
||||
, sk: 'OpenAPS Forecast'
|
||||
, sv: 'OpenAPS Forecast'
|
||||
, tr: 'OpenAPS Forecast'
|
||||
, zh_cn: 'OpenAPS Forecast'
|
||||
, zh_tw: 'OpenAPS Forecast'
|
||||
},
|
||||
'virtAsstTitlePumpReservoir': {
|
||||
bg: 'Insulin Remaining'
|
||||
, cs: 'Insulin Remaining'
|
||||
, de: 'Insulin Remaining'
|
||||
, dk: 'Insulin Remaining'
|
||||
, el: 'Insulin Remaining'
|
||||
, en: 'Insulin Remaining'
|
||||
, es: 'Insulin Remaining'
|
||||
, fi: 'Insulin Remaining'
|
||||
, fr: 'Insulin Remaining'
|
||||
, he: 'Insulin Remaining'
|
||||
, hr: 'Insulin Remaining'
|
||||
, it: 'Insulin Remaining'
|
||||
, ko: 'Insulin Remaining'
|
||||
, nb: 'Insulin Remaining'
|
||||
, pl: 'Insulin Remaining'
|
||||
, pt: 'Insulin Remaining'
|
||||
, ro: 'Insulin Remaining'
|
||||
, nl: 'Insulin Remaining'
|
||||
, ru: 'Insulin Remaining'
|
||||
, sk: 'Insulin Remaining'
|
||||
, sv: 'Insulin Remaining'
|
||||
, tr: 'Insulin Remaining'
|
||||
, zh_cn: 'Insulin Remaining'
|
||||
, zh_tw: 'Insulin Remaining'
|
||||
},
|
||||
'virtAsstTitlePumpBattery': {
|
||||
bg: 'Pump Battery'
|
||||
, cs: 'Pump Battery'
|
||||
, de: 'Pump Battery'
|
||||
, dk: 'Pump Battery'
|
||||
, el: 'Pump Battery'
|
||||
, en: 'Pump Battery'
|
||||
, es: 'Pump Battery'
|
||||
, fi: 'Pump Battery'
|
||||
, fr: 'Pump Battery'
|
||||
, he: 'Pump Battery'
|
||||
, hr: 'Pump Battery'
|
||||
, it: 'Pump Battery'
|
||||
, ko: 'Pump Battery'
|
||||
, nb: 'Pump Battery'
|
||||
, pl: 'Pump Battery'
|
||||
, pt: 'Pump Battery'
|
||||
, ro: 'Pump Battery'
|
||||
, nl: 'Pump Battery'
|
||||
, ru: 'Pump Battery'
|
||||
, sk: 'Pump Battery'
|
||||
, sv: 'Pump Battery'
|
||||
, tr: 'Pump Battery'
|
||||
, zh_cn: 'Pump Battery'
|
||||
, zh_tw: 'Pump Battery'
|
||||
},
|
||||
'virtAsstTitleRawBG': {
|
||||
bg: 'Current Raw BG'
|
||||
, cs: 'Current Raw BG'
|
||||
, de: 'Current Raw BG'
|
||||
, dk: 'Current Raw BG'
|
||||
, el: 'Current Raw BG'
|
||||
, en: 'Current Raw BG'
|
||||
, es: 'Current Raw BG'
|
||||
, fi: 'Current Raw BG'
|
||||
, fr: 'Current Raw BG'
|
||||
, he: 'Current Raw BG'
|
||||
, hr: 'Current Raw BG'
|
||||
, it: 'Current Raw BG'
|
||||
, ko: 'Current Raw BG'
|
||||
, nb: 'Current Raw BG'
|
||||
, pl: 'Current Raw BG'
|
||||
, pt: 'Current Raw BG'
|
||||
, ro: 'Current Raw BG'
|
||||
, nl: 'Current Raw BG'
|
||||
, ru: 'Current Raw BG'
|
||||
, sk: 'Current Raw BG'
|
||||
, sv: 'Current Raw BG'
|
||||
, tr: 'Current Raw BG'
|
||||
, zh_cn: 'Current Raw BG'
|
||||
, zh_tw: 'Current Raw BG'
|
||||
},
|
||||
'virtAsstTitleUploaderBattery': {
|
||||
bg: 'Uploader Battery'
|
||||
, cs: 'Uploader Battery'
|
||||
, de: 'Uploader Battery'
|
||||
, dk: 'Uploader Battery'
|
||||
, el: 'Uploader Battery'
|
||||
, en: 'Uploader Battery'
|
||||
, es: 'Uploader Battery'
|
||||
, fi: 'Uploader Battery'
|
||||
, fr: 'Uploader Battery'
|
||||
, he: 'Uploader Battery'
|
||||
, hr: 'Uploader Battery'
|
||||
, it: 'Uploader Battery'
|
||||
, ko: 'Uploader Battery'
|
||||
, nb: 'Uploader Battery'
|
||||
, pl: 'Uploader Battery'
|
||||
, pt: 'Uploader Battery'
|
||||
, ro: 'Uploader Battery'
|
||||
, nl: 'Uploader Battery'
|
||||
, ru: 'Uploader Battery'
|
||||
, sk: 'Uploader Battery'
|
||||
, sv: 'Uploader Battery'
|
||||
, tr: 'Uploader Battery'
|
||||
, zh_cn: 'Uploader Battery'
|
||||
, zh_tw: 'Uploader Battery'
|
||||
},
|
||||
'virtAsstStatus': {
|
||||
bg: '%1 and %2 as of %3.'
|
||||
, cs: '%1 %2 čas %3.'
|
||||
|
||||
+2
-2
@@ -181,9 +181,9 @@ function init (ctx) {
|
||||
]
|
||||
});
|
||||
}
|
||||
next('AR2 Forecast', response);
|
||||
next(translate('virtAsstTitleAR2Forecast'), response);
|
||||
} else {
|
||||
next('AR2 Forecast', translate('virtAsstUnknown'));
|
||||
next(translate('virtAsstTitleAR2Forecast'), translate('virtAsstUnknown'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ function init (ctx) {
|
||||
}
|
||||
|
||||
function virtAsstCurrentBasalhandler (next, slots, sbx) {
|
||||
next('Current Basal', basalMessage(slots, sbx));
|
||||
next(translate('virtAsstTitleCurrentBasal'), basalMessage(slots, sbx));
|
||||
}
|
||||
|
||||
basal.virtAsst = {
|
||||
|
||||
+1
-1
@@ -309,7 +309,7 @@ function init (ctx) {
|
||||
]
|
||||
});
|
||||
}
|
||||
next('Current COB', response);
|
||||
next(translate('virtAsstTitleCurrentCOB'), response);
|
||||
}
|
||||
|
||||
cob.virtAsst = {
|
||||
|
||||
+1
-1
@@ -250,7 +250,7 @@ function init(ctx) {
|
||||
getIob(sbx)
|
||||
]
|
||||
});
|
||||
callback('Current IOB', message);
|
||||
callback(translate('virtAsstTitleCurrentIOB'), message);
|
||||
}
|
||||
|
||||
function virtAsstIOBRollupHandler (slots, sbx, callback) {
|
||||
|
||||
+5
-5
@@ -517,7 +517,7 @@ function init (ctx) {
|
||||
var startPrediction = moment(sbx.properties.loop.lastLoop.predicted.startDate);
|
||||
var endPrediction = startPrediction.clone().add(maxForecastIndex * 5, 'minutes');
|
||||
if (endPrediction.valueOf() < sbx.time) {
|
||||
next('Loop Forecast', translate('virtAsstForecastUnavailable'));
|
||||
next(translate('virtAsstTitleLoopForecast'), translate('virtAsstForecastUnavailable'));
|
||||
} else {
|
||||
for (var i = 1, len = forecast.slice(0, maxForecastIndex).length; i < len; i++) {
|
||||
if (forecast[i] > max) {
|
||||
@@ -544,10 +544,10 @@ function init (ctx) {
|
||||
]
|
||||
});
|
||||
}
|
||||
next('Loop Forecast', response);
|
||||
next(translate('virtAsstTitleLoopForecast'), response);
|
||||
}
|
||||
} else {
|
||||
next('Loop Forecast', translate('virtAsstUnknown'));
|
||||
next(translate('virtAsstTitleLoopForecast'), translate('virtAsstUnknown'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -559,9 +559,9 @@ function init (ctx) {
|
||||
moment(sbx.properties.loop.lastOkMoment).from(moment(sbx.time))
|
||||
]
|
||||
});
|
||||
next('Last Loop', response);
|
||||
next(translate('virtAsstTitleLastLoop'), response);
|
||||
} else {
|
||||
next('Last Loop', translate('virtAsstUnknown'));
|
||||
next(translate('virtAsstTitleLastLoop'), translate('virtAsstUnknown'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -523,9 +523,9 @@ function init (ctx) {
|
||||
sbx.properties.openaps.lastEventualBG
|
||||
]
|
||||
});
|
||||
next('OpenAPS Forecast', response);
|
||||
next(translate('virtAsstTitleOpenAPSForecast'), response);
|
||||
} else {
|
||||
next('OpenAPS Forecast', translate('virtAsstUnknown'));
|
||||
next(translate('virtAsstTitleOpenAPSForecast'), translate('virtAsstUnknown'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -537,9 +537,9 @@ function init (ctx) {
|
||||
moment(sbx.properties.openaps.lastLoopMoment).from(moment(sbx.time))
|
||||
]
|
||||
});
|
||||
next('Last Loop', response);
|
||||
next(translate('virtAsstTitleLastLoop'), response);
|
||||
} else {
|
||||
next('Last Loop', translate('virtAsstUnknown'));
|
||||
next(translate('virtAsstTitleLastLoop'), translate('virtAsstUnknown'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+4
-4
@@ -143,9 +143,9 @@ function init (ctx) {
|
||||
reservoir
|
||||
]
|
||||
});
|
||||
next('Remaining Insulin', response);
|
||||
next(translate('virtAsstTitlePumpReservoir'), response);
|
||||
} else {
|
||||
next('Remaining Insulin', translate('virtAsstUnknown'));
|
||||
next(translate('virtAsstTitlePumpReservoir'), translate('virtAsstUnknown'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,9 +158,9 @@ function init (ctx) {
|
||||
battery.unit
|
||||
]
|
||||
});
|
||||
next('Pump Battery', response);
|
||||
next(translate('virtAsstTitlePumpBattery'), response);
|
||||
} else {
|
||||
next('Pump Battery', translate('virtAsstUnknown'));
|
||||
next(translate('virtAsstTitlePumpBattery'), translate('virtAsstUnknown'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -113,9 +113,9 @@ function init (ctx) {
|
||||
sbx.properties.rawbg.mgdl
|
||||
]
|
||||
});
|
||||
next('Current Raw BG', response);
|
||||
next(translate('virtAsstTitleRawBG'), response);
|
||||
} else {
|
||||
next('Current Raw BG', translate('virtAsstUnknown'));
|
||||
next(translate('virtAsstTitleRawBG'), translate('virtAsstUnknown'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -229,9 +229,9 @@ function init(ctx) {
|
||||
sbx.properties.upbat.display
|
||||
]
|
||||
});
|
||||
next('Uploader Battery', response);
|
||||
next(translate('virtAsstTitleUploaderBattery'), response);
|
||||
} else {
|
||||
next('Uploader Battery', translate('virtAsstUnknown'));
|
||||
next(translate('virtAsstTitleUploaderBattery'), translate('virtAsstUnknown'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user