freeCodeCamp/client/utils
Oliver Eyton-Williams 4cc20172c5
fix: fallback to english challenges (#45635)
* fix: fallback to english challenges

All challenges will use the english version if a translated file is not
available.  SHOW_NEW_CURRICULUM still gates what's shown in the client.

* refactor: use closures to simplify createChallenge

* refactor: remove messy destructure

* refactor: add meta via helper

* fix: fallback to [] for meta.required

* fix: repair challenge.block

* refactor: use CONST_CASE for meta + challenge dirs

* fix: catch empty superblocks immediately

* fix: clean up path.resolves

* fix: invalid syntax in JS project steps

* fix: default to english comments and relax tests

Instead of always throwing errors when a comment is not translated, the
tests now warn while SHOW_UPCOMING_CHANGES is true, so that tests will
pass while we're developing and allow translators time to work.

They still throw when SHOW_UPCOMING_CHANGES is false to catch issues
in production

* test: update createCommentMap test

* refactor: delete stale comment

* refactor: clarify validate with explanatory consts

* feat: throw if audited cert falls back to english

* fix: stop testing upcoming localized curriculum
2022-04-15 09:17:49 -05:00
..
gatsby feat: display multifile projects (#45220) 2022-03-02 19:49:54 -06:00
build-challenges.js fix: fallback to english challenges (#45635) 2022-04-15 09:17:49 -05:00
challenge-types.js feat: release rdbms as beta (#45428) 2022-03-22 11:35:38 +05:30
help-category-map.json feat: split rdbms into individual blocks and two challengeTypes (#44978) 2022-02-11 15:39:27 +00:00
index.ts feat(client): ts-migrate client/utils/** (#42823) 2021-08-09 10:30:31 +02:00
tags.test.tsx feat(client): ts-migrate client/utils/** (#42823) 2021-08-09 10:30:31 +02:00
tags.tsx feat(client): ts-migrate client/utils/** (#42823) 2021-08-09 10:30:31 +02:00
test-utils.jsx feat: display multifile projects (#45220) 2022-03-02 19:49:54 -06:00