Skip to content

Commit b10cecb

Browse files
committed
Resolve conflicts of yarn.lock, merging all other conflicts
2 parents 7e4f503 + ac4b5d7 commit b10cecb

File tree

128 files changed

+5908
-4655
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+5908
-4655
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Thank you for the PR! Contributors like you keep React awesome!
66
77
Please see the Contribution Guide for guidelines:
88
9-
https://github.com/reactjs/reactjs.org/blob/master/CONTRIBUTING.md
9+
https://github.com/reactjs/ja.reactjs.org/blob/master/CONTRIBUTING.md
1010
1111
If your PR references an existing issue, please add the issue number below
1212

.textlintrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"rules": {
3+
"preset-jtf-style": {
4+
"1.1.3.箇条書き": false,
5+
"1.2.1.句点(。)と読点(、)": false,
6+
"1.2.2.ピリオド(.)とカンマ(,)": false,
7+
"3.1.1.全角文字と半角文字の間": false,
8+
"4.2.1.感嘆符(!)": false,
9+
"4.2.2.疑問符(?)": false
10+
},
11+
"@textlint-rule/no-invalid-control-character": {
12+
"checkCode": true
13+
},
14+
"prh": {
15+
"severity" : "warning",
16+
"rulePaths" :["./prh.yml"]
17+
}
18+
}
19+
}

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# reactjs.org
1+
# ja.reactjs.org
22

