We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aec4083 commit 2df90e0Copy full SHA for 2df90e0
src/scripts/crowdin/reports/wordsNeedingReview.ts
@@ -57,8 +57,12 @@ async function main() {
57
})
58
}
59
60
+ // Sort first by language code, then by bucket name
61
+ const sorted = reportSummary.sort((a, b) =>
62
+ a[0] === b[0] ? a[1].localeCompare(b[1]) : a[0].localeCompare(b[0])
63
+ )
64
// Transform to çsv string
- const csvArray = reportSummary.map((item) => item.join(","))
65
+ const csvArray = sorted.map((item) => item.join(","))
66
// Insert header names at beginning of csv array
67
csvArray.unshift("Language,Bucket Name,Words needing review")
68
const csv = csvArray.join("\n")
0 commit comments