feat: (i18n) translate commit-convention.md to japanese

commit-convention.md was written in English.
Translate this into Japanese.
pull/4527/head
Yusuke 8 months ago
parent 4840684bd1
commit d2ca816a96

@ -1,50 +1,50 @@
## Git Commit Message Convention
## Gitのコミット・メッセージに関する規約
> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular).
> これは[Angularのコミット規約](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular)を参考にしたものです。
#### TL;DR:
#### 要約:
Messages must be matched by the following regex:
メッセージは以下の正規表現でマッチさせる必要があります:
```js
/^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip)(\(.+\))?: .{1,50}/
```
#### Examples
####
Appears under "Features" header, `theme` subheader:
"Features"ヘッダーの`theme`サブヘッダーに表示されます:
```
feat(theme): add home page feature
feat(theme): add home page feature(訳: ホームページ機能の追加です)
```
Appears under "Bug Fixes" header, `theme` subheader, with a link to issue #28:
"BugFixes"ヘッダーの`theme`サブヘッダーに、issue #28へのリンクとともに表示されます:
```
fix(theme): remove underline on sidebar hover style
fix(テーマ): remove underline on sidebar hover style訳: サイドバーのホバースタイルから下線を取り除きます)
close #28
```
Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation:
"Performance Improvements"ヘッダーの下に表示され、"Breaking Changes"の下には変更点の説明とともに表示されます:
```
perf: improve store getters performance by removing 'foo' option
perf: improve store getters performance by removing 'foo' option(訳: 'foo'オプションを削除することで、ストアゲッターのパフォーマンスを改善します)
BREAKING CHANGE: The 'foo' option has been removed.
BREAKING CHANGE: The 'foo' option has been removed.(訳: 'foo'オプションは削除されました。)
```
The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header.
以下のコミットとコミット`667ecc1`は同じリリースの場合、changelogに表示されません。そうでない場合、差し戻しコミットは"Reverts"ヘッダーの下に表示されます。
```
revert: feat(theme): add home page feature
revert: feat(theme): add home page feature(訳: ホームページ機能の追加)
This reverts commit 667ecc1654a317a13331b17617d973392f415f02.
```
### Full Message Format
### 完全なメッセージ・フォーマット
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:
コミット・メッセージは**header**、**body**、**footer**で構成されます。ヘッダーには **type**、**scope**、**subject** があります:
```
<type>(<scope>): <subject>
@ -54,38 +54,38 @@ A commit message consists of a **header**, **body** and **footer**. The header h
<footer>
```
The **header** is mandatory and the **scope** of the header is optional.
**header**は必須であり、ヘッダーの**scope**はオプションです。
### Revert
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body, it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
前のコミットを取り消す場合は、`revert: `で始まり、その後に取り消すコミットのheaderを続けます。本文では、`This reverts commit <hash>.` (hashは差し戻されるコミットのSHA)と記述します。
### Type
If the prefix is `feat`, `fix` or `perf`, it will appear in the changelog. However, if there is any [BREAKING CHANGE](#footer), the commit will always appear in the changelog.
prefixが`feat`、`fix`、`perf`の場合、変更履歴に表示されます。しかし、[BREAKING CHANGE](#footer)があれば、そのコミットは常に変更履歴に表示されます。
Other prefixes are up to your discretion. Suggested prefixes are `docs`, `chore`, `style`, `refactor`, and `test` for non-changelog related tasks.
その他の接頭辞は自由です。推奨されるprefixは`docs`、`chore`、`style`、`refactor`および`test`です。
### Scope
The scope could be anything specifying the place of the commit change. For example `theme`, `compiler`, `ssr`, etc...
scopeはコミットの変更箇所を指定するものであれば何でも構いません。例えば`theme`、`compiler`、`ssr`などです。
### Subject
The subject contains a succinct description of the change:
subjectには、変更の簡潔な説明が含まれています:
- use the imperative, present tense: "change" not "changed" nor "changes"
- don't capitalize the first letter
- no dot (.) at the end
- 現在形、もしくは命令形を使う: "changed"または"changes"ではなく、"change"
- 最初の文字を大文字にしない
- 最後にドット(.)がない
### Body
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
The body should include the motivation for the change and contrast this with previous behavior.
**subject**と同じように、現在形、もしくは命令形を使う。: "changed"または"changes"ではなく"change"
本文には、changeの説明を盛り込み、以前の挙動と対比させる。
### Footer
The footer should contain any information about **Breaking Changes** and is also the place to
reference GitHub issues that this commit **Closes**.
フッターには、**Breaking Changes** に関する情報を記述します。
また、このコミットが**Closes**するGithubのissueを参照する箇所でもあります。
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
**Breaking Changes**は`BREAKING CHANGE:`という単語とスペースまたは2つの改行で始まります。コミット・メッセージの残りはこのために使われます。

Loading…
Cancel
Save