3-
This repo contains the source code and documentation powering [reactjs.org](https://reactjs.org/).
3+
This repo contains the source code and documentation powering [ja.reactjs.org](https://ja.reactjs.org/).
4+
5+
> 以下はオリジナル(英語版)リポジトリの README です。日本語版 React ドキュメントへの貢献(翻訳・修正など)に興味がある方は [TRANSLATION.md](TRANSLATION.md) を参照してください。
46
57
## Getting started
68

@@ -10,11 +12,11 @@ This repo contains the source code and documentation powering [reactjs.org](http
1012
1. Node: any 12.x version starting with v12.0.0 or greater
1113
1. Yarn: See [Yarn website for installation instructions](https://yarnpkg.com/lang/en/docs/install/)
1214
1. A fork of the repo (for any contributions)
13-
1. A clone of the [reactjs.org repo](https://github.com/reactjs/reactjs.org) on your local machine
15+
1. A clone of the [ja.reactjs.org repo](https://github.com/reactjs/ja.reactjs.org) on your local machine
1416

1517
### Installation
1618

17-
1. `cd reactjs.org` to go into the project root
19+
1. `cd ja.reactjs.org` to go into the project root
1820
1. `yarn` to install the website's npm dependencies
1921

2022
### Running locally
@@ -26,11 +28,11 @@ This repo contains the source code and documentation powering [reactjs.org](http
2628

2729
### Guidelines
2830

29-
The documentation is divided into several sections with a different tone and purpose. If you plan to write more than a few sentences, you might find it helpful to get familiar with the [contributing guidelines](https://github.com/reactjs/reactjs.org/blob/master/CONTRIBUTING.md#guidelines-for-text) for the appropriate sections.
31+
The documentation is divided into several sections with a different tone and purpose. If you plan to write more than a few sentences, you might find it helpful to get familiar with the [contributing guidelines](https://github.com/reactjs/ja.reactjs.org/blob/master/CONTRIBUTING.md#guidelines-for-text) for the appropriate sections.
3032

3133
### Create a branch
3234

33-
1. `git checkout master` from any folder in your local `reactjs.org` repository
35+
1. `git checkout master` from any folder in your local `ja.reactjs.org` repository
3436
1. `git pull origin master` to ensure you have the latest main code
3537
1. `git checkout -b the-name-of-my-branch` (replacing `the-name-of-my-branch` with a suitable name) to create a branch
3638

@@ -51,7 +53,7 @@ The documentation is divided into several sections with a different tone and pur
5153

5254
1. `git add -A && git commit -m "My message"` (replacing `My message` with a commit message, such as `Fix header logo on Android`) to stage and commit your changes
5355
1. `git push my-fork-name the-name-of-my-branch`
54-
1. Go to the [reactjs.org repo](https://github.com/reactjs/reactjs.org) and you should see recently pushed branches.
56+
1. Go to the [ja.reactjs.org repo](https://github.com/reactjs/ja.reactjs.org) and you should see recently pushed branches.
5557
1. Follow GitHub's instructions.
5658
1. If possible, include screenshots of visual changes. A Netlify build will also be automatically created once you make your PR so other people can see your change.
5759

TRANSLATION.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# reactjs.org 日本語翻訳プロジェクト
2+
3+
このリポジトリでは React 公式ドキュメント日本語版に関する作業を行っています。経緯については以下のブログ記事をご覧ください。
4+
5+
- [Is React Translated Yet? ¡Sí! Sim! はい!](https://reactjs.org/blog/2019/02/23/is-react-translated-yet.html)
6+
7+
オリジナル reactjs.org は Gatsby によって生成される静的サイトであり、英語ドキュメントおよびブログ記事が含まれています。本リポジトリはそのフォークです。`content` 内にあるドキュメントが日本語化されているほか(一部除く)、一部のレイアウト要素に対する JavaScript レベルでのいくつかのパッチ、日本語版でのみ使う textlint などが含まれています。現時点では大部分のドキュメントの翻訳が完了しているため、最新版ドキュメントへの追随を主に行っています。日本語訳や日本語版特有の問題を見つけた場合はこのリポジトリの Issue / Pull Request を使って報告ないし改善を提案してください。
8+
9+
メンテナ(3 名)
10+
11+
- @potato4d
12+
- @koba04
13+
- @smikitky
14+
15+
## ドキュメント翻訳者向けガイド
16+
17+
### 環境のセットアップ
18+
19+
README.md にある通りですが、さらなる簡略版は以下の通りです。
20+
21+
1. Git, Node, Yarn をそれぞれ準備して ja.reactjs.org(のフォーク)をクローン
22+
2. `yarn` で依存物をインストール(`yarn.lock` が更新された場合は適宜これをくり返す)
23+
3. `yarn dev` でローカルウェブサーバーが立ち上がるのを確認
24+
4. `content` の中身の Markdown ファイルをテキストエディタで編集
25+
5. ブラウザで確認
26+
27+
### 作業の重複を防ぐための宣言
28+
29+
未翻訳記事の翻訳を行いたい場合は、他の人との作業の重複を防ぐため、https://github.com/reactjs/ja.reactjs.org/issues/4 での宣言をお願いします。
30+
31+
### スタイルの自動チェック
32+
33+
日本語翻訳プロジェクト内では textlint というスタイルチェッカを利用しており、基本的なスタイルに関する問題(全角英数を使わない、句読点の統一など)の検出が行われます。コミットの際に自動で走りますが、`yarn lint:text` で手動で行うことも可能です。PR の作成の前には必ずエラーが出ないようにしてください。
34+
35+
### 全般的なこと
36+
37+
- 見出しの行末にある `{#try-react}` のようなものは見出しアンカーなので、翻訳しない。([参考](https://github.com/reactjs/reactjs.org/issues/1608)
38+
- 「です」「ます」調で書く(箇条書きの中など特殊な文脈を除く)。
39+
- 原文と改行のしかた、空行の入れかたを厳密に一致させる。GitHub の差分表示画面で見て**行番号レベルで**左右が対応しているようにする。これは将来原文が更新された場合に Git が修正箇所を正しく対応づけるために重要。(ただし極一部の記事では、原文に文の途中で改行が何度も含まれているものがあり、その場合はしかたがない)
40+
- カッコは内部に和文を含む場合は全角、英数字のみ含む場合(特に原文の単語を示す場合など)は半角とする。
41+
- 半角開きカッコの前と半角閉じカッコの後には半角スペースを入れる。ただし別の約物と直接隣接している場合は不要。
42+
> ```
43+
> 避難ハッチ␣(escape hatch)␣を(必要に応じて)利用します。
44+
> ```
45+
46+
- 英数字と和文との間には半角スペースを入れる。ただし他の約物(特に句読点 。, 、)と直接隣接している場合は不要。
47+
48+
> ```
49+
> React␣の␣API␣で、`fooBar`␣を␣1␣回実行。
50+
> ```
51+
52+
- 和文内で文の一部として使う記号・約物類は原則全角とする。`「`, `」`, `、`, `。`, `:`, `!`, `?`, `/` などが該当する。
53+
- 用例の直前の行で行末に現れるコロンについても全角とする。ただしこれは毎回使うべきというわけではない。文が途切れる場合は `:` が必要だが、不自然にならないのであれば、句点(マル)で終えても構わない。
54+
- 英文から飛躍した意訳や表現の追加・改変を行わない。一方で分かりづらくなるような逐語訳もしない。
55+
- リンク先の URL は変えない。(MDN などについては後でまとめて日本語版へのリンクに置換するかもしれませんが、まとめてやる方が間違いも少ないと思われるので、気にしないでいいです)
56+
- コードサンプルについては原則翻訳しなくてよい。特に例の中の `banana` とか `Canada` のようなものまで翻訳する必要はない。ただしコード中のコメントに、(本来は本文に書いたほうがいいレベルの)大量の説明があり、翻訳しないと理解を妨げる危険性が高い場合は翻訳してもよい。
57+
- `*強調*` や `**強調**`(それぞれ `em` と `strong` に変換される)は、極力原文での使い方と同じにする。(環境によって日本語フォントは斜体で表示できないため、`em` に日本語が含まれる場合は自動的に太字に変換されるようになっています:[参考](https://github.com/reactjs/ja.reactjs.org/issues/22))
58+
- ごく一般的な日本語表記に関して困ったら概ね公用文作成の要領などに準ずるが、カタカナ語の末尾の長音符については JIS Z 8301 の推奨に従う。そこまで目くじらを立てなくてよいが、基本は要するに以下の通り。
59+
- 3 音以上の場合のみ、片仮名語の末尾の長音符を原則省略。「エコー」「マナー」「ハンドラ」「プロパティ」など。
60+
- ただし「レンダー」だけは例外で、常に「レンダー」と伸ばす。
61+
- 補助動詞(~てください・~てみる・~ておく・~てくる・~てしまう、など)はかな書き。
62+
- 語彙化した副詞はなるべくかな書き。「ついに」「まれに」「ときに」「ようやく」「おそらく」など。
63+
64+
### 用語の統一
65+
66+
Wiki の[訳語の統一](https://github.com/reactjs/ja.reactjs.org/wiki/%E8%A8%B3%E8%AA%9E%E3%81%AE%E7%B5%B1%E4%B8%80)を参照。

content/community/external-resources.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ sectionid: community
66
permalink: community/external-resources.html
77
---
88

9-
There are many wonderful curated resources the React community has put together.
9+
React community には選定された多くの素晴らしいリソースがあります。
1010

11-
- [Reactiflux](https://www.reactiflux.com/) - A community of 20,000+ React developers. They keep a well curated [learning section](https://www.reactiflux.com/learning/).
11+
- [Reactiflux](https://www.reactiflux.com/) - 20,000 人以上の React ディベロッパーが在籍するコミュニティです。彼らが良く選定された [learning section](https://www.reactiflux.com/learning/) を維持しています。
1212

13-
- [React-Redux Links](https://github.com/markerikson/react-redux-links) - Mark Erikson's highly curated list of tutorials and resources for React/Redux/ES6 and more.
13+
- [React-Redux Links](https://github.com/markerikson/react-redux-links) - Mark Erikson 氏が選定したチュートリアルやリソースのリストです。React/Redux/ES6 などがあります。
1414

15-
- [Awesome React](https://github.com/enaqx/awesome-react) - A collection of awesome things regarding React ecosystem.
15+
- [Awesome React](https://github.com/enaqx/awesome-react) - React ecosystem についての素晴らしいコレクションです。
1616

17-
- [Awesome React Components](https://github.com/brillout/awesome-react-components) - A curated list of React components.
17+
- [Awesome React Components](https://github.com/brillout/awesome-react-components) - React components についての選定されたリストです。
1818

19-
- [Awesome React Talks](https://github.com/tiaanduplessis/awesome-react-talks) - A curated list of React talks.
19+
- [Awesome React Talks](https://github.com/tiaanduplessis/awesome-react-talks) - React talks についての選定されたリストです。
2020

21-
- [Hero35 React Hub](https://hero35.com/topic/react) - A website with _all_ React conferences and talks, categorized & curated.
21+
- [Hero35 React Hub](https://hero35.com/topic/react) - React *すべて*のカンファや講演がカテゴリ別に選定されて収録されているウェブサイトです。

0 commit comments

Comments
 (0)