<?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[Question about translations&#x2F;the translation system]]></title><description><![CDATA[<p dir="auto">Im trying to make a module that displays a message. I’ve made translated language files, eg en.json, sv.json, uk.json etc. They work properly and is set by the global setting in config.js.</p>
<p dir="auto">However I would like the language setting in the modules own config.js section to override global. Eg I want to be able to have global setting=sv and module setting =en (as example).</p>
<p dir="auto">When I do that, console reports that it is using the module setting, but the display always gives me the global setting. Eg, the language of the message the module displays always shows in the langauge set in global setting.</p>
<p dir="auto">Is there any way to change this?</p>
]]></description><link>https://forum.magicmirror.builders/topic/19266/question-about-translations-the-translation-system</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 22:29:04 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19266.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Jan 2025 11:17:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Question about translations&#x2F;the translation system on Wed, 01 Jan 2025 17:10:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cgillinger" aria-label="Profile: cgillinger">@<bdi>cgillinger</bdi></a> This is one place where the inherited module functions are not so good</p>
<p dir="auto">getTranslations()</p>
<p dir="auto">happens WAY before any code is run so you can’t adjust its response based on other info the config might have provided…</p>
<p dir="auto">and we don’t expose any functions to do the work not related to the files returned from that function</p>
<p dir="auto">but your code could do the translations BEFORE giving the content to MM… so there would be nothing to translate</p>
]]></description><link>https://forum.magicmirror.builders/post/122374</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/122374</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 01 Jan 2025 17:10:06 GMT</pubDate></item><item><title><![CDATA[Reply to Question about translations&#x2F;the translation system on Wed, 01 Jan 2025 17:56:52 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> Thnx, and figures. I guess its a fringe case anyway, having one global language and doing another for this (its a birthday message module Im working on). Ill just settle for using the global settings for now.</p>
<p dir="auto">/C</p>
]]></description><link>https://forum.magicmirror.builders/post/122375</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/122375</guid><dc:creator><![CDATA[cgillinger]]></dc:creator><pubDate>Wed, 01 Jan 2025 17:56:52 GMT</pubDate></item><item><title><![CDATA[Reply to Question about translations&#x2F;the translation system on Wed, 01 Jan 2025 17:10:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cgillinger" aria-label="Profile: cgillinger">@<bdi>cgillinger</bdi></a> This is one place where the inherited module functions are not so good</p>
<p dir="auto">getTranslations()</p>
<p dir="auto">happens WAY before any code is run so you can’t adjust its response based on other info the config might have provided…</p>
<p dir="auto">and we don’t expose any functions to do the work not related to the files returned from that function</p>
<p dir="auto">but your code could do the translations BEFORE giving the content to MM… so there would be nothing to translate</p>
]]></description><link>https://forum.magicmirror.builders/post/122374</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/122374</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 01 Jan 2025 17:10:06 GMT</pubDate></item></channel></rss>