fix: require project completion to claim certs (#40399)
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com> Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
This commit is contained in:
committed by
GitHub
parent
26bb9a4e21
commit
1f65b3b7eb
@ -248,10 +248,13 @@ ${getFullPath('english')}
|
|||||||
// while the auditing is ongoing, we default to English for un-audited certs
|
// while the auditing is ongoing, we default to English for un-audited certs
|
||||||
// once that's complete, we can revert to using isEnglishChallenge(fullPath)
|
// once that's complete, we can revert to using isEnglishChallenge(fullPath)
|
||||||
const useEnglish = lang === 'english' || !isAuditedCert(lang, superBlock);
|
const useEnglish = lang === 'english' || !isAuditedCert(lang, superBlock);
|
||||||
const isCert = path.extname(filePath) === 'markdown';
|
const isCert = path.extname(filePath) === '.markdown';
|
||||||
let challenge;
|
let challenge;
|
||||||
|
|
||||||
if (isCert) {
|
if (isCert) {
|
||||||
|
// TODO: this uses the old parser to handle certifcates, but Markdown is a
|
||||||
|
// clunky way to store data, consider converting to YAML and removing the
|
||||||
|
// old parser.
|
||||||
challenge = await (useEnglish
|
challenge = await (useEnglish
|
||||||
? parseMarkdown(getFullPath('english'))
|
? parseMarkdown(getFullPath('english'))
|
||||||
: parseTranslation(
|
: parseTranslation(
|
||||||
|
Reference in New Issue
Block a user