Skip to content

Commit e822833

Browse files
Fix i18n failures (#3810)
* synced 0.18 i18n docs
1 parent 3c6fed4 commit e822833

File tree

19 files changed

+39
-166
lines changed

19 files changed

+39
-166
lines changed

website/i18n/ja/code.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,5 +436,9 @@
436436
"theme.contentVisibility.draftBanner.message": {
437437
"message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
438438
"description": "The draft content banner message"
439+
},
440+
"theme.blog.author.noPosts": {
441+
"message": "この著者による投稿はまだありません。",
442+
"description": "The text for authors with 0 blog post"
439443
}
440444
}

website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.mdx renamed to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl Component for MyComponent {
6262
}
6363
```
6464

65-
使い方については[`html!`ガイド](html.mdx)をご確認ください。
65+
使い方については[`html!`ガイド](../html/introduction.mdx)をご確認ください。
6666

6767
### Rendered
6868

website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.mdx renamed to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/introduction.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
title: Introduction
3-
description: The procedural macro for generating HTML and SVG
2+
title: 'HTML'
3+
sidebar_label: Introduction
4+
description: 'The procedural macro for generating HTML and SVG'
45
---
56

67
`html!`マクロによって HTML と SVG のコードを宣言的に書くことができます。
78
JSX \(HTML のようなコードを JavaScript 内部に書くことができる JavaScript の拡張\) に似ています。
89

910
**重要な注意**
1011

11-
1. `html!`マクロはルートの HTML ノードのみ受け付けます \([フラグメントかイテレータを使う](html/lists.mdx)ことでやり取りできます\)
12+
1. `html!`マクロはルートの HTML ノードのみ受け付けます \([フラグメントかイテレータを使う](lists.mdx)ことでやり取りできます\)
1213
2. 空の`html! {}`の呼び出しは可能ですが何もレンダリングしません
1314
3. リテラルはクオーテーションがつけられ、ブレースで囲う必要があります: `html! { "Hello, World" }`
1415

website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/services.mdx

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: 'Services'
3+
sidebar_label: Overview
4+
description: "Yew's glue to browser APIs"
5+
---
6+
7+
# サービス
8+
9+
:::note
10+
このセクションはまだ WIP です。
11+
:::

website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.mdx renamed to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/introduction.mdx

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
2-
title: Introduction
3-
description: Set yourself up for success
2+
title: 'Project Setup'
3+
sidebar_label: Introduction
4+
description: 'Set yourself up for success'
45
---
56

67
# 始める
@@ -22,15 +23,6 @@ Webpack には[`wasm-pack-plugin`](https://github.com/wasm-tool/wasm-pack-plugin
2223

2324
[`wasm-pack`で始める](project-setup/using-wasm-pack.mdx)
2425

25-
### [**`wasm-bindgen`**](https://rustwasm.github.io/docs/wasm-bindgen/)
26-
27-
Rust/Wasm 活動チームによって開発されているライブラリと CLI ツールで、JS / WebAssembly の互換性を持たせるための低レベルなツールです
28-
(`wasm-pack`で内部的に使われています)。
29-
`wasm-bindgen`は手書きの JavaScript で WebAssembly のバイナリを使う必要があるため、直接使うのは非推奨です。
30-
しかし、詳細な情報については[**`wasm-bindgen` ガイド**](https://rustwasm.github.io/docs/wasm-bindgen/)から得られます。
31-
32-
[`wasm-bindgen`で始める。](project-setup/using-wasm-bindgen.mdx)
33-
3426
### [**`cargo-web`**](https://github.com/koute/cargo-web)
3527

3628
`wasm-pack``wasm-bindgen`を導入する前は好まれた Web ワークフローツールです。
@@ -47,9 +39,6 @@ Rust/Wasm 活動チームによって開発されているライブラリと CLI
4739
<th style={{ textAlign: 'left' }}>
4840
<code>wasm-pack</code>
4941
</th>
50-
<th style={{ textAlign: 'left' }}>
51-
<code>wasm-bindgen</code>
52-
</th>
5342
<th style={{ textAlign: 'left' }}>
5443
<code>cargo-web</code>
5544
</th>
@@ -62,10 +51,6 @@ Rust/Wasm 活動チームによって開発されているライブラリと CLI
6251
<a href="https://rustwasm.github.io/">Rust / Wasm活動チーム</a>
6352
により活発にメンテナンス
6453
</td>
65-
<td style={{ textAlign: 'left' }}>
66-
<a href="https://rustwasm.github.io/">Rust / Wasm 活動チーム</a>
67-
により活発にメンテナンス
68-
</td>
6954
<td style={{ textAlign: 'left' }}>
7055
6ヶ月間GitHubでの活発な活動無し
7156
</td>
@@ -75,9 +60,6 @@ Rust/Wasm 活動チームによって開発されているライブラリと CLI
7560
<td style={{ textAlign: 'left' }}>
7661
ほぼ大丈夫! <code>webpack</code>があればなお良い。
7762
</td>
78-
<td style={{ textAlign: 'left' }}>
79-
だいたい大丈夫。開発においては少し流れを書かないといけない。
80-
</td>
8163
<td style={{ textAlign: 'left' }}>
8264
しっかり動く!完結していて、外部ライブラリに頼る必要無し。
8365
</td>
@@ -87,7 +69,6 @@ Rust/Wasm 活動チームによって開発されているライブラリと CLI
8769
<td style={{ textAlign: 'left' }}>
8870
<code>webpack</code>プラグインによるサポートあり
8971
</td>
90-
<td style={{ textAlign: 'left' }}>サポート無し</td>
9172
<td style={{ textAlign: 'left' }}>サポートあり</td>
9273
</tr>
9374
<tr>
@@ -97,7 +78,6 @@ Rust/Wasm 活動チームによって開発されているライブラリと CLI
9778
<td style={{ textAlign: 'left' }}>
9879
<code>webpack</code>プラグインによるサポートあり
9980
</td>
100-
<td style={{ textAlign: 'left' }}>サポート無し</td>
10181
<td style={{ textAlign: 'left' }}>サポートあり</td>
10282
</tr>
10383
<tr>
@@ -107,11 +87,6 @@ Rust/Wasm 活動チームによって開発されているライブラリと CLI
10787
サポートあり
10888
</a>
10989
</td>
110-
<td style={{ textAlign: 'left' }}>
111-
<a href="https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html">
112-
サポートあり
113-
</a>
114-
</td>
11590
<td style={{ textAlign: 'left' }}>
11691
<a href="https://github.com/koute/cargo-web#features">
11792
サポートあり
@@ -127,13 +102,6 @@ Rust/Wasm 活動チームによって開発されているライブラリと CLI
127102
</li>
128103
</ul>
129104
</td>
130-
<td style={{ textAlign: 'left' }}>
131-
<ul>
132-
<li>
133-
<code>wasm32-unknown-unknown</code>
134-
</li>
135-
</ul>
136-
</td>
137105
<td style={{ textAlign: 'left' }}>
138106
<ul>
139107
<li>
@@ -153,7 +121,6 @@ Rust/Wasm 活動チームによって開発されているライブラリと CLI
153121
<code>web-sys</code>
154122
</td>
155123
<td style={{ textAlign: 'left' }}>互換性あり</td>
156-
<td style={{ textAlign: 'left' }}>互換性あり</td>
157124
<td style={{ textAlign: 'left' }}>互換性無し</td>
158125
</tr>
159126
<tr>
@@ -162,7 +129,6 @@ Rust/Wasm 活動チームによって開発されているライブラリと CLI
162129
</td>
163130
<td style={{ textAlign: 'left' }}>互換性あり</td>
164131
<td style={{ textAlign: 'left' }}>互換性あり</td>
165-
<td style={{ textAlign: 'left' }}>互換性あり</td>
166132
</tr>
167133
<tr>
168134
<td style={{ textAlign: 'left' }}>使用例</td>
@@ -171,12 +137,6 @@ Rust/Wasm 活動チームによって開発されているライブラリと CLI
171137
入門用テンプレート
172138
</a>
173139
</td>
174-
<td style={{ textAlign: 'left' }}>
175-
Yewで
176-
<a href="https://github.com/yewstack/yew/blob/master/examples/build.sh">
177-
作る例
178-
</a>
179-
</td>
180140
<td style={{ textAlign: 'left' }}>
181141
Yewで
182142
<a href="https://www.github.com/yewstack/yew/tree/master/packages/yew-stdweb/examples">

website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-bindgen.mdx

Lines changed: 0 additions & 51 deletions
This file was deleted.

website/i18n/zh-Hans/code.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,5 +436,9 @@
436436
"theme.contentVisibility.draftBanner.message": {
437437
"message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
438438
"description": "The draft content banner message"
439+
},
440+
"theme.blog.author.noPosts": {
441+
"message": "This author has not written any posts yet.",
442+
"description": "The text for authors with 0 blog post"
439443
}
440444
}

website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.mdx renamed to website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl Component for MyComponent {
5656
}
5757
```
5858

