-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Description
Describe the bug
The Chinese simplified tutorials page is showing the incorrect time to read. Every tutorial is showing 1 or 2 minutes as their read time.
For tutorials hosted on ethereum.org we get timeToRead through a GraphQL query which, based on the number of words, calculates an estimated reading time.
We use gatsby-plugin-mdx to calculate the timeToRead and it is a known issue that the plugin doesn't work well with hanzi/kanji (Chinese/Japanese characters).
There is an open PR in the Gatsby repo to fix this issue but there hasn't been any movement on this in a while.
One solution could be to add timeToRead to the frontmatter of all Chinese tutorials with hardcoded values (similar to how we do it with external tutorials).
To Reproduce
Steps to reproduce the behavior:
- Go to 'https://ethereum.org/zh/developers/tutorials/'
- See error
Expected behavior
The time to read should be accurate and closer to the times found on other languages (see Romanian)
Screenshots
Chinese simplified tutorials

Additional context
Want to contribute?
We love contributions from the Ethereum community! Please comment on an issue if you're interested in helping out with a PR.
