Hey everyone, i need some help on translation carbon values date, time etc....,
for example using {{ date('M d, Y',strtotime($something->created at)) }}
then it will be displayed as —> Apr 03, 2021
my question how can we translate "Apr" to other languages, i have spent more than 3 days on this case searching for a possible way in the last 3 days, but there was no luck :(, if you could help me and the other who need this solution
also i have tried more than one way for this such as writing this on providers.php
$app = $this->app && method_exists($this->app, 'getLocale') ? $this->app : app('translator');
$locale = $app->getLocale();
Carbon::setLocale($locale);
CarbonImmutable::setLocale($locale);
CarbonPeriod::setLocale($locale);
CarbonInterval::setLocale($locale);