Digits type in publication language (ar)

Site unavailable version: 3.0

Google chrome browser

hello everybody
i’m new to ghost , and working on arabic ghost theme “Lyra” after changing publication language to (ar) digit format for date changes to be like that “٠١٢٣٤٥٦٧٨٩” but i want digit to be like that “0123456789”,
what is the issue here ?

<span class="post-card-byline-date"><time

                        datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM YYYY"}}</time> <span

                        class="bull">&bull;</span>

                    {{reading_time minute=(t "single-minute") minutes=(t "% multi-minutes")}}

                </span>
1 Like

Hey @abdalla_saleh,

Just to clarify, you’re wanting to translate the reading time numbers themselves right?

Hey @DavidDarnes
thanks for your response
yeah i want date like that : ١٦ مارس ٢٠٢٠ to be like that when
changing to ar language : 16 مارس2020

Ah I see. We actually have a tutorial on that very subject, check it out:
https://ghost.org/tutorials/localising-dates-in-ghost-themes/

1 Like

thanks @DavidDarnes
i’m gonna check it out

1 Like

This tutorial explain solution depending on import scripts like jquery and moment , but in my case i’m not allowed to use jquery or other scripts as the main target is to create fast theme with minimal requests number , so this solution didn’t work for me if you have any other ideas - i’m waiting
thanks @DavidDarnes

You don’t have to use a CDN for your scripts, you could bundle those scripts into your theme. You could even minify them into a single JavaScript file, which would remove any additional file requests

ok, let me try