1
0
Fork 0

0.17: Fix regression where long month names were 'undefined' (fix #1641)Fix issue where long month names included 'undefined' (fix #1641)

master
Gordon Williams 2022-03-31 11:39:59 +01:00
parent 7c97c138b1
commit aff76fe2c0
3 changed files with 3 additions and 2 deletions

View File

@ -18,3 +18,4 @@
Added Swedish localisation with English text
0.16: Remove global variables that used RAM
Add second 'dp' argument for decimal places in distance/speed/temp (fix #1523)
0.17: Fix regression where long month names were 'undefined' (fix #1641)

View File

@ -161,7 +161,7 @@ exports = { name : "en_GB", currencySym:"£",
"%A": `${js(locale.day)}.split(',')[d.getDay()]`,
"%a": `${js(locale.abday)}.split(',')[d.getDay()]`,
"%B": `${js(locale.month)}.split(',')[d.getMonth()]`,
"%b": `${js(locale.abmonth)}.split(',')[d.getMonth() + 12]`,
"%b": `${js(locale.abmonth)}.split(',')[d.getMonth()]`,
"%p": `d.getHours()<12?${js(locale.ampm[0].toUpperCase())}:${js(locale.ampm[1].toUpperCase())}`,
"%P": `d.getHours()<12?${js(locale.ampm[0].toLowerCase())}:${js(locale.ampm[1].toLowerCase())}`
};

View File

@ -1,7 +1,7 @@
{
"id": "locale",
"name": "Languages",
"version": "0.16",
"version": "0.17",
"description": "Translations for different countries",
"icon": "locale.png",
"type": "locale",