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?