Skip to content

Commit 527dd05

Browse files
authored
Merge pull request #255 from reactjs/translate/components
feat: Translate components
2 parents dec8a94 + 61eced1 commit 527dd05

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/components/CodeEditor/CodeEditor.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,11 @@ class CodeEditor extends Component {
6262
if (showBabelErrorMessage) {
6363
errorMessage = (
6464
<span>
65-
Babel could not be loaded.
65+
Babel の読み込みに失敗しました。
6666
<br />
6767
<br />
68-
This can be caused by an ad blocker. If you're using one, consider
69-
adding reactjs.org to the whitelist so the live code examples will
70-
work.
68+
これは広告ブロッカーが原因である可能性があります。もし広告ブロッカーを利用している場合は、サンプルコードが機能させるために
69+
ja.reactjs.org をホワイトリストに追加することを検討してください。
7170
</span>
7271
);
7372
} else if (error != null) {

src/components/CodeExample/CodeExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class CodeExample extends Component {
6161
{loaded ? (
6262
<CodeEditor code={code} containerNodeID={containerNodeID} />
6363
) : (
64-
<h4>Loading code example...</h4>
64+
<h4>サンプルコードを読み込んでいます……</h4>
6565
)}
6666
</div>
6767
);

src/components/ErrorDecoder/ErrorDecoder.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,15 @@ function ErrorResult(props: {|code: ?string, msg: string|}) {
6969
if (!code) {
7070
return (
7171
<p>
72-
When you encounter an error, you'll receive a link to this page for that
73-
specific error and we'll show you the full error text.
72+
エラーが発生したとき、そのエラーに関するこのページへのリンクを受け取り、エラー全体のテキストが表示されます。
7473
</p>
7574
);
7675
}
7776

7877
return (
7978
<div>
8079
<p>
81-
<b>The full text of the error you just encountered is:</b>
80+
<b>発生したエラーの全文は以下です。</b>
8281
</p>
8382
<code>
8483
<b>{urlify(errorMsg)}</b>

0 commit comments

Comments
 (0)