From 7b44dc1d312fe11b212e0627e7185bd1fb563372 Mon Sep 17 00:00:00 2001 From: Benny Samir Hierl Date: Thu, 12 Nov 2020 23:26:42 +0100 Subject: [PATCH] bug fix Signed-off-by: Benny Samir Hierl --- Apple-Order-Status/Apple-Store-Order-Status.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Apple-Order-Status/Apple-Store-Order-Status.js b/Apple-Order-Status/Apple-Store-Order-Status.js index 539892a..0824467 100644 --- a/Apple-Order-Status/Apple-Store-Order-Status.js +++ b/Apple-Order-Status/Apple-Store-Order-Status.js @@ -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]