user3318489 user3318489 - 2 months ago 12x
AngularJS Question

mwl calender moment.js - Day names in german

I use the mwl calender and it works fine. My only problem is to view the day names in german. In my AngularJS calendar- controller I have configured moment like this:

momentJS is included in the html using:

<script type="text/javascript" src="assets/bower_components/moment/min/moment.min.js"></scr‌​ipt>

then used as below:

function CalendarController(..., moment, ...) {
moment.locale('de', {
week : {
dow : 1 // sets start day to monday

so I set the locale to de but the day names are still in english (Monday, Thusday, ...)
Does anyone have a hint what I have to do in order to view day names in german?


You should import the locale too, use this instead:

<script type="text/javascript" src="assets/bower_components/moment/min/moment-with-locales.min.js"></scr‌​ipt>