feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							0095583028
						
					
				
				
					commit
					ee1e8abd87
				
			| @@ -3,6 +3,7 @@ id: 587d7b87367417b2b2512b40 | ||||
| title: Compare Scopes of the var and let Keywords | ||||
| challengeType: 1 | ||||
| forumTopicId: 301195 | ||||
| dashedName: compare-scopes-of-the-var-and-let-keywords | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 5cdafbc32913098997531680 | ||||
| title: Complete a Promise with resolve and reject | ||||
| challengeType: 1 | ||||
| forumTopicId: 301196 | ||||
| dashedName: complete-a-promise-with-resolve-and-reject | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 5cdafbb0291309899753167f | ||||
| title: Create a JavaScript Promise | ||||
| challengeType: 1 | ||||
| forumTopicId: 301197 | ||||
| dashedName: create-a-javascript-promise | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 5cddbfd622f1a59093ec611d | ||||
| title: Create a Module Script | ||||
| challengeType: 6 | ||||
| forumTopicId: 301198 | ||||
| dashedName: create-a-module-script | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b8c367417b2b2512b58 | ||||
| title: Create an Export Fallback with export default | ||||
| challengeType: 1 | ||||
| forumTopicId: 301199 | ||||
| dashedName: create-an-export-fallback-with-export-default | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b8a367417b2b2512b4e | ||||
| title: Create Strings using Template Literals | ||||
| challengeType: 1 | ||||
| forumTopicId: 301200 | ||||
| dashedName: create-strings-using-template-literals | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b87367417b2b2512b41 | ||||
| title: Declare a Read-Only Variable with the const Keyword | ||||
| challengeType: 1 | ||||
| forumTopicId: 301201 | ||||
| dashedName: declare-a-read-only-variable-with-the-const-keyword | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b87367417b2b2512b3f | ||||
| title: Explore Differences Between the var and let Keywords | ||||
| challengeType: 1 | ||||
| forumTopicId: 301202 | ||||
| dashedName: explore-differences-between-the-var-and-let-keywords | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 5cdafbd72913098997531681 | ||||
| title: Handle a Fulfilled Promise with then | ||||
| challengeType: 1 | ||||
| forumTopicId: 301203 | ||||
| dashedName: handle-a-fulfilled-promise-with-then | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 5cdafbe72913098997531682 | ||||
| title: Handle a Rejected Promise with catch | ||||
| challengeType: 1 | ||||
| forumTopicId: 301204 | ||||
| dashedName: handle-a-rejected-promise-with-catch | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b8d367417b2b2512b59 | ||||
| title: Import a Default Export | ||||
| challengeType: 1 | ||||
| forumTopicId: 301205 | ||||
| dashedName: import-a-default-export | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b87367417b2b2512b42 | ||||
| title: Mutate an Array Declared with const | ||||
| challengeType: 1 | ||||
| forumTopicId: 301206 | ||||
| dashedName: mutate-an-array-declared-with-const | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 598f48a36c8c40764b4e52b3 | ||||
| title: Prevent Object Mutation | ||||
| challengeType: 1 | ||||
| forumTopicId: 301207 | ||||
| dashedName: prevent-object-mutation | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b8c367417b2b2512b55 | ||||
| title: Reuse JavaScript Code Using import | ||||
| challengeType: 1 | ||||
| forumTopicId: 301208 | ||||
| dashedName: reuse-javascript-code-using-import | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b88367417b2b2512b46 | ||||
| title: Set Default Parameters for Your Functions | ||||
| challengeType: 1 | ||||
| forumTopicId: 301209 | ||||
| dashedName: set-default-parameters-for-your-functions | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b8c367417b2b2512b57 | ||||
| title: Use * to Import Everything from a File | ||||
| challengeType: 1 | ||||
| forumTopicId: 301210 | ||||
| dashedName: use--to-import-everything-from-a-file | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b87367417b2b2512b43 | ||||
| title: Use Arrow Functions to Write Concise Anonymous Functions | ||||
| challengeType: 1 | ||||
| forumTopicId: 301211 | ||||
| dashedName: use-arrow-functions-to-write-concise-anonymous-functions | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b8b367417b2b2512b53 | ||||
| title: Use class Syntax to Define a Constructor Function | ||||
| challengeType: 1 | ||||
| forumTopicId: 301212 | ||||
| dashedName: use-class-syntax-to-define-a-constructor-function | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b89367417b2b2512b4b | ||||
| title: Use Destructuring Assignment to Assign Variables from Arrays | ||||
| challengeType: 1 | ||||
| forumTopicId: 301213 | ||||
| dashedName: use-destructuring-assignment-to-assign-variables-from-arrays | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b89367417b2b2512b4a | ||||
| title: Use Destructuring Assignment to Assign Variables from Nested Objects | ||||
| challengeType: 1 | ||||
| forumTopicId: 301214 | ||||
| dashedName: use-destructuring-assignment-to-assign-variables-from-nested-objects | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b89367417b2b2512b49 | ||||
| title: Use Destructuring Assignment to Assign Variables from Objects | ||||
| challengeType: 1 | ||||
| forumTopicId: 301215 | ||||
| dashedName: use-destructuring-assignment-to-assign-variables-from-objects | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 5cfa550e84205a357704ccb6 | ||||
| title: Use Destructuring Assignment to Extract Values from Objects | ||||
| challengeType: 1 | ||||
| forumTopicId: 301216 | ||||
| dashedName: use-destructuring-assignment-to-extract-values-from-objects | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b8a367417b2b2512b4d | ||||
| title: Use Destructuring Assignment to Pass an Object as a Function's Parameters | ||||
| challengeType: 1 | ||||
| forumTopicId: 301217 | ||||
| dashedName: use-destructuring-assignment-to-pass-an-object-as-a-functions-parameters | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -5,6 +5,8 @@ title: >- | ||||
|   Elements | ||||
| challengeType: 1 | ||||
| forumTopicId: 301218 | ||||
| dashedName: >- | ||||
|   use-destructuring-assignment-with-the-rest-parameter-to-reassign-array-elements | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b8c367417b2b2512b56 | ||||
| title: Use export to Share a Code Block | ||||
| challengeType: 1 | ||||
| forumTopicId: 301219 | ||||
| dashedName: use-export-to-share-a-code-block | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b8c367417b2b2512b54 | ||||
| title: Use getters and setters to Control Access to an Object | ||||
| challengeType: 1 | ||||
| forumTopicId: 301220 | ||||
| dashedName: use-getters-and-setters-to-control-access-to-an-object | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b88367417b2b2512b47 | ||||
| title: Use the Rest Parameter with Function Parameters | ||||
| challengeType: 1 | ||||
| forumTopicId: 301221 | ||||
| dashedName: use-the-rest-parameter-with-function-parameters | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b89367417b2b2512b48 | ||||
| title: Use the Spread Operator to Evaluate Arrays In-Place | ||||
| challengeType: 1 | ||||
| forumTopicId: 301222 | ||||
| dashedName: use-the-spread-operator-to-evaluate-arrays-in-place | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b88367417b2b2512b44 | ||||
| title: Write Arrow Functions with Parameters | ||||
| challengeType: 1 | ||||
| forumTopicId: 301223 | ||||
| dashedName: write-arrow-functions-with-parameters | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b8b367417b2b2512b50 | ||||
| title: Write Concise Declarative Functions with ES6 | ||||
| challengeType: 1 | ||||
| forumTopicId: 301224 | ||||
| dashedName: write-concise-declarative-functions-with-es6 | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
| @@ -3,6 +3,7 @@ id: 587d7b8a367417b2b2512b4f | ||||
| title: Write Concise Object Literal Declarations Using Object Property Shorthand | ||||
| challengeType: 1 | ||||
| forumTopicId: 301225 | ||||
| dashedName: write-concise-object-literal-declarations-using-object-property-shorthand | ||||
| --- | ||||
|  | ||||
| # --description-- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user