<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[access to config language setting]]></title><description><![CDATA[<p dir="auto">how do I get access to the overall MM language setting in config.js in my module?  that value is not passed to each modules config</p>
]]></description><link>https://forum.magicmirror.builders/topic/9774/access-to-config-language-setting</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 14:44:56 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/9774.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Feb 2019 19:37:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to access to config language setting on Sun, 07 May 2023 15:47:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> I am aware of that, but somehow I just ignored it as I was “on auto-pilot”. :grinning_face_with_sweat:</p>
]]></description><link>https://forum.magicmirror.builders/post/109292</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109292</guid><dc:creator><![CDATA[justbob]]></dc:creator><pubDate>Sun, 07 May 2023 15:47:34 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Sun, 07 May 2023 03:36:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justbob" aria-label="Profile: justbob">@<bdi>justbob</bdi></a> everything ABOVE modules applies to all , its the overall environment</p>
]]></description><link>https://forum.magicmirror.builders/post/109232</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109232</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 07 May 2023 03:36:54 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Sun, 07 May 2023 02:46:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> OMG, you are right, thank you for pointing out the line!:man_bowing:</p>
<p dir="auto">I was so focused on lines below line 39 (modules), that I completely skipped the ones above as I considered them to be mere comments… :man_facepalming_light_skin_tone:</p>
]]></description><link>https://forum.magicmirror.builders/post/109231</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109231</guid><dc:creator><![CDATA[justbob]]></dc:creator><pubDate>Sun, 07 May 2023 02:46:39 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Sun, 07 May 2023 01:22:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justbob" aria-label="Profile: justbob">@<bdi>justbob</bdi></a> what do you mean language change?</p>
<p dir="auto">the modules use the default translations</p>
<p dir="auto">set by changing language line 33 of the config.js.sample</p>
]]></description><link>https://forum.magicmirror.builders/post/109230</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109230</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 07 May 2023 01:22:12 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Sun, 07 May 2023 00:41:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> You mentioned default calendar module, and there were talks about default clock, so my questions referred to those…</p>
]]></description><link>https://forum.magicmirror.builders/post/109229</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109229</guid><dc:creator><![CDATA[justbob]]></dc:creator><pubDate>Sun, 07 May 2023 00:41:43 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Sun, 07 May 2023 00:10:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justbob" aria-label="Profile: justbob">@<bdi>justbob</bdi></a> what module?  this was a general question, not tied to any module</p>
]]></description><link>https://forum.magicmirror.builders/post/109228</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109228</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 07 May 2023 00:10:53 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Sat, 06 May 2023 23:34:31 GMT]]></title><description><![CDATA[<p dir="auto">Sorry for necroing this post, but from all I’ve read so far, this came up with most relevant information and solutions.</p>
<p dir="auto">My question is this - is there a reason why the language change via config was never incorporated in this module?</p>
]]></description><link>https://forum.magicmirror.builders/post/109227</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109227</guid><dc:creator><![CDATA[justbob]]></dc:creator><pubDate>Sat, 06 May 2023 23:34:31 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Wed, 13 Feb 2019 00:51:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> said in <a href="/post/52218">access to config language setting</a>:</p>
<blockquote>
<p dir="auto">@strawberry-3-141 cool, thanks</p>
</blockquote>
<p dir="auto">The kid knows his stuff!  He’s a good guy!  Matter of fact he gave me this to add to my module if it’s of any help :)</p>
<p dir="auto">I use this under the start: function()</p>
<pre><code>  this.config.lang = this.config.lang || config.language; //automatically overrides and sets 
     language :)      
  this.config.units = this.config.units || config.units;
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/52239</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52239</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Wed, 13 Feb 2019 00:51:47 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 20:56:40 GMT]]></title><description><![CDATA[<p dir="auto">@strawberry-3-141 cool, thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/52218</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52218</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 12 Feb 2019 20:56:40 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 20:42:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">I just did added this to the calendar config and it changed it automatically:</p>
<pre><code>    {
        module: "calendar",
	position: "top_left",	// This can be any of the regions. Best results in left or right regions.
	config: {
		language: "fr",
		timezone: "France/Paris"
	}
    },
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/52216</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52216</guid><dc:creator><![CDATA[justjim1220]]></dc:creator><pubDate>Tue, 12 Feb 2019 20:42:06 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 20:41:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> the global language is accessible like this <code>config.language</code> see example <a href="https://github.com/MichMich/MagicMirror/blob/master/modules/default/clock/clock.js#L49" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror/blob/master/modules/default/clock/clock.js#L49</a></p>
]]></description><link>https://forum.magicmirror.builders/post/52215</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52215</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Tue, 12 Feb 2019 20:41:46 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 20:32:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justjim1220" aria-label="Profile: justjim1220">@<bdi>justjim1220</bdi></a> but I don’t want to duplicate the language config…</p>
]]></description><link>https://forum.magicmirror.builders/post/52214</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52214</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 12 Feb 2019 20:32:02 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 20:31:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">you will also need to add this to your start section:</p>
<pre><code>/ /Set locale.
moment.updateLocale(config.language, this.getLocaleSpecification(config.timeZone));
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/52212</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52212</guid><dc:creator><![CDATA[justjim1220]]></dc:creator><pubDate>Tue, 12 Feb 2019 20:31:02 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 20:26:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> after you add all that I posted, in your config file the use can add the timezone and language they want to use.</p>
<pre><code>{
    module: "calendar",
    position: "top_left",
    config: {
        language: "en",
        timezone: "Norway/Oslo"
    }
},</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/52210</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52210</guid><dc:creator><![CDATA[justjim1220]]></dc:creator><pubDate>Tue, 12 Feb 2019 20:26:58 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 20:24:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justjim1220" aria-label="Profile: justjim1220">@<bdi>justjim1220</bdi></a> no… you are not understanding me…</p>
<p dir="auto">how do i get the USERS config for language and timezone?  not system time, etc…</p>
<p dir="auto">user is in Norway…</p>
<pre><code>this.config.language
</code></pre>
<p dir="auto">doesn’t exist in the calendar module…  so the set locale will fail…</p>
]]></description><link>https://forum.magicmirror.builders/post/52208</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52208</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 12 Feb 2019 20:24:01 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 20:20:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">for timezone:<br />
Add this to your defaults in the modules js: <code>timezone: "America/Chicago"</code></p>
<p dir="auto">Then add this in the code:</p>
<pre><code> getScripts: function() {
	return [ 
            "moment.js", "moment-timezone.js"
        ];
},
</code></pre>
<p dir="auto">and this:</p>
<pre><code>var now = moment();
	if (this.config.timezone) {
	now.tz(this.config.timezone);
}</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/52207</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52207</guid><dc:creator><![CDATA[justjim1220]]></dc:creator><pubDate>Tue, 12 Feb 2019 20:20:30 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 20:12:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">All I can find is to put this in your js file:</p>
<pre><code>getTranslations: function() {
	return {
		en: "translations/en.json",
		de: "translations/de.json"
	}
}
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/52206</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52206</guid><dc:creator><![CDATA[justjim1220]]></dc:creator><pubDate>Tue, 12 Feb 2019 20:12:16 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 20:06:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justjim1220" aria-label="Profile: justjim1220">@<bdi>justjim1220</bdi></a> the default calendar  module</p>
<p dir="auto">the code in calendar.js does</p>
<pre><code>	// Set locale.
		moment.updateLocale(this.config.language, this.getLocaleSpecification(this.config.timeFormat));
