Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(i18n,learn): processed translations #124

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ assert(myVar === 88);

```js
assert(
/let\s*myVar\s*=\s*87;\s*\/*.*\s*([+]{2}\s*myVar|myVar\s*[+]{2})/.test(__helpers.removeJSComments(code))
/let\s+myVar\s*=\s*87;\s*\/*.*\s*([+]{2}\s*myVar|myVar\s*[+]{2})/.test(__helpers.removeJSComments(code))
);
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ The `.sr-only` text is still visible. There is a common pattern to visually hide
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
```

使用以上代碼定義 `.sr-only` CSS 規則。
Expand Down Expand Up @@ -51,18 +49,6 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('.sr-only')?.width, '1px')
assert.equal(new __helpers.CSSHelp(document).getStyle('.sr-only')?.height, '1px');
```

你應該給 `.sr-only` 設置值爲 `0` 的 `padding`。

```js
assert.equal(new __helpers.CSSHelp(document).getStyle('.sr-only')?.padding, '0px');
```

你應該給 `.sr-only` 設置值爲 `-1px` 的 `margin`。

```js
assert.equal(new __helpers.CSSHelp(document).getStyle('.sr-only')?.margin, '-1px');
```

你應該給 `.sr-only` 設置值爲 `hidden` 的 `overflow`。

```js
Expand All @@ -75,16 +61,16 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('.sr-only')?.overflow, 'hi
assert.equal(new __helpers.CSSHelp(document).getStyle('.sr-only')?.clip, 'rect(0px, 0px, 0px, 0px)');
```

你應該給 `.sr-only` 添加 `white-space`,值爲 `nowrap`。
You should give the `.sr-only` a `clip-path` of `inset(50%)`.

```js
assert.equal(new __helpers.CSSHelp(document).getStyle('.sr-only')?.whiteSpace, 'nowrap');
assert.equal(new __helpers.CSSHelp(document).getStyle('.sr-only')?.clipPath, `inset(50%)`);
```

你應該給 `.sr-only` 添加 `border`,值爲 `0`。
你應該給 `.sr-only` 添加 `white-space`,值爲 `nowrap`。

```js
assert.equal(new __helpers.CSSHelp(document).getStyle('.sr-only')?.borderWidth, '0px');
assert.equal(new __helpers.CSSHelp(document).getStyle('.sr-only')?.whiteSpace, 'nowrap');
```

# --seed--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,10 @@ h2 {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,10 @@ h2 {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,10 @@ h2 {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,10 @@ h2 {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,10 @@ h2 {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,10 @@ h2 {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,10 @@ h2 {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,10 @@ h3::before {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}

```
Loading