Merge pull request #6128 from beganovich/v5-3900

(v5) Localization support for range dates (MONTH+1)
This commit is contained in:
Benjamin Beganović 2021-06-25 08:21:36 +02:00 committed by GitHub
commit d7525f93cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -474,7 +474,7 @@ trait MakesInvoiceValues
} }
if ($matches->keys()->first() == ':MONTH') { if ($matches->keys()->first() == ':MONTH') {
$output = \Carbon\Carbon::create()->month($output)->localeMonth; $output = \Carbon\Carbon::create()->month($output)->translatedFormat('F');
} }
$value = preg_replace( $value = preg_replace(