Saturday, June 16, 2018

Day and month name translation in Drupal8

Leave a Comment

I am new to Drupal world and creating a site in Urdu language in Drupal 8. I have enabled its multilingual support and set default language to Urdu (in fact, this is the only language of the site).

I have created a content type and enabled to show Display author and date information. I have also added some contents for this content type. When I go to view some content, its author and date information is displayed as below.

Submitted by mabilalmirza on Fri, 02/09/2018 - 23:33

I know I can translate the string using translation interface but I want the day name to be shown in Urdu, for example, Fri should be translated to جمعہ. I want to translate month names as well for long date format.

Can anyone guide me to accomplish this?

1 Answers

Answers 1

go to your date format for example /admin/config/regional/date-time/formats/manage/long and change lang to your or create new date format.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment