Skip to content

Commit

Permalink
Improve locale checker report readability (#2431)
Browse files Browse the repository at this point in the history
* Improve locale checker report readability

* Fix linter fails
  • Loading branch information
xavierfacq authored Nov 10, 2023
1 parent a56e0d5 commit 3010e27
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/locale-checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ def main():
if locale_lead is None:
locale_lead = "n/a"
url = f"https://github.com/{REPO}/blob/main/{os.path.join(root, f'index.{locale}.adoc')}"
body += (
f'| {locale} | [{f"index.{locale}.adoc"}]({url}) | {locale_lead}\n'
)
body += f'| {locale.upper()} | [{f"index.{locale}.adoc"}]({url}) | {locale_lead}\n'
body += "\n"
body += "```diff\n"
body += f"- {english_shasum} (English latest)\n"
Expand All @@ -152,7 +150,7 @@ def main():
for locale in outdated_locales:
localized_shasum = locale.split()[0].strip()
locale = locale.split()[1].strip()
body += f"### View the changes to the English file since the last {locale} update\n\n"
body += f'### View the changes to the English file since the last "{locale.upper()}" update\n\n'
body += "<details>\n"
body += "<summary>View Diff</summary>\n\n"
# Generate diff between English file and the English version of the localized file
Expand Down

0 comments on commit 3010e27

Please sign in to comment.