Skip to content

Commit 17a6633

Browse files
committed
comma in badge
1 parent cce3922 commit 17a6633

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Ensure you have created a GitHub personal access token and saved it as a `GITHUB
137137
Note: There is no need to update the count of translated strings and add your username below, as this is done by script when your PR is merged.
138138

139139
Total languages ![42](https://img.shields.io/badge/42-gray?style=flat-square)
140-
Total lines translated ![16,196 (94.5%)](https://img.shields.io/badge/16196-94%25-yellow?style=flat-square)
140+
Total lines translated ![16,196 (94.5%)](https://img.shields.io/badge/16,196-94%25-yellow?style=flat-square)
141141

142142
| Code | Language | Translated files | Lines translated | Thanks to |
143143
| --- | --- | --- | --- | --- |

src/Commands/NovaLangStats.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ protected function getPercentIcon($complete, $percent = null): string
262262

263263
$color = array_pop($colors) ?: 'lightgray';
264264

265+
$complete = ctype_digit($complete) ? number_format($complete) : $complete;
266+
265267
return sprintf('https://img.shields.io/badge/%s-%s%%25-%s?style=flat-square', $complete, $percent, $color);
266268
}
267269

0 commit comments

Comments
 (0)