We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
millify
1 parent 1cc58e9 commit cae9b52Copy full SHA for cae9b52
scripts/generate-translation-doc.ts
@@ -1,5 +1,4 @@
1
import fs from "fs";
2
-import millify from "millify";
3
import locales from "../i18n/index";
4
import languageNames from "../i18n/languageNames";
5
@@ -31,7 +30,7 @@ export function generateReadmeLocales() {
31
30
localesListTable += ` <tr>
32
<td><p align="center"><code>${row}</code></p></td>
33
<td><p align="left">${languageNames[row]}</p></td>
34
- <td><p align="center"><img src="https://shapecolor.vercel.app/?width=14&height=14&radius=7&color=${progressColor}"/> ${millify.millify(progress)}%</p></td>
+ <td><p align="center"><img src="https://shapecolor.vercel.app/?width=14&height=14&radius=7&color=${progressColor}"/> ${progress.toFixed(0)}%</p></td>
35
</tr>\n`;
36
}
37
0 commit comments