Localization fixes

This commit is contained in:
Hillel Coren 2017-12-07 14:12:34 +02:00
parent 20341aaf88
commit 180a8b5e0f
3 changed files with 9 additions and 3 deletions

View File

@ -75,8 +75,10 @@
$('#reportrange').daterangepicker({ $('#reportrange').daterangepicker({
locale: { locale: {
format: "{{ $account->getMomentDateFormat() }}", format: "{{ $account->getMomentDateFormat() }}",
customRangeLabel: "{{ trans('texts.custom_range') }}", customRangeLabel: "{{ trans('texts.custom_range') }}",
applyLabel: "{{ trans('texts.apply') }}",
cancelLabel: "{{ trans('texts.cancel') }}",
}, },
startDate: statementStartDate, startDate: statementStartDate,
endDate: statementEndDate, endDate: statementEndDate,

View File

@ -138,8 +138,10 @@
$('#reportrange').daterangepicker({ $('#reportrange').daterangepicker({
locale: { locale: {
format: "{{ $account->getMomentDateFormat() }}", format: "{{ $account->getMomentDateFormat() }}",
customRangeLabel: "{{ trans('texts.custom_range') }}", customRangeLabel: "{{ trans('texts.custom_range') }}",
applyLabel: "{{ trans('texts.apply') }}",
cancelLabel: "{{ trans('texts.cancel') }}",
}, },
startDate: chartStartDate, startDate: chartStartDate,
endDate: chartEndDate, endDate: chartEndDate,

View File

@ -93,6 +93,8 @@
locale: { locale: {
format: "{{ $account->getMomentDateFormat() }}", format: "{{ $account->getMomentDateFormat() }}",
customRangeLabel: "{{ trans('texts.custom_range') }}", customRangeLabel: "{{ trans('texts.custom_range') }}",
applyLabel: "{{ trans('texts.apply') }}",
cancelLabel: "{{ trans('texts.cancel') }}",
}, },
startDate: chartStartDate, startDate: chartStartDate,
endDate: chartEndDate, endDate: chartEndDate,