Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.

Commit

Permalink
fix(monthView): Allow the week number to be i18n'd
Browse files Browse the repository at this point in the history
Closes #197
  • Loading branch information
Matt Lewis committed Nov 7, 2015
1 parent 53a2909 commit ba19b86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/services/calendarConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ angular

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

var configProvider = this;
Expand Down
2 changes: 1 addition & 1 deletion src/templates/calendarMonthCell.html
Original file line number Diff line number Diff line change
Expand Up @@ -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.