Incorrect language codes in Reader View reading time calculation
Categories
(Toolkit :: Reader Mode, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox138 | --- | fixed |
People
(Reporter: k.minowa, Assigned: mconley)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0
Steps to reproduce:
When opening Reader View on any Japanese article, the displayed reading time does not appear to match the study referenced in the code comments (https://iovs.arvojournals.org/article.aspx?articleid=2166061).
The _getReadingSpeedForLanguage() function in toolkit/components/reader/ReaderMode.sys.mjs appears to use incorrect language codes for Japanese and Slovenian compared to the study referenced in the code comments. The correct language codes should be 'ja' for Japanese and 'sl' for Slovenian.
Actual results:
It seems that reading time is calculated using English data instead of Japanese data.
Expected results:
Japanese reading time should be calculated based on Japanese data.
Updated•8 months ago
|
| Assignee | ||
Comment 2•8 months ago
|
||
Comment 4•8 months ago
|
||
| bugherder | ||
Description
•