Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 4485060

Browse files
committed
Transrate docs/docs/actions
1 parent aeb7d3a commit 4485060

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/docs/actions.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
---
2-
title: Actions
3-
description: Documentation on actions and how they help you manipulate state within Gatsby
2+
title: アクション
3+
description: Gatsbyの状態管理に役立つアクションのドキュメント
44
jsdoc:
55
- "gatsby/src/redux/actions/public.js"
66
- "gatsby/src/redux/actions/restricted.js"
77
contentsHeading: Functions
88
---
99

10-
Gatsby uses [Redux](http://redux.js.org) internally to manage state. When you implement a Gatsby API, you are passed a collection of actions (equivalent to actions bound with [bindActionCreators](https://redux.js.org/api/bindactioncreators/) in Redux) which you can use to manipulate state on your site.
10+
Gatsby は [Redux](http://redux.js.org) を内部的に使用して状態を管理しています。
11+
あなたのサイトで Gatsby API を実装するとアクションのコレクション(Redux の[bindActionCreators](https://redux.js.org/api/bindactioncreators/) てバインドされるアクションと同等)が渡され、状態管理に使用できます。
1112

12-
The object `actions` contains the functions and these can be individually extracted by using ES6 object destructuring.
13+
`actions` のオブジェクトに含まれる各関数は、ES6 のオブジェクトの分割代入で個別に抽出できます。
1314

1415
```javascript
15-
// For function createNodeField
16+
// createNodeField 関数の場合
1617
exports.onCreateNode = ({ node, getNode, actions }) => {
1718
const { createNodeField } = actions
1819
}

0 commit comments

Comments
 (0)