Im having this language issue while using Carbon Carbon::parse($this->updated_at)->locale('es')->format("l j F Y"); still prints the month and day in english despite setting the locale to spanish here and on my config.app file.
Any ideas what i could do to present it like this: [Month in spanish] 09 2021
if i use ->locale('es')->monthNameit works fine but not with the format tag.
Found 2 solutions for anyone requiring this in the future:
return Carbon::parse($this->updated_at)->translatedFormat('d F Y'); //09 junio 2021
or
setlocale(LC_TIME, 'es_ES');
return Carbon::parse($this->updated_at)->formatLocalized('%d %B %Y'); //09 junio 2021