Skip to content

Commit

Permalink
chore(i18n,learn): processed translations (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
camperbot authored Jan 29, 2025
1 parent 4f9fac8 commit d07c1a4
Show file tree
Hide file tree
Showing 1,190 changed files with 60,773 additions and 4,623 deletions.
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

0 comments on commit d07c1a4

Please sign in to comment.