Commit Graph

17 Commits

Author SHA1 Message Date
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
camperbot
5c868af2b8 chore(i18n,learn): processed translations (#44851) 2022-01-20 20:30:18 +01:00
camperbot
cb8e66cbb2 This PR was automagically generated by Crowdin. (#44733) 2022-01-09 15:06:03 +01:00
camperbot
0473dedf47 chore(i18n,curriculum): processed translations - new ukrainian (#44447) 2021-12-10 11:14:24 +05:30
camperbot
e9512cb968 chore(i18n,curriculum): update translations (#44072) 2021-11-01 11:38:44 +05:30
camperbot
f3da789fa4 chore(i18n,curriculum): update translations (#42918) 2021-07-19 16:05:37 +05:30
Nicholas Carrigan (he/him)
c4fd49e5b7 chore: manual translations (#42811) 2021-07-10 09:53:54 +05:30
Oliver Eyton-Williams
82758ba9da fix: remove duplicate Italian dictionary (#42562) 2021-06-18 23:51:08 +05:30
camperbot
978ce8b512 chore(i18n,curriculum): processed translations (#42504) 2021-06-15 07:22:09 -07:00
camperbot
b3af21d50f chore(i18n,curriculum): update translations (#42487)
* chore(i18n,curriculum): update translations

* chore: Italian to italian

Co-authored-by: Nicholas Carrigan <nhcarrigan@gmail.com>
2021-06-14 11:34:20 -07:00
Oliver Eyton-Williams
7640147a07 feat: curriculum dictionaries to objects (#40878)
* test: update to catch missing comments

* feat: convert dictionaries to JSON objects

* chore: update dictionaries

* fix: update tests for new dictionary objects

* fix: convert fixture to json

* fix: updated the incomplete dicts to new format
2021-02-02 12:14:29 -07:00
Randell Dawson
00a876d9b2 fix(learn): use json files for comments (#40844) 2021-01-31 21:36:57 +05:30
Nicolás Góngora
bd7bf6971f feat(i18n): Add Spanish translation of comments (#40628) 2021-01-06 11:52:27 +05:30
miyaliu666
c6cbe7750f Update comments.js 2021-01-05 11:26:53 +08:00
miyaliu666
09232a38fa fix(i18n): translated comments to Chinese (#40526)
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2020-12-28 18:18:08 +05:30
Oliver Eyton-Williams
d2ecd03013 fix: recreate comment map 2020-10-22 02:51:46 +05:30
Randell Dawson
5eb33e36e1 fix(learn): add a comments dictionary 2020-10-22 02:51:45 +05:30