Skip to content

Commit f53fd61

Browse files
committed
chore: clean up markdown report
1 parent 64b1a64 commit f53fd61

File tree

1 file changed

+3
-5
lines changed
  • src/scripts/crowdin/translations

1 file changed

+3
-5
lines changed

src/scripts/crowdin/translations/utils.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const getQAMessage = (locale: string) => {
5050
return `
5151
\`\`\`shell
5252
yarn markdown-checker
53-
\`\`\`l
53+
\`\`\`
5454
5555
<details><summary>Unfold for ${summaryJson[locale].length} result(s)</summary>
5656
@@ -89,9 +89,7 @@ export const processLocale = (locale: string, buckets: number[]) => {
8989
Thank you to everyone contributing to translate ethereum.org ❤️
9090
9191
## Content buckets imported
92-
${new Intl.ListFormat("en", { type: "conjunction" }).format(
93-
buckets.map(String)
94-
)}
92+
${buckets.sort((a, b) => a - b).join(", ")}
9593
9694
## Markdown QA checker alerts
9795
${getQAMessage(locale)}
@@ -117,7 +115,7 @@ export const processLocale = (locale: string, buckets: number[]) => {
117115
const updatedBody =
118116
prBody +
119117
`\n\n## Preview link
120-
- [${previewUrl}](${previewUrl})
118+
[${previewUrl}](${previewUrl})
121119
`
122120
// Update PR with new body
123121
writeFileSync(bodyWritePath, updatedBody)

0 commit comments

Comments
 (0)