refactor: enforce consistent camelCase in const names, add comments, condense multiple single-line comments into one multi-line comment (#43699)
This commit is contained in:
@ -347,10 +347,12 @@ function populateTestsForLang({ lang, challenges, meta }) {
|
||||
);
|
||||
}
|
||||
|
||||
// Then we compare the number of times each comment appears in the
|
||||
// translated text (commentMap) with the number of replacements
|
||||
// made during translation (challenge.__commentCounts). If they
|
||||
// differ, the translation must have gone wrong
|
||||
/*
|
||||
* Then we compare the number of times each comment appears in the
|
||||
* translated text (commentMap) with the number of replacements
|
||||
* made during translation (challenge.__commentCounts). If they
|
||||
* differ, the translation must have gone wrong
|
||||
*/
|
||||
|
||||
const commentMap = new Map(Object.entries(comments));
|
||||
|
||||
|
Reference in New Issue
Block a user