# How to properly display jalali dates for Persian language

**URL:** https://meta.discourse.org/t/how-to-properly-display-jalali-dates-for-persian-language/62157
**Category:** Translations
**Created:** [May 5, 2017, 10:15am UTC](https://meta.discourse.org/t/how-to-properly-display-jalali-dates-for-persian-language/62157 "2017-05-05T10:15:46Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [May 6, 2017, 8:16pm UTC](https://meta.discourse.org/t/how-to-properly-display-jalali-dates-for-persian-language/62157/12 "2017-05-06T20:16:18Z")

</div>

I haven’t done translations before, however - my understanding is that…

All translations are supplied via [https://www.transifex.com/discourse/discourse-org/](https://www.transifex.com/discourse/discourse-org/)

This at some point then is migrated into client and server files in the Discourse repo where the English versions are these:  
[discourse/config/locales/client.en.yml at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/config/locales/client.en.yml)  
[discourse/config/locales/server.en.yml at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/config/locales/server.en.yml)

This topic covers this in more detail:

> [@Contributing translations to Discourse](https://meta.discourse.org/t/contribute-a-translation-to-discourse/14882):
>
> bookmark This document provides a guide on how to contribute translations to the Discourse platform using Crowdin. person_raising_hand Required user level: Anyone can contribute translations Translating Discourse into different languages is essential for its global adoption. Contributing as a translator or proofreader is greatly appreciated and helps in making Discourse accessible to a broader audience. Summary This guide covers: Translating Discourse using Crowdin. Becoming a proofr…

Note that there is a whole dates section in each of these files which comes from Transiflex:

> <https://github.com/discourse/discourse/blob/main/config/locales/client.en.yml#L39-L65>

> <https://github.com/discourse/discourse/blob/main/config/locales/server.en.yml#L18-L44>

* * *

Again hopefully someone with more knowledge will correct me if wrong…

As I see it you should submit the "jYYYY etc translations to [https://www.transifex.com/discourse/discourse-org/](https://www.transifex.com/discourse/discourse-org/)

Moment.js will then be called with the right “jYYYY” etc instead of “YYYY”

Then you need to submit two extra code patches / Pull Requests to Discourse to add and call the extra libraries as needed:

1. One Pull Request to add and load [moment-jalaali](https://github.com/jalaali/moment-jalaali/) if, an only if “jYYYY” etc are used.
2. 2nd Pull Request for handling any dates etc which are handled via Ruby.

Following the translation and then first pull request should get you most of the way there.

One of the Discourse team will read this at some point (they read everything here) and may comment on if this is acceptable or if they have a better idea for a way forward.

---

_[View the full topic](https://meta.discourse.org/t/how-to-properly-display-jalali-dates-for-persian-language/62157)._
