From dad6d7eeee48f0427d5fbbd16f93dc9abda6ade2 Mon Sep 17 00:00:00 2001 From: Bruno Emanuel Date: Thu, 18 Oct 2018 12:30:04 -0300 Subject: [PATCH] Translation module --- MMM-Instagram.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MMM-Instagram.js b/MMM-Instagram.js index d99f336..3502f00 100644 --- a/MMM-Instagram.js +++ b/MMM-Instagram.js @@ -11,28 +11,28 @@ Module.register('MMM-Instagram', { defaults: { format: 'json', - lang: 'en-us', + lang: config.language, // using language on config id: '', animationSpeed: 1000, updateInterval: 60000, // 10 minutes access_token: '', count: 200, min_timestamp: 0, - loadingText: 'Loading...' + // Removed, takes from translation loadingText: 'Loading...' }, - + // Define required scripts getScripts: function() { return ["moment.js"]; }, - + /* // Define required translations getTranslations: function() { return false; }, */ - + // Define start sequence start: function() { Log.info('Starting module: ' + this.name); @@ -65,7 +65,7 @@ Module.register('MMM-Instagram', { var imageDisplay = document.createElement('div'); //support for config.changeColor if (!this.loaded) { - wrapper.innerHTML = this.config.loadingText; + wrapper.innerHTML = this.translate("LOADING"); //this.config.loadingText; return wrapper; }