diff --git a/apps/locale/locale.html b/apps/locale/locale.html index 645d6b2db..ff1831466 100644 --- a/apps/locale/locale.html +++ b/apps/locale/locale.html @@ -164,10 +164,7 @@ exports = { name : "en_GB", currencySym:"£", var currency = locale.currency_first ? `${js(locale.currency_symbol)} + n.toFixed(2)`: `n.toFixed(2) + ${js(locale.currency_symbol)}`; - var temperature; - if (locale.temperature=='°C') temperature="t"; - else if (locale.temperature=='°F') temperature="(t*9/5)+32"; - else throw new Error("Unknown temperature unit "+locale.temperature); + var temperature = locale.temperature=='°F' ? '(t*9/5)+32' : 't'; var localeModule = `var l = ${js({ abday : locale.abday,