Commit dc69661
authored
feat: display the reading time in a formatted for the locale (#7495)
* feat: display the reading time in a formatted for the locale
The display of the reading time for each page is currently based
on the assumption that the page is in English. This change makes
the Intl API is used to display the reading time in a format
appropriate for the locale of the translated language.
* maximumFractionDigits1 parent 2f2fd25 commit dc69661
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | | - | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| |||
0 commit comments