This repository was archived by the owner on Jan 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 113
docs: translate style-guide #13
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8a9abde
docs: translate style-guide
uetchy 27a1609
chore: update textlint settings
uetchy f46d52f
chore(ci): fix reviewdog config
uetchy b7178f6
chore: follow JTF style
uetchy 48ac77f
docs: finish translating style-guide
uetchy 1622cf3
docs: style-guideにtextlintの項目を追加
uetchy 152a278
Update style-guide.md
uetchy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ title: Gatsby コントリビューター行動規範 | |
|
|
||
| ## 私たちの約束 | ||
|
|
||
| 私たちはオープンかつ友好的なコミュニティを育成するために、コントリビューターやメンテナーとして、年齢、体型、障碍、民族性、性自認および性別表現、経験レベル、国籍、個人の容姿、人種、信仰、性的同一性および指向に関わりなく、私たちのプロジェクトやコミュニティへの参加を誰にとっても嫌がらせのない体験にすることを誓います。 | ||
| 私たちはオープンかつ友好的なコミュニティーを育成するために、コントリビューターやメンテナーとして、年齢、体型、障がい、民族性、性自認および性別表現、経験レベル、国籍、個人の容姿、人種、信仰、性的同一性および指向に関わりなく、私たちのプロジェクトやコミュニティーへの参加を誰にとっても嫌がらせのない体験にすることを誓います。 | ||
|
|
||
| ## 私たちの標準 | ||
|
|
||
|
|
@@ -13,7 +13,7 @@ title: Gatsby コントリビューター行動規範 | |
| - 友好的かつ男女包括用語の使用 | ||
| - 異なる観点や経験の尊重 | ||
| - 建設的批判の率直な受容 | ||
| - コミュニティにとっての最善への集中 | ||
| - コミュニティーにとっての最善への集中 | ||
| - 他のコミュニティメンバーへの共感 | ||
|
|
||
| 参加者による容認できない行動の例: | ||
|
|
@@ -32,15 +32,15 @@ title: Gatsby コントリビューター行動規範 | |
|
|
||
| ## 適用範囲 | ||
|
|
||
| この行動規範は、個人がプロジェクトやそのコミュニティを代表するとき、プロジェクト内と公共空間の両方において適用されます。プロジェクトやコミュニティを代表する例として、プロジェクトの公式メールアドレスの使用、ソーシャルメディアの公式アカウント経由の投稿、指名された代表としてのオンラインやオフラインのイベントにおける行動があります。プロジェクトを代表することは、プロジェクトのメンテナーにより、さらに定義され明確化される可能性があります。 | ||
| この行動規範は、個人がプロジェクトやそのコミュニティーを代表するとき、プロジェクト内と公共空間の両方において適用されます。プロジェクトやコミュニティーを代表する例として、プロジェクトの公式メールアドレスの使用、ソーシャルメディアの公式アカウント経由の投稿、指名された代表としてのオンラインやオフラインのイベントにおける行動があります。プロジェクトを代表することは、プロジェクトのメンテナーにより、さらに定義され明確化される可能性があります。 | ||
|
|
||
| ## 執行 | ||
|
|
||
| 暴言、嫌がらせ、またはそれ以外の受け入れられない行動は、[[email protected]](mailto:[email protected]) に連絡して、プロジェクトチームに報告される可能性があります。すべての苦情は、レビュー、調査され、必要かつ適切と判断された対応がとられます。プロジェクトチームは、事象の報告者に関する守秘義務があります。具体的な執行に関する詳細が別途設定されているかもしれません。 | ||
|
|
||
| この行動規範に誠意を持って従うことができない、または執行ができないプロジェクトのメンテナーは、プロジェクトをリードしている他のメンバーの判断により、一時的または恒久的な影響を受けることがあります。 | ||
|
|
||
| もし、再三の注意の後も悪質なコメントやハラスメントが継続する場合は、Gatsby チームはその方を Gatsby の Github のリポジトリから追放し、SNS 等でブロックする権利を留保します。この決定は必ず二人以上のチームメンバーの合意によって行われます。 | ||
| もし、再三の注意の後も悪質なコメントやハラスメントが継続する場合は、Gatsby チームはその方を Gatsby の Github のリポジトリーから追放し、SNS 等でブロックする権利を留保します。この決定は必ず二人以上のチームメンバーの合意によって行われます。 | ||
|
|
||
| ## 帰属 | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| # Style Guide | ||
| # スタイルガイド | ||
|
|
||
| Use this file for language-specific style rules to follow for translation. | ||
| ドキュメントを日本語へ翻訳する際に参照すべきスタイルガイドです。内容の改定を提案したい場合は、Issue を立てるか、あるいは Discord で議論してください。 | ||
|
|
||
| ## Rules | ||
| ## ルール | ||
|
|
||
| ### Text in Code Blocks | ||
| ### コードブロック内のテキスト | ||
|
|
||
| Leave text in code blocks untranslated except for comments. You may optionally translate text in strings, but be careful not to translate strings that refer to code! | ||
| コードブロック内については、コメントを除いて翻訳しないでください。任意で文字列リテラルの中身を翻訳しても良いですが、コードそのものはそのままにしてください! | ||
|
|
||
| Example: | ||
| 例: | ||
|
|
||
| ```js | ||
| // Example | ||
|
|
@@ -18,73 +18,97 @@ export default () => ( | |
| ) | ||
| ``` | ||
|
|
||
| ✅ DO: | ||
| ✅ 良い: | ||
|
|
||
| ```js | ||
| // Ejemplo | ||
| // 例 | ||
| import React from "react" | ||
| export default () => ( | ||
| <div style={{ color: `purple`, fontSize: `72px` }}>Hello Gatsby!</div> | ||
| ) | ||
| ``` | ||
|
|
||
| ✅ ALSO OKAY: | ||
| ✅ 良い: | ||
|
|
||
| ```js | ||
| // Ejemplo | ||
| // 例 | ||
| import React from "react" | ||
| export default () => ( | ||
| <div style={{ color: `purple`, fontSize: `72px` }}>¡Hola Gatsby!</div> | ||
| <div style={{ color: `purple`, fontSize: `72px` }}>こんにちは、Gatsby!</div> | ||
| ) | ||
| ``` | ||
|
|
||
| ❌ DON'T: | ||
| ❌ 悪い: | ||
|
|
||
| ```js | ||
| // Ejemplo | ||
| // 例 | ||
| import React from "react" | ||
| export default () => ( | ||
| // 'purple' is a CSS keyword | ||
| <div style={{ color: `morado`, fontSize: `72px` }}>¡Hola Gatsby!</div> | ||
| // 'purple' はCSSのキーワード | ||
| <div style={{ color: `紫`, fontSize: `72px` }}>こんにちは、Gatsby!</div> | ||
| ) | ||
| ``` | ||
|
|
||
| ❌ DEFINITELY DON'T: | ||
| ❌ 絶対にしないで: | ||
|
|
||
| ```js | ||
| importar Reaccionar desde "reaccionar" | ||
| exportar defecto () => ( | ||
| <div estilo = {{color: `morado`, fontSize:` 72px`}}> ¡Hola Gatsby! </div> | ||
| インポート リアクト フロム "リアクト" | ||
| エクスポート デフォルト () => ( | ||
| <div スタイル={{color: `紫`, fontSize:` 72px`}}>こんにちは、Gatsby!</div> | ||
| ) | ||
| ``` | ||
|
|
||
| ### External Links | ||
| ### 外部リンク | ||
|
|
||
| If an external link is to an article in a reference like [MDN] or [Wikipedia], and a version of that article exists in your language that is of decent quality, consider linking to that version instead. | ||
| もし外部リンクが[MDN]や[Wikipedia]のような記事の場合であって、かつ十分なクオリティの日本語版が存在する場合は、翻訳版へのリンクを貼りましょう。 | ||
|
|
||
| [mdn]: https://developer.mozilla.org/en-US/ | ||
| [wikipedia]: https://en.wikipedia.org/wiki/Main_Page | ||
|
|
||
| Example: | ||
| 例: | ||
|
|
||
| ```md | ||
| React elements are [immutable](https://en.wikipedia.org/wiki/Immutable_object). | ||
| ``` | ||
|
|
||
| ✅ OK: | ||
| ✅ 良い: | ||
|
|
||
| ```md | ||
| Los elementos de React son [inmutables](https://es.wikipedia.org/wiki/Objeto_inmutable). | ||
| React エレメントは[イミュータブル](https://ja.wikipedia.org/wiki/イミュータブル)です。 | ||
| ``` | ||
|
|
||
| For links that have no equivalent (Stack Overflow, YouTube videos, etc.), just use the English link. | ||
| 同等のリンクが存在しない場合(Stack Overflow、YouTube 等)、英語リンクをそのまま使ってください。 | ||
|
|
||
| ## Glossary | ||
| ### 文体 | ||
|
|
||
| Use this section to list how common technical terminology should be translated. | ||
| 敬体(ですます調)で、読者に直接語りかけるように書いてください。 | ||
|
|
||
| | Term | Translation | | ||
| | ------ | ----------- | | ||
| | Plugin | ?? | | ||
| | Theme | ?? | | ||
| | Query | ?? | | ||
| ✅ 良い: | ||
|
|
||
| ```md | ||
| もし React について詳しくなければ、まずは[こちらのガイド](https://reactjs.org)をご覧ください。 | ||
| ``` | ||
|
|
||
| ❌ ダメかも: | ||
|
|
||
| ```md | ||
| React について詳しくない方は、まず[こちらのガイド](https://reactjs.org)を参照してください。 | ||
| ``` | ||
|
|
||
| ## 用語集 | ||
|
|
||
| 頻出する用語は合意を得た上でリストに加えてください。さらに[prh.yml](/prh.yml)にルールを追加することで、CI にチェックを任せることができます。 | ||
|
|
||
| | 用語 | 和訳 | | ||
| | ------ | ---------- | | ||
| | Plugin | プラグイン | | ||
| | Theme | テーマ | | ||
| | Query | クエリ | | ||
|
|
||
| ## textlint | ||
|
|
||
| `gatsby-ja`では文章の校正に textlint を活用しています。 | ||
|
|
||
| ### `npm run lint` | ||
|
|
||
| `npm run lint`を実行して、ローカルで textlint による校正を受けることができます。ほとんどのエラーは`npm run format`を実行することで自動修正できます。 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここ笑う