59-
有关用法的详细信息,请查看 [`html!` 宏指南](html.mdx)
59+
有关用法的详细信息,请查看 [`html!` 宏指南](../html/introduction.mdx)
6060

6161
### Rendered
6262

website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.mdx renamed to website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/introduction.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: 用于生成 HTML 和 SVG 的宏程序
88

99
**重要提示**
1010

11-
1. `html!` 宏调用中只能有一个根节点(你可以通过[使用片段(fragments)或迭代器](html/lists.mdx)来绕过这一点)
11+
1. `html!` 宏调用中只能有一个根节点(你可以通过[使用片段(fragments)或迭代器](../html/lists.mdx)来绕过这一点)
1212
2. 空的 `html! {}` 宏调用是有效的但不会渲染任何内容
1313
3. 常量必须始终被引号括起来并被包含在大括号里:`html! { "Hello, World" }`
1414

@@ -117,7 +117,7 @@ html! {
117117

118118
有一些特殊的属性不会直接影响 DOM,而是充当 Yew 虚拟 DOM 的指令。目前,有这样两个特殊的 props: `ref`和`key` 。
119119

120-
`ref`允许您直接访问和操作底层 DOM 节点。见[参考文献](components/refs)获取的更多细节。
120+
`ref`允许您直接访问和操作底层 DOM 节点。见[参考文献](../components/refs.mdx)获取的更多细节。
121121

122122
`key`为元素提供了一个唯一标识符,Yew 可以将其用于优化。
123123

0 commit comments

Comments
 (0)