Home > Net >  How to show the current month in arabic with Carbon?
How to show the current month in arabic with Carbon?

Time:02-28

I have this code Carbon::now()->locale('ar_SA')->format('F') it should show the current month in Arabic lang but I got "February"

CodePudding user response:

On the fly you can use Carbon\Carbon::now()->locale("ar_SA")->translatedFormat("F")

Applicationwide update locale inside the file config/app.php

CodePudding user response:

use package Arabic-laravel4

github.com/jenssegers/date

  • Related