Skip to content

Commit

Permalink
feat(script): update auto-update-readme.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
abgox committed Jun 11, 2024
1 parent 98993ab commit 7e42e9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/auto-update-readme.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ function generate_list {
$result = Compare-JsonProperties -hashTableEN $hashTableEN -hashTableCN $hashTableCN
return $result.CompletionPercentage
}
$lang_info = @("``$($lang_list[0])``")
$lang_info = @("**$($lang_list[0])**")
if ($lang_list.Count -gt 1) {
foreach ($lang in $lang_list[1..($lang_list.Count - 1)]) {
$percentage = get_percentage $lang
if ($lang -in $json_config.language) {
$lang_info += "``$($lang)($($percentage)%)``"
$lang_info += "**$($lang)($($percentage)%)**"
}
else {
$lang_info += "~~``$($lang)($($percentage)%)``~~"
$lang_info += "**~~$($lang)~~($($percentage)%)**"
}
}
}
Expand Down

0 comments on commit 7e42e9a

Please sign in to comment.