Skip to content

Chinese tutorials showing incorrect reading time #4083

@minimalsm

Description

@minimalsm

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:

  1. Go to 'https://ethereum.org/zh/developers/tutorials/'
  2. 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
Screenshot 2021-09-29 at 15 45 04

Romanian tutorials
Screenshot 2021-09-29 at 15 46 12

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Up NextThis issue has been prioritized to work on soonbug 🐛Something isn't workingtranslation 🌍This is related to our Translation Program

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions