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

This commit is contained in:
camperbot
2021-04-10 01:58:02 +09:00
committed by GitHub
parent 21c8500f94
commit c1ee2720b3
11 changed files with 42 additions and 46 deletions

View File

@@ -76,10 +76,9 @@ if(typeof myArray !== "undefined" && typeof myData !== "undefined"){(function(y,
## --seed-contents--
```js
// Setup
var myArray = [50,60,70];
// Only change code below this line
```
# --solutions--

View File

@@ -58,10 +58,8 @@ if(typeof myArray !== "undefined"){(function(){return "myData: " + myData + " my
## --seed-contents--
```js
// Setup
var myArray = [[1,2,3], [4,5,6], [7,8,9], [[10,11,12], 13, 14]];
// Only change code below this line
var myData = myArray[0][0];
```

View File

@@ -66,7 +66,6 @@ assert(/=\s*myStorage\.car\.inside\[\s*("|')glove box\1\s*\]/g.test(code));
## --seed-contents--
```js
// Setup
var myStorage = {
"car": {
"inside": {
@@ -79,7 +78,7 @@ var myStorage = {
}
};
var gloveBoxContents = undefined; // Change this line
var gloveBoxContents = undefined;
```
# --solutions--

View File

@@ -57,15 +57,15 @@ assert(
应该使用另一个 `then` 接收 `then` 转换的 JSON。
```js
assert(code.match(/\.then\s*\(\s*(data|\(\s*data\s*\))\s*=>\s*{[^}]*}\s*\)/g));
assert(__helpers.removeWhiteSpace(code).match(/\.then\(\(?\w+\)?=>{[^}]*}\)/g));
```
代码应该选择 id 为 `message` 的元素然后把它的内部 HTML 改成 JSON data 的字符串。
```js
assert(
code.match(
/document\s*\.getElementById\s*\(\s*('|")message\1\s*\)\s*\.innerHTML\s*=\s*JSON\s*\.\s*stringify\s*\(\s*data\s*\)/g
__helpers.removeWhiteSpace(code).match(
/document\.getElementById\(('|")message\1\)\.innerHTML=JSON\.stringify\(?\w+\)/g
)
);
```