Skip to content

Commit

Permalink
comma in badge
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbs committed Jun 3, 2020
1 parent cce3922 commit 17a6633
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Ensure you have created a GitHub personal access token and saved it as a `GITHUB
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.

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

| Code | Language | Translated files | Lines translated | Thanks to |
| --- | --- | --- | --- | --- |
Expand Down
2 changes: 2 additions & 0 deletions src/Commands/NovaLangStats.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ protected function getPercentIcon($complete, $percent = null): string

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

$complete = ctype_digit($complete) ? number_format($complete) : $complete;

return sprintf('https://img.shields.io/badge/%s-%s%%25-%s?style=flat-square', $complete, $percent, $color);
}

Expand Down

0 comments on commit 17a6633

Please sign in to comment.