From 7726248f7232ed508d2e41ef654d5620f551838b Mon Sep 17 00:00:00 2001 From: ilya-git Date: Wed, 20 Apr 2016 18:39:47 +0200 Subject: [PATCH] Automatic first day of the week configuration based on angular locale --- src/calendar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calendar.js b/src/calendar.js index 181dd88..c134c3e 100644 --- a/src/calendar.js +++ b/src/calendar.js @@ -205,7 +205,8 @@ angular.module('ui.calendar', []) monthNames: tValues(dtf.MONTH), monthNamesShort: tValues(dtf.SHORTMONTH), dayNames: tValues(dtf.DAY), - dayNamesShort: tValues(dtf.SHORTDAY) + dayNamesShort: tValues(dtf.SHORTDAY), + firstDay: dtf.FIRSTDAYOFWEEK + 1 }; } return {};