File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import fs from "fs" ;
2
+ import millify from "millify" ;
2
3
import locales from "../i18n/index" ;
3
4
import languageNames from "../i18n/languageNames" ;
4
5
@@ -24,14 +25,13 @@ export function generateReadmeLocales() {
24
25
const localesSlice = availableLocales . slice ( i , i + 1 ) ;
25
26
const row = localesSlice . map ( locale => generateTranslationsMarkdown ( locale ) ) . join ( "" ) ;
26
27
27
- // Menghitung persentase progres dan warna yang sesuai
28
28
const progress = ( Object . keys ( locales [ row ] ) . length / 16 ) * 100 ;
29
29
const progressColor = getProgressColor ( progress ) ;
30
30
31
31
localesListTable += ` <tr>
32
32
<td><p align="center"><code>${ row } </code></p></td>
33
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 } "/> ${ progress . toFixed ( 2 ) } %</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>
35
35
</tr>\n` ;
36
36
}
37
37
You can’t perform that action at this time.
0 commit comments