Gatsby readingTimeHelper i18n

I working on a French website with gatsby-starter-ghost and I’m unable to use the readingTimeHelper because it come formatted in English.

Is there any way to only get the number of minutes (integer) and i will complete manually with the French text?

I’m open to any work around to make it work! :slight_smile:

Assuming you’re using the @tryghost/helpers library, you can pass in the following options:

{
  minute: "1 minute read",
  minutes: "This post will take % minutes to read"
}

It work perfectly, thank you! :slight_smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.