Skip to content

Commit

Permalink
chore(i18n,learn): processed translations (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
camperbot authored Jan 13, 2025
1 parent c321719 commit 11eecc1
Show file tree
Hide file tree
Showing 1,453 changed files with 14,965 additions and 7,732 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ From now on, you'll keep building the output by concatenating strings to `output

Create a string containing the string representation of your equation centered in a width of `24` characters. Make the string begin and end with two newline characters, and add your new string to the current value of `output_string`.

The output of the `solver` function should look like this:

```md

----Linear Equation-----

2x +3 = 0

```

# --hints--

The `solver` function should return a different string.
Expand All @@ -30,6 +40,15 @@ assert solver(eq) == expected
`) })
```

You should use the conversion flag `!s` to convert `equation` into a string.

```js
({ test: () => (runPython(`
function = str(_Node(_code).find_function("solver"))
assert "equation!s" in function
`)) })
```

# --seed--

## --seed-contents--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ dashedName: step-48

Tidy up the `header`, by using _Flexbox_ to put space between the children, and vertically center them.

然後,將 `header` 固定到視口的頂部。

# --hints--

你應該給 `header` 添加 `justify-content` 值爲 `space-between`
Expand All @@ -25,12 +23,6 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('header')?.justifyContent,
assert.equal(new __helpers.CSSHelp(document).getStyle('header')?.alignItems, 'center');
```
你應該給 `header` 添加 `position` 值爲 `fixed`
```js
assert.equal(new __helpers.CSSHelp(document).getStyle('header')?.position, 'fixed');
```
你應該給 `header` 添加 `top` 值爲 `0`
```js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}
Expand Down Expand Up @@ -509,7 +508,6 @@ header {
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ assert(![...bBuildings?.[0]?.classList]?.includes('bb1'));
assert(![...bBuildings?.[1]?.classList]?.includes('bb1'));
```
你應該在 `.bb3``.bb4` 元素之間添加一個新的 `div` 元素。
You should add one new `div` element between the `.bb3` and `.bb4` elements.
```js
assert(document.querySelector('.bb3')?.nextElementSibling === document.querySelector('.bb4')?.previousElementSibling);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ assert.match(code, /let\s+cities/);
你應該將字符串 `"London"``"New York"``"Mumbai"` 的數組分配給 `cities` 變量。

```js
assert.match(code, /let\s+cities\s*=\s*\[\s*("|'|`)London\1\s*,\s*("|'|`)New York\2\s*,\s*("|'|`)Mumbai\3\s*\]/);
assert.match(code, /let\s+cities\s*=\s*\[\s*("|'|`)London\1\s*,\s*("|'|`)New York\2\s*,\s*("|'|`)Mumbai\3\s*,?\s*\]/);
```

你應該使用 `console.log()` 將整個 `cities` 數組記錄到控制檯。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ Class average: average-goes-here. Your grade: grade-goes-here. You failed the co

# --hints--

當調用 `studentMsg([92, 88, 12, 77, 57, 100, 67, 38, 97, 89], 37)` 時,你的函數應該返回以下信息:`"Class average: 71.7. Your grade: F. You failed the course."`
`studentMsg([92, 88, 12, 77, 57, 100, 67, 38, 97, 89], 37)` should return the following message: `"Class average: 71.7. Your grade: F. You failed the course."`

```js
assert.strictEqual(studentMsg([92, 88, 12, 77, 57, 100, 67, 38, 97, 89], 37), "Class average: 71.7. Your grade: F. You failed the course.");
```

當調用 `studentMsg([56, 23, 89, 42, 75, 11, 68, 34, 91, 19], 100)` 時,你的函數應該返回以下信息:`"Class average: 50.8. Your grade: A++. You passed the course."`
`studentMsg([56, 23, 89, 42, 75, 11, 68, 34, 91, 19], 100)` should return the following message: `"Class average: 50.8. Your grade: A++. You passed the course."`

```js
assert.strictEqual(studentMsg([56, 23, 89, 42, 75, 11, 68, 34, 91, 19], 100), "Class average: 50.8. Your grade: A++. You passed the course.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ assert.isAtLeast(document.querySelectorAll('tr:first-child>th').length, 3)
The first row in your table should not contain `td` elements.
```js
assert.isNotNull(document.querySelector('tr:first-child'));
assert.isEmpty(document.querySelectorAll('tr:first-child>td'));
const firstRow = document.querySelector('tr');
assert.isNotNull(firstRow);
assert.isEmpty(firstRow.querySelectorAll('td'));
```
You should have at least two rows with the class of `sharp`.
Expand Down Expand Up @@ -289,8 +290,12 @@ You should use two color-stops (expressed in percentage) to make the transition
```js
const legendGradient = new __helpers.CSSHelp(document).getStyle('#legend-gradient');
assert.exists(legendGradient);
assert.lengthOf(legendGradient.backgroundImage.match(/var\(\s*--color[0-5]\s*\)\s+\d+%\s+\d+%/g), 6)
assert.exists(legendGradient);
const matched = legendGradient.backgroundImage.match(/var\(\s*--color[0-5]\s*\)\s+\d+%(\s+\d+%)?/g);
assert.lengthOf(matched, 6);
matched.forEach((arg, i) => {
if (i !== 0 && i !== 5) assert.lengthOf(arg.match(/%/g), 2);
})
```
# --seed--
Expand Down
Loading

0 comments on commit 11eecc1

Please sign in to comment.