Merge #4760
4760: Closes #2923: Remove moment.js from reader view web extension r=Amejia481 a=csadilek Removes moment.js from reader view, and uses [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat ) instead to construct a localized reading time string. Tested this with various sites in Spanish, Arabic, German, and English to verify this works as before. We could improve this more later to detect the language if the article doesn't specify but that's a separate issue (which also doesn't work in Fennec currently). Co-authored-by:Christian Sadilek <christian.sadilek@gmail.com>
This diff is collapsed.
Please register or sign in to comment