From fc7afb803a8486956396216029735d9f1b685d63 Mon Sep 17 00:00:00 2001 From: JHale716 Date: Tue, 4 Jun 2019 22:20:50 +1200 Subject: [PATCH] Update MMM-SystemStats.js Translate option for LOADING not defined in the translate files and the .toLowerCase() is unnecessary. When the to.lowercase() implemented gives undesirable screen presentation. --- MMM-SystemStats.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MMM-SystemStats.js b/MMM-SystemStats.js index 1c5d029..4916a0f 100644 --- a/MMM-SystemStats.js +++ b/MMM-SystemStats.js @@ -47,11 +47,11 @@ Module.register('MMM-SystemStats', { moment.locale(this.config.language); this.stats = {}; - this.stats.cpuTemp = this.translate('LOADING').toLowerCase(); - this.stats.sysLoad = this.translate('LOADING').toLowerCase(); - this.stats.freeMem = this.translate('LOADING').toLowerCase(); - this.stats.upTime = this.translate('LOADING').toLowerCase(); - this.stats.freeSpace = this.translate('LOADING').toLowerCase(); + this.stats.cpuTemp = this.translate('Loading'); + this.stats.sysLoad = this.translate('Loading'); + this.stats.freeMem = this.translate('Loading'); + this.stats.upTime = this.translate('Loading'); + this.stats.freeSpace = this.translate('Loading'); this.sendSocketNotification('CONFIG', this.config); },