diff --git a/README.md b/README.md index 34b8409..8754972 100644 --- a/README.md +++ b/README.md @@ -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 | | --- | --- | --- | --- | --- | diff --git a/src/Commands/NovaLangStats.php b/src/Commands/NovaLangStats.php index a50aecf..b134fae 100644 --- a/src/Commands/NovaLangStats.php +++ b/src/Commands/NovaLangStats.php @@ -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); }