</code></pre>
<p dir="auto">but it doesn’t have any value for  <strong>this.config.language</strong></p>
<p dir="auto">as language is not in the MODULE config…<br />
I also want to set timezone… as the user I am helping cannot get the clock and calendar to sync time offsets</p>
<p dir="auto">if I copy those values to the calendar config block than they are accessible…</p>
]]></description><link>https://forum.magicmirror.builders/post/52205</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52205</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 12 Feb 2019 20:06:01 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 20:03:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">Which calendar module are you referring to?</p>
]]></description><link>https://forum.magicmirror.builders/post/52204</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52204</guid><dc:creator><![CDATA[justjim1220]]></dc:creator><pubDate>Tue, 12 Feb 2019 20:03:09 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 19:56:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">NVM, I just tried it and it di not work.</p>
]]></description><link>https://forum.magicmirror.builders/post/52203</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52203</guid><dc:creator><![CDATA[justjim1220]]></dc:creator><pubDate>Tue, 12 Feb 2019 19:56:41 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 19:54:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
from what I can tell, modules containing the ability to change the language have their own translations folder.</p>
<p dir="auto">Other than that, have you tried <code>language = this.language</code></p>
]]></description><link>https://forum.magicmirror.builders/post/52202</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52202</guid><dc:creator><![CDATA[justjim1220]]></dc:creator><pubDate>Tue, 12 Feb 2019 19:54:12 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 19:48:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justjim1220" aria-label="Profile: justjim1220">@<bdi>justjim1220</bdi></a> no… that is available translations… I mean the value in config.js</p>
<pre><code>	port: 8086,
	ipWhitelist: [], // Set [] to allow all IP addresses
	               // or add a specific IPv4 of 192.168.1.5 :
	               // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
	               // or IPv4 range of 192.168.3.0 --&gt; 192.168.3.15 use CIDR format :
	               // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],

	language: "en",  &lt; ------------ this value
	timeFormat: 12,
  timezone: "Europe/Oslo",
	units: "imperial",
</code></pre>
<p dir="auto">the calendar code uses this value, BUT doesn’t get it    config.language is not set (cause config comes from the module block)</p>
]]></description><link>https://forum.magicmirror.builders/post/52201</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52201</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 12 Feb 2019 19:48:33 GMT</pubDate></item><item><title><![CDATA[Reply to access to config language setting on Tue, 12 Feb 2019 19:41:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
My best guess: <code>"MagicMirror/translations/translations.js"</code></p>
]]></description><link>https://forum.magicmirror.builders/post/52200</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/52200</guid><dc:creator><![CDATA[justjim1220]]></dc:creator><pubDate>Tue, 12 Feb 2019 19:41:34 GMT</pubDate></item></channel></rss>