I am working on printing date in more than one language in the English language. No problem but I have a problem of course, Date in Urdu, In Drupal 7 I used PHP this way
<span class="arabic-date"> <?php
$arrayurdudays = array('', 'پير', 'منگل', 'بدھ', 'جمعرات', 'جمعه', 'ہفتہ', 'اتوار');
print format_date(time(), 'custom', ' l ، d F ، Y', null, 'ur'); ?></span>
But now with Drupal 8 using twig I tried more than one way and it didn't work for me,
I downloaded model (Configuration Translation) that did not work for me,
I have read that there is a way to print it inside a file (.theme), but I did not understand the method well,
Because I need it inside the header file.