Momentjs does not work in Modeler and Task

Yvo,

On Pull Request #292 was added to translate and automatic language detection, but the momentjs is not working automatically. With this in Modeler and in the Task the expressions like Today, Day, an hour ago, a few seconds ago and etc are not translated.
I already added the momentjs with several languages but it did not work.
Any idea how to fix this?

Hi .

I’ll have a look.

Yvo

The moment js instance needs to be initialized with a locale.
It also needs a moment js distribution with locale support.
Getting the correct browser locale is quite cumbersome (cross browser).
I’ve got something working and will discuss this with the rest of the team.

Regards,

Yvo

Okay. If I can help, I’ll be at ease.

Hi.

A pull request addressing this was just merged.

https://github.com/flowable/flowable-engine/pull/410

Please take a look at the PR comment.

Regards,

Yvo

Thank you very much!
To enable I must change the app-cfg.js file and change the parameter “datesLocalization: false” to true?

Best regards.

Hi.

that’s correct.

Regards,

Yvo