chore(i18n,curriculum): update translations (#41945)

This commit is contained in:
camperbot
2021-04-30 00:43:46 +09:00
committed by GitHub
parent 3b056aa7b4
commit 2762d4b8e5
14 changed files with 67 additions and 51 deletions

View File

@@ -9,7 +9,7 @@ dashedName: standardize-times-with-the-html5-datetime-attribute
# --description--
继续日期主题。 HTML5 还引入了 `time` 标签与 `datetime` 属性来标准化时间。 `datetime` 属性是一个内元素,可以在一个页面上包含日期或时间。 `datetime` 属性包含的有效格式。 辅助设备可以获取这个值。 这个属性也有助于避免混乱,因为它规定了时间的标准化版本,甚至可以在文本中以非正式的方式或学术方式使用它。
继续日期主题。 HTML5 还引入了 `time` 标签与 `datetime` 属性来标准化时间。 `time` 元素是一个内元素,用于在一个页面上显示日期或时间。 `datetime` 属性包含的有效格式。 辅助设备可以获取这个值。 这个属性也有助于避免混乱,因为它规定了时间的标准化版本,甚至可以在文本中以非正式的方式或学术方式使用它。
举个例子:
@@ -19,7 +19,7 @@ dashedName: standardize-times-with-the-html5-datetime-attribute
# --instructions--
Camper Cat 的比武大会的时间确定了! 用 `time` 标签包裹文本 `Thursday, September 15<sup>th<sup>`,添加一个 `datetime` 属性,将属性值设置为 `2016-09-15`
Camper Cat 格斗的调查结果出来了! 用 `time` 标签包裹文本 `Thursday, September 15<sup>th</sup>`,添加一个 `datetime` 属性,将属性值设置为 `2016-09-15`
# --hints--

View File

@@ -29,6 +29,8 @@ dashedName: use-tabindex-to-specify-the-order-of-keyboard-focus-for-several-elem
Camper Cat 在他的励志名言页面中有一个搜索区域,他打算使用 CSS 把这个区域定位在页面的右上角。 Camper Cat 希望他的搜索search`input` 与提交submit`input` 表单控件是 tab 键焦点顺序的前两项。 请给 `search` `input` 添加 `tabindex` 属性,将属性值设置为 `1`;给 `submit` `input` 添加一个 `tabindex` 属性,将属性值设置为 `2`
另一件需要注意的事情是,单击元素时,某些浏览器可能会将你置于 tab 键焦点顺序的中间位置。 页面上已添加一个元素,以确保你始终从 tab 键焦点顺序的开头开始。
# --hints--
应给 `search` `input` 标签添加一个 `tabindex` 属性。
@@ -37,7 +39,7 @@ Camper Cat 在他的励志名言页面中有一个搜索区域,他打算使用
assert($('#search').attr('tabindex'));
```
应给 `submit` `input` 添加一个 `tabindex` 属性。
应给 `submit` `input` 标签添加一个 `tabindex` 属性。
```js
assert($('#submit').attr('tabindex'));
@@ -61,6 +63,7 @@ assert($('#submit').attr('tabindex') == '2');
```html
<body>
<div tabindex="1" class="overlay"></div>
<header>
<h1>Even Deeper Thoughts with Master Camper Cat</h1>
<nav>
@@ -91,12 +94,26 @@ assert($('#submit').attr('tabindex') == '2');
</blockquote>
<footer>&copy; 2018 Camper Cat</footer>
</body>
<style>
body {
height: 100%;
margin: 0 !important;
padding: 8px;
}
.overlay {
margin: -8px;
position: absolute;
width: 100%;
height: 100%;
}
</style>
```
# --solutions--
```html
<body>
<div tabindex="1" class="overlay"></div>
<header>
<h1>Even Deeper Thoughts with Master Camper Cat</h1>
<nav>
@@ -127,4 +144,17 @@ assert($('#submit').attr('tabindex') == '2');
</blockquote>
<footer>&copy; 2018 Camper Cat</footer>
</body>
<style>
body {
height: 100%;
margin: 0 !important;
padding: 8px;
}
.overlay {
margin: -8px;
position: absolute;
width: 100%;
height: 100%;
}
</style>
```

View File

@@ -15,7 +15,7 @@ dashedName: override-class-declarations-with-inline-styles
# --instructions--
使用行内样式尝试让 `h1` 的字体颜色变白。 像这样使用
使用行内样式尝试让 `h1` 的字体颜色变白。 记住,内联样式看起来是像这样:
```html
<h1 style="color: green;">

View File

@@ -2,8 +2,8 @@
id: bd7123c9c441eddfaeb4bdef
title: 给代码添加注释
challengeType: 1
videoUrl: 'https://scrimba.com/c/c7ynnTp'
removeComments: false
videoUrl: 'https://scrimba.com/c/c7ynnTp'
forumTopicId: 16783
dashedName: comment-your-javascript-code
---

View File

@@ -19,7 +19,7 @@ var sandwich = ["peanut butter", "jelly", "bread"]
# --instructions--
创建一个包含字符串(`string`)和数字( `number`)(按照字符串数字的顺序)的数组`myArray`
创建一个包含字符串(`string`)和数字( `number`)(按照字符串数字的顺序)的数组 `myArray`
# --hints--

View File

@@ -32,7 +32,9 @@ dashedName: understanding-the-differences-between-the-freecodecamp-and-browser-c
```js
assert(
__helpers.removeWhiteSpace(code).match(/console.clear\(\)/)
__helpers
.removeWhiteSpace(code)
.match(/console.clear\(\)/)
);
```

View File

@@ -32,9 +32,7 @@ const myPromise = new Promise((resolve, reject) => {
```js
assert(
code.match(
/if\s*\(\s*responseFromServer\s*\)\s*{\s*resolve\s*\(\s*('|"|`)We got the data\1\s*\)(\s*|\s*;\s*)}/g
)
code.match(/if\s*\(\s*responseFromServer\s*\)\s*{\s*resolve\s*\(\s*('|"|`)We got the data\1\s*\)(\s*|\s*;\s*)}/g)
);
```
@@ -42,9 +40,7 @@ assert(
```js
assert(
code.match(
/}\s*else\s*{\s*reject\s*\(\s*('|"|`)Data not received\1\s*\)(\s*|\s*;\s*)}/g
)
code.match(/}\s*else\s*{\s*reject\s*\(\s*('|"|`)Data not received\1\s*\)(\s*|\s*;\s*)}/g)
);
```

View File

@@ -51,9 +51,7 @@ assert(
```js
assert(
code.match(
/(var|let|const)\s*{\s*(today[^}]*|[^,]*,\s*today)\s*}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g
)
code.match(/(var|let|const)\s*{\s*(today[^}]*|[^,]*,\s*today)\s*}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g)
);
```
@@ -61,9 +59,7 @@ assert(
```js
assert(
code.match(
/(var|let|const)\s*{\s*(tomorrow[^}]*|[^,]*,\s*tomorrow)\s*}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g
)
code.match(/(var|let|const)\s*{\s*(tomorrow[^}]*|[^,]*,\s*tomorrow)\s*}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g)
);
```