No lang() method defined in momentjs object

52 views
Skip to first unread message

joe5yellow

unread,
Aug 4, 2014, 5:07:29 AM8/4/14
to keyst...@googlegroups.com
I am working on some i18n tasks so I want to display the datetime in different languages, say Spanish or Chinese.
There is a method in moment.js which is lang() , to switch to different language or even configure the translated format.

I get the moment.js object by calling DateTime.mement() but it says undefined method.

I try to include moment.js in dependencies but it is not working.

Anyone knows how to solve this?
Reply all
Reply to author
Forward
0 new messages