Localization for Timeline demo app

Oct 1, 2014 at 7:54 PM
Is there a way to localize the Timeline demo app (days and months are expressed in english).
I took a look around but didn't find any js or resource file to mangle with.
Thanks
Oct 13, 2014 at 10:19 AM
Any hint?... I saw in the storyjs-embed.js file there is this line
if(h.js.match("locale")){h.lang=h.js.split("locale/")[1].replace(".js","");
and the locales are all there in the locale folder but I don't know how to tell Timeline I want a specific one. Where should I set this?
Oct 13, 2014 at 10:32 AM
Update: I tried adding
            createStoryJS({
                type: 'timeline',
                width: '' + timeLineElement.width(),
                height: timeLineElement.height(),
                source: timelineData,
 __               language: 'it',__
                embed_id: timeLineElement.attr("id"),
                start_at_slide: listContent.StartAtSlide,
                start_zoom_adjust: listContent.StartZoomAdjust
            });
but for some reason this seems to break the script. It seems to have some effect because I'm receiving a "Uncaught TypeError: Cannot read property 'month' of undefined"
May this be thied to the way 2sxc reformats dates to pass them to Timeline which only takes into account english?

Any other hint?
Oct 13, 2014 at 10:41 AM
Update: SOLVED!

The line to add in createStoryJS() function inside \Portals\yourportalid\2sxc\TimelineJS\assets\script.js is lang: 'it', and not language: 'it',
Developer
Oct 13, 2014 at 10:48 AM
Great that you were able to solve it. I just had a look at the TimelineJS App: the dates are passed to TimelineJS as standard JavaScript date objects, so TimelineJS is able to format it appropriately.
Oct 13, 2014 at 10:51 AM
Edited Oct 13, 2014 at 10:51 AM
Just checked it out for you you have the javascript call incorrecnt "language" needs to be "lang"

Oh you beat me to it ;)
Oct 13, 2014 at 11:03 AM
Thank you the same guys, much appreciated!