Reputation: 1591
I'm new to php and Yii2, and would appreciate any advise.
My website supports 2 languages: English and Mongolian. I am not sure how to localize month names for Mongolian language, using:
date_format(new DateTime($model->start_date), 'd F Y')
Is it a proper way to have an array of Mongolian month names, and then create datetime and place a proper name? Or is there any MN libraries to include to standard php localization?
Thanks a lot.
Upvotes: 1
Views: 1841