almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

vis.js not defaulting to English months. even tried adding moments with locals #3937

Open adp2916 opened 6 years ago

adp2916 commented 6 years ago

When I run the examples it shows months in English but in the qlik sense visualization it is not. I am using require js.

define(['jquery','./momentWithLocals','./vis.min','text!./vis-timeline-graph2d.min.css','text!./TimelineChart.v1.1.css'],function($,moment,vis,cssContent,timeLineCss){ code }

I have tried adding locale option but it doesn't work.

adp2916 commented 6 years ago

Found the solution,

when I use vis.moment it worked.

But still dont understand how? vis.moment is embedded moment.js in vis.js. so it should work without moment.js before vis.js.

but when I remove moment.js from the requireJS it through an error "moment is not a function.