Skip to content

Commit

Permalink
set the locale
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed May 23, 2022
1 parent cd35ac7 commit f58ff16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public function boot()
__DIR__.'/../resources/fieldsets' => resource_path('fieldsets'),
], 'events-fieldsets');

Carbon::setLocale(Site::current()->locale());

$weekStartDay = Carbon::getTranslator()->trans(id: 'first_day_of_week', locale: Site::current()->locale());

/*
Expand Down

0 comments on commit f58ff16

Please sign in to comment.