# How to translate the date intervals "year" and "month" in portal.js?

**URL:** <https://forum.ghost.org/t/how-to-translate-the-date-intervals-year-and-month-in-portal-js/25599>\
**Category:** Developer help\
**Created:** [September 12, 2021, 4:40pm UTC](https://forum.ghost.org/t/how-to-translate-the-date-intervals-year-and-month-in-portal-js/25599 "2021-09-12T16:40:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiwi](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kiwi](https://forum.ghost.org/u/Kiwi)\
**Post date:** [September 12, 2021, 4:40pm UTC](https://forum.ghost.org/t/how-to-translate-the-date-intervals-year-and-month-in-portal-js/25599/1 "2021-09-12T16:40:49Z")

</div>

Hi,

I just spent several days translating my entire Ghost instance (theme, portal.js, transactional mails, newsletter, maintenance page, 404 page, unsubscribe page… you name it). It took a long time to find the right files, but it allowed me to better understand how Ghost works.

As I speak to you, I have literally translated everything except for two words. These two words are the date intervals **“year”** and **“month”** which are used to indicate how soon you will need to renew your subscription in Portal. Every time I try to translate these words, Portal stops working.

I have come to the conclusion that these words are linked to another file (other than portal.js), but I can’t find it. So I come to you as a last resort. **Does anyone know how to translate the words “year” and “month” in Portal?** If no one can help me, it’s not a big deal. It’s just two words, I can live with that.

Thank you.

---

<div class="post-metadata">

**Author:** ![aufdemweg](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@aufdemweg](https://forum.ghost.org/u/aufdemweg)\
**Post date:** [January 27, 2024, 5:54pm UTC](https://forum.ghost.org/t/how-to-translate-the-date-intervals-year-and-month-in-portal-js/25599/2 "2024-01-27T17:54:50Z")

</div>

Look for this passage in portal.min.js:

nickname:“Yearly”,currency:e.currency,amount:e.yearly\_price,interval:“year”

If you change this to

nickname:“Yearly”,currency:e.currency,amount:e.yearly\_price,interval:“translated”

the /year won’t show up. Instead /translated would show up
