Having some trouble with changing the language options of a moment formatted date, I’ve tested using moment().locale('de'); model.date = moment().format('LLLL')
but I still get the date in English. When I went into the console and tested the moment().locale() command, I would always get returned an object which showed that the locale was still set to 'en'
no matter what the argument of locale()
.
Any thoughts?
For additional locales I think you will need to include the cdn’s and then add in the onAppLoad action.
To keep basecide size down they are not included.
Ah that would make sense I thought they might not be included but I found a reference to moment().locale() in the base code so I assumed I was wrong and they were included.