Some new translations.

This commit is contained in:
James Cole
2015-05-21 07:44:44 +02:00
parent e426f5d5da
commit ffb11b01a6
6 changed files with 44 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ $(function () {
ranges[currentMonthName] = [moment().startOf('month'), moment().endOf('month')];
ranges[previousMonthName] = [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')];
ranges[nextMonthName] = [moment().add(1, 'month').startOf('month'), moment().add(1, 'month').endOf('month')];
ranges['Everything'] = [firstDate, moment()];
ranges[everything] = [firstDate, moment()];
$('#daterange').daterangepicker(
{
@@ -15,10 +15,19 @@ $(function () {
//View::share('nextMonthName', $next);
ranges: ranges
,
ranges: ranges,
opens: 'left',
locale: {
applyLabel: applyLabel,
cancelLabel: cancelLabel,
fromLabel: fromLabel,
toLabel: toLabel,
weekLabel: 'W',
customRangeLabel: customRangeLabel,
daysOfWeek: moment.weekdaysMin(),
monthNames: moment.monthsShort(),
firstDay: moment.localeData()._week.dow
},
format: 'DD-MM-YYYY',
startDate: start,
endDate: end