Skip to content

Commit cae9b52

Browse files
committed
scripts: remove millify module
1 parent 1cc58e9 commit cae9b52

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/generate-translation-doc.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import fs from "fs";
2-
import millify from "millify";
32
import locales from "../i18n/index";
43
import languageNames from "../i18n/languageNames";
54

@@ -31,7 +30,7 @@ export function generateReadmeLocales() {
3130
localesListTable += ` <tr>
3231
<td><p align="center"><code>${row}</code></p></td>
3332
<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>
33+
<td><p align="center"><img src="https://shapecolor.vercel.app/?width=14&height=14&radius=7&color=${progressColor}"/> ${progress.toFixed(0)}%</p></td>
3534
</tr>\n`;
3635
}
3736

0 commit comments

Comments
 (0)