This commit is contained in:
James Cole
2019-08-23 06:40:48 +02:00
parent 3d444eb833
commit a1f57a0949
6 changed files with 140 additions and 73 deletions

View File

@@ -95,6 +95,10 @@ class Range
$dateTimeFormat = (string)trans('config.date_time');
$defaultCurrency = app('amount')->getDefaultCurrency();
// also format for moment JS:
$madMomentJS = (string)trans('config.month_and_day_moment_js');
app('view')->share('madMomentJS', $madMomentJS);
app('view')->share('monthAndDayFormat', $monthAndDayFormat);
app('view')->share('dateTimeFormat', $dateTimeFormat);
app('view')->share('defaultCurrency', $defaultCurrency);