<?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[News feed and calandar hang after translation]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I am new to MM but managed to install and run it so far.<br />
I wanted to translate it so I created a translation file and added it to translation.js.<br />
It works but when I use it the “news” and “calendar” modules just hang on “loading…”.<br />
If I switch back to English they work fine.<br />
Any idea what could cause this?</p>
]]></description><link>https://forum.magicmirror.builders/topic/9323/news-feed-and-calandar-hang-after-translation</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 11:48:27 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/9323.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Dec 2018 14:24:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to News feed and calandar hang after translation on Sat, 29 Dec 2018 13:22:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/idoodler" aria-label="Profile: idoodler">@<bdi>idoodler</bdi></a> Originally I translated them by creating a new file called il.js and added it to the translations.js file.</p>
<p dir="auto">By debugging and reading the thread mentioned above I understood that something was wrong with the locale.</p>
<p dir="auto">It got me thinking that Israel locale is he_IL and that maybe I used the IL instead of the HE.<br />
That means that the MM uses that locale for other things too.<br />
I changed the file name to he.js and updated the tranlations.js and that got things to work.</p>
]]></description><link>https://forum.magicmirror.builders/post/48799</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48799</guid><dc:creator><![CDATA[zipo13]]></dc:creator><pubDate>Sat, 29 Dec 2018 13:22:51 GMT</pubDate></item><item><title><![CDATA[Reply to News feed and calandar hang after translation on Thu, 27 Dec 2018 09:22:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zipo13" aria-label="Profile: zipo13">@<bdi>zipo13</bdi></a> Just to clarify, what exact file did you edit?</p>
]]></description><link>https://forum.magicmirror.builders/post/48653</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48653</guid><dc:creator><![CDATA[idoodler]]></dc:creator><pubDate>Thu, 27 Dec 2018 09:22:01 GMT</pubDate></item><item><title><![CDATA[Reply to News feed and calandar hang after translation on Thu, 27 Dec 2018 07:31:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zipo13" aria-label="Profile: zipo13">@<bdi>zipo13</bdi></a> said in <a href="/post/48636">News feed and calendar hang after translation</a>:</p>
<blockquote>
<p dir="auto">‘humanize’ of undefined</p>
</blockquote>
<p dir="auto">Got it.<br />
After asking what is “humanize” I thought what not just google it :nerd_face: ?</p>
<p dir="auto">So I did and came out with <a href="https://github.com/moment/moment/issues/4493#issuecomment-372190543" target="_blank" rel="noopener noreferrer nofollow ugc">this thread</a></p>
<p dir="auto">They say that the locale is also used to load other stuff and that the locale name must match an existing locale on the system.<br />
That got me thinking that maybe I used il.js which is the country and not the language.<br />
So I changed everything to he.js and now it working :grinning_face_with_smiling_eyes:</p>
]]></description><link>https://forum.magicmirror.builders/post/48638</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48638</guid><dc:creator><![CDATA[zipo13]]></dc:creator><pubDate>Thu, 27 Dec 2018 07:31:09 GMT</pubDate></item><item><title><![CDATA[Reply to News feed and calandar hang after translation on Thu, 27 Dec 2018 07:00:58 GMT]]></title><description><![CDATA[<p dir="auto">I did not use pm2 as I couldn’t get it to work properly in the past.<br />
This MM install was done manually and not through a script.<br />
so i have no idea how to get to the server logs.</p>
<p dir="auto">I did use Chrome to see errors and I got about 6 of these:</p>
<pre><code>moment-with-locales.js:3307 Uncaught (in promise) TypeError: Cannot read property 'humanize' of undefined
    at Moment.from (moment-with-locales.js:3307)
    at Moment.fromNow (moment-with-locales.js:3314)
    at Class.getDom (newsfeed.js:115)
    at main.js:110
    at new Promise (&lt;anonymous&gt;)
    at updateDom (main.js:109)
    at Object.updateDom (main.js:514)
    at Class.updateDom (module.js:358)
    at newsfeed.js:312
16
</code></pre>
<pre><code>moment-with-locales.js:3307 Uncaught (in promise) TypeError: Cannot read property 'humanize' of undefined
    at Moment.from (moment-with-locales.js:3307)
    at Moment.fromNow (moment-with-locales.js:3314)
    at Class.getDom (newsfeed.js:115)
    at main.js:110
    at new Promise (&lt;anonymous&gt;)
    at updateDom (main.js:109)
    at Object.updateDom (main.js:514)
    at Class.updateDom (module.js:358)
    at newsfeed.js:312
</code></pre>
<p dir="auto">It seems related since the newsfeed.js and calender.js are mentioned but what is “humanize”?</p>
]]></description><link>https://forum.magicmirror.builders/post/48636</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48636</guid><dc:creator><![CDATA[zipo13]]></dc:creator><pubDate>Thu, 27 Dec 2018 07:00:58 GMT</pubDate></item><item><title><![CDATA[Reply to News feed and calandar hang after translation on Wed, 26 Dec 2018 23:22:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zipo13" aria-label="Profile: zipo13">@<bdi>zipo13</bdi></a> Hi and welcome to the MagicMirror Forum!</p>
<p dir="auto">You can debug it very easily:</p>
<p dir="auto"><strong>Node.js side error:</strong></p>
<ul>
<li>Execute <code>pm2 log mm</code></li>
<li>This shows you the last 15 lines of the error log, it should give you an idea what may be wrong.</li>
</ul>
<p dir="auto"><strong>Browser side error:</strong></p>
<ul>
<li>Open MagicMirror on your local Browser (Chrome is preferred)</li>
<li>Open the browsers Debugger, reload the page, it should give you an idea what may be wrong.</li>
</ul>
<p dir="auto">You can post the results here for further analysis.</p>
]]></description><link>https://forum.magicmirror.builders/post/48602</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/48602</guid><dc:creator><![CDATA[idoodler]]></dc:creator><pubDate>Wed, 26 Dec 2018 23:22:10 GMT</pubDate></item></channel></rss>