Skip to content

Commit 9760007

Browse files
Use locale for temperature
1 parent 4f36b6c commit 9760007

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/airqualityci/clkinfo.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@
6060
let aqi = data[config.rows[id].url]
6161
let txt = "";
6262
let aqius = (aqi && typeof(aqi.aqius) == "number") ? aqi.aqius : "...";
63-
let temp = (aqi && typeof(aqi.temp) == "number") ? aqi.temp : "...";
63+
let temp = (aqi && typeof(aqi.temp) == "number") ? require("locale").temp(aqi.temp) : "...";
6464
switch ( config.rows[id].mode) {
6565
case 2:
66-
txt = aqius + " " + temp + "°";
66+
txt = aqius + " " + temp;
6767
break;
6868
case 3:
6969
txt = row.name + " " + aqius;
7070
break;
7171
case 4:
72-
txt = row.name + " " + aqius + " " + temp + "°";
72+
txt = row.name + " " + aqius + " " + temp;
7373
break;
7474
case 5:
7575
txt = row.name;

0 commit comments

Comments
 (0)