-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Reading time helper #9569
Comments
I've implemented some stuff for the reading time helper before, I'll pick this up tonight. |
We currently have the following usage for reading time i18n:
If we make the min read time 1 minute, the seconds option becomes obsolete. I would say we still want to differentiate between singular and plural minutes for i18n, do we want to keep their names as 'minute' and 'minutes' or rename them to something like 'singular' and 'plural'? I'm guessing for backwards compatibility it's better to leave the names as-is, but do we just altogether remove the 'seconds' option? |
Exactly my question as well. |
Yeah please keep naming as is. We don't want to break themes.
Yeah. It only changes a tiny detail of the reading time helper's output - probably comparable to what we did with the meta title in the past, see. People can still pass We should shout on https://themes.ghost.org, so people can update their theme locales. |
closes #9569 - Removed the `<1 min read` time clause, effectively making `1 min read` the minimum reading time - Removed the `seconds` option for i18n strings, which contained the less than one minute display string - Kept the other i18n string options the same - Amended and improved tests for new functionality
@kirrg001 The docs on https://themes.ghost.org are updated, we just need to remember to add a shout out on the changelog for the next release! |
We don't really want to distinguish between posts which take 1 minute to read and posts which take less than 1 minute to read. The minimum reading time for a post should simply be 1 minute.
https://github.com/TryGhost/Ghost/blob/master/core/server/helpers/reading_time.js
This needs a very small refactor to make that change.
The text was updated successfully, but these errors were encountered: