Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2020-11-12 23:26:42 +01:00
parent b9b433d884
commit 7b44dc1d31
No known key found for this signature in database
GPG key ID: 69DE3C3C097DB7F7

View file

@ -1,7 +1,7 @@
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-blue; icon-glyph: shopping-cart;
// Version 1.0.1
// Version 1.0.2
const cacheMinutes = 60 * 2
const today = new Date()
@ -252,7 +252,7 @@ if (!orderDetails) {
widget.addSpacer()
const languageCode = Device.language().match(/^[\a-z]{2}/)
const languageCode = Device.preferredLanguages()[0].match(/^[\a-z]{2}/)
const t = (localeText[languageCode]) ? localeText[languageCode] : localeText.default
let postFix = (remainingDays === 1) ? t[0] : t[1]