freeCodeCamp/client
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
..
i18n fix: add message about third-party cookies (#45672) 2022-04-13 20:56:16 +05:30
plugins fix(dx): make gatsby id static for hot reloading (#44542) 2022-01-10 11:03:20 +02:00
src fix: add message about third-party cookies (#45672) 2022-04-13 20:56:16 +05:30
static feat: add stripe merchant id for apple pay (#43124) 2021-08-05 20:00:50 +01:00
utils fix: fallback to english challenges (#45635) 2022-04-15 09:17:49 -05:00
.babelrc.js fix: control CodeSee via .env variable (#42428) 2021-06-10 18:38:14 +05:30
.gitignore chore(client): refactor & organise config (#40875) 2021-02-03 15:22:07 +05:30
gatsby-browser.js fix: order imports and remove circular dependencies (#41824) 2021-08-02 08:39:40 -05:00
gatsby-config.js refactor: ignore eslint less (#45082) 2022-02-11 10:28:13 -08:00
gatsby-node.js fix: fix util import statement (#45104) 2022-02-24 08:16:47 -08:00
gatsby-ssr.js fix: order imports and remove circular dependencies (#41824) 2021-08-02 08:39:40 -05:00
package.json fix(deps): update dependency react-i18next to v11.16.5 2022-04-11 00:06:57 +00:00
postcss.config.js feat: commandline chic 2019-08-20 13:37:11 +05:30
webpack-workers.js chore: use workspaces, fix deps 2021-12-02 19:57:47 +05:30