diff --git a/docs/i18n/chinese/how-to-work-on-coding-challenges.md b/docs/i18n/chinese/how-to-work-on-coding-challenges.md index b0996c38d9..f777dff87b 100644 --- a/docs/i18n/chinese/how-to-work-on-coding-challenges.md +++ b/docs/i18n/chinese/how-to-work-on-coding-challenges.md @@ -31,11 +31,11 @@ Before you work on the curriculum, you would need to set up some tooling to help ### How to work on practice projects -The practice projects have some additional tooling to help create new projects and steps. To read more, see [these docs](how-to-work-on-practice-projects.md) +The practice projects have some additional tooling to help create new projects and steps. To read more, see [these docs](how-to-work-on-practice-projects.md) + ## Challenge Template ````md - --- id: Unique identifier (alphanumerical, MongoDB_id) title: 'Challenge Title' @@ -49,9 +49,7 @@ forumTopicId: 12345 Challenge description text, in markdown ```html -
- Hello world! -
+Hello world!
``` @@ -156,17 +152,15 @@ More answers ## --video-solution-- The number for the correct answer goes here. - - ```` > [!NOTE] > > 1. In the above sections, examples of `lang` are: > -> - `html` - HTML/CSS -> - `js` - JavaScript -> - `jsx` - JSX +> - `html` - HTML/CSS +> - `js` - JavaScript +> - `jsx` - JSX ## Numbering Challenges @@ -231,7 +225,7 @@ Proper nouns should use correct capitalization when possible. Below is a list of - JavaScript (capital letters in "J" and "S" and no abbreviations) - Node.js -- Front-end development (adjective form with a dash) is when you're working on the front end (noun form with no dash). The same goes with "back end", "full stack", and many other compound terms. +- Although sometimes inaccurate, non-hyphenated forms of 'back end' and 'front end' should be used, as they are more widely used. ### The 2-minute rule @@ -260,9 +254,11 @@ Here are specific formatting guidelines for challenge text and examples: - Language keywords go in `` \` `` backticks. For example, HTML tag names or CSS property names. - References to code parts (i.e. function, method, or variable names) should be wrapped in `` \` `` backticks. See example below: + ```md Use `parseInt` to convert the variable `realNumber` into an integer. ``` + - References to file names and path directories (e.g. `package.json`, `src/components`) should be wrapped in `` \` `` backticks. - Multi-line code blocks **must be preceded by an empty line**. The next line must start with three backticks followed immediately by one of the [supported languages](https://prismjs.com/#supported-languages). To complete the code block, you must start a new line which only has three backticks and **another empty line**. See example below: - Whitespace matters in Markdown, so we recommend that you make it visible in your editor. @@ -270,6 +266,7 @@ Use `parseInt` to convert the variable `realNumber` into an integer. **Note:** If you are going to use an example code in YAML, use `yaml` instead of `yml` for the language to the right of the backticks. The following is an example of code: + ````md ```{language} @@ -304,7 +301,7 @@ Here are specific formatting guidelines for the challenge seed code: We have a [comment dictionary](/curriculum/dictionaries/english/comments.js) that contains the only comments that can be used within the seed code. The exact case and spacing of the dictionary comment must be used. The comment dictionary should not be expanded without prior discussion with the dev-team. -Comments used should have a space between the comment characters and the comment themselves. In general, comments should be used sparingly. Always consider rewriting a challenge's description or instructions if it could avoid using a seed code comment. +Comments used should have a space between the comment characters and the comment themselves. In general, comments should be used sparingly. Always consider rewriting a challenge's description or instructions if it could avoid using a seed code comment. Example of valid single line JavaScript comment: @@ -338,7 +335,7 @@ class MyComponent extends React.Component { constructor(props) { super(props); this.state = { - text: "Hello" + text: 'Hello' }; // Change code below this line @@ -346,31 +343,32 @@ class MyComponent extends React.Component { } handleClick() { this.setState({ - text: "You clicked!" + text: 'You clicked!' }); } render() { return (- Hello world! -
+Hello world!
``` @@ -156,17 +152,15 @@ More answers ## --video-solution-- The number for the correct answer goes here. - - ```` > [!NOTE] > > 1. In the above sections, examples of `lang` are: > -> - `html` - HTML/CSS -> - `js` - JavaScript -> - `jsx` - JSX +> - `html` - HTML/CSS +> - `js` - JavaScript +> - `jsx` - JSX ## Numbering Challenges @@ -231,7 +225,7 @@ Proper nouns should use correct capitalization when possible. Below is a list of - JavaScript (mayúsculas en "J" y "S" y sin abreviaturas) - Node.js -- El desarrollo de front-end (forma adjetiva con guiones) es cuando estás trabajando en la parte frontal (sin guiones). Lo mismo ocurre con el "back end", "full stack", y muchos otros términos compuestos. +- Although sometimes inaccurate, non-hyphenated forms of 'back end' and 'front end' should be used, as they are more widely used. ### The 2-minute rule @@ -260,9 +254,11 @@ Here are specific formatting guidelines for challenge text and examples: - Language keywords go in `` \` `` backticks. For example, HTML tag names or CSS property names. - References to code parts (i.e. function, method, or variable names) should be wrapped in `` \` `` backticks. See example below: + ```md Use `parseInt` to convert the variable `realNumber` into an integer. ``` + - References to file names and path directories (e.g. `package.json`, `src/components`) should be wrapped in `` \` `` backticks. - Los bloques de código de múltiples líneas **deben estar precedidos por una línea vacía**. La siguiente línea debe comenzar con tres backticks seguidos inmediatamente por uno de los [idiomas soportados](https://prismjs.com/#supported-languages). To complete the code block, you must start a new line which only has three backticks and **another empty line**. Ver el ejemplo a continuación: - Whitespace matters in Markdown, so we recommend that you make it visible in your editor. @@ -270,6 +266,7 @@ Use `parseInt` to convert the variable `realNumber` into an integer. **Note:** If you are going to use an example code in YAML, use `yaml` instead of `yml` for the language to the right of the backticks. The following is an example of code: + ````md ```{language} @@ -304,7 +301,7 @@ Here are specific formatting guidelines for the challenge seed code: We have a [comment dictionary](/curriculum/dictionaries/english/comments.js) that contains the only comments that can be used within the seed code. The exact case and spacing of the dictionary comment must be used. The comment dictionary should not be expanded without prior discussion with the dev-team. -Comments used should have a space between the comment characters and the comment themselves. In general, comments should be used sparingly. Always consider rewriting a challenge's description or instructions if it could avoid using a seed code comment. +Comments used should have a space between the comment characters and the comment themselves. In general, comments should be used sparingly. Always consider rewriting a challenge's description or instructions if it could avoid using a seed code comment. Example of valid single line JavaScript comment: @@ -338,7 +335,7 @@ class MyComponent extends React.Component { constructor(props) { super(props); this.state = { - text: "Hello" + text: 'Hello' }; // Change code below this line @@ -346,31 +343,32 @@ class MyComponent extends React.Component { } handleClick() { this.setState({ - text: "You clicked!" + text: 'You clicked!' }); } render() { return (- Hello world! -
+Hello world!
``` @@ -156,17 +152,15 @@ More answers ## --video-solution-- The number for the correct answer goes here. - - ```` > [!NOTE] > > 1. In the above sections, examples of `lang` are: > -> - `html` - HTML/CSS -> - `js` - JavaScript -> - `jsx` - JSX +> - `html` - HTML/CSS +> - `js` - JavaScript +> - `jsx` - JSX ## Numbering Challenges @@ -231,7 +225,7 @@ Proper nouns should use correct capitalization when possible. Below is a list of - JavaScript (capital letters in "J" and "S" and no abbreviations) - Node.js -- Front-end development (adjective form with a dash) is when you're working on the front end (noun form with no dash). The same goes with "back end", "full stack", and many other compound terms. +- Although sometimes inaccurate, non-hyphenated forms of 'back end' and 'front end' should be used, as they are more widely used. ### The 2-minute rule @@ -260,9 +254,11 @@ Here are specific formatting guidelines for challenge text and examples: - Language keywords go in `` \` `` backticks. For example, HTML tag names or CSS property names. - References to code parts (i.e. function, method, or variable names) should be wrapped in `` \` `` backticks. See example below: + ```md Use `parseInt` to convert the variable `realNumber` into an integer. ``` + - References to file names and path directories (e.g. `package.json`, `src/components`) should be wrapped in `` \` `` backticks. - Multi-line code blocks **must be preceded by an empty line**. The next line must start with three backticks followed immediately by one of the [supported languages](https://prismjs.com/#supported-languages). To complete the code block, you must start a new line which only has three backticks and **another empty line**. See example below: - Whitespace matters in Markdown, so we recommend that you make it visible in your editor. @@ -270,6 +266,7 @@ Use `parseInt` to convert the variable `realNumber` into an integer. **Note:** If you are going to use an example code in YAML, use `yaml` instead of `yml` for the language to the right of the backticks. The following is an example of code: + ````md ```{language} @@ -304,7 +301,7 @@ Here are specific formatting guidelines for the challenge seed code: We have a [comment dictionary](/curriculum/dictionaries/english/comments.js) that contains the only comments that can be used within the seed code. The exact case and spacing of the dictionary comment must be used. The comment dictionary should not be expanded without prior discussion with the dev-team. -Comments used should have a space between the comment characters and the comment themselves. In general, comments should be used sparingly. Always consider rewriting a challenge's description or instructions if it could avoid using a seed code comment. +Comments used should have a space between the comment characters and the comment themselves. In general, comments should be used sparingly. Always consider rewriting a challenge's description or instructions if it could avoid using a seed code comment. Example of valid single line JavaScript comment: @@ -338,7 +335,7 @@ class MyComponent extends React.Component { constructor(props) { super(props); this.state = { - text: "Hello" + text: 'Hello' }; // Change code below this line @@ -346,31 +343,32 @@ class MyComponent extends React.Component { } handleClick() { this.setState({ - text: "You clicked!" + text: 'You clicked!' }); } render() { return (