Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fix(monthView): Allow the week number to be i18n'd

Closes #197
  • Loading branch information...
Matt Lewis
Matt Lewis committed Nov 7, 2015
1 parent 53a2909 commit ba19b8624c9d208cbbb96c86ed7cab105727e187
Showing with 3 additions and 2 deletions.
  1. +2 −1 src/services/calendarConfig.js
  2. +1 −1 src/templates/calendarMonthCell.html
@@ -50,7 +50,8 @@ angular

var i18nStrings = {
eventsLabel: 'Events',
timeLabel: 'Time'
timeLabel: 'Time',
weekNumber: 'Week {week}'
};

var configProvider = this;
@@ -32,7 +32,7 @@
<ng-include src="vm.cellEventsTemplateUrl || 'calendarMonthCellEvents.html'"></ng-include>

<div id="cal-week-box" ng-if="$first && rowHovered">
Week {{ day.date.week() }}
{{ vm.calendarConfig.i18nStrings.weekNumber.replace('{week}', day.date.week()) }}
</div>

</div>

0 comments on commit ba19b86

Please sign in to comment.
You can’t perform that action at this time.