Gatsby readingTimeHelper i18n

#1

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:

#2

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"
}
#3

It work perfectly, thank you! :slight_smile:

1 Like
closed #4

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