{"action":"created","comment":{"url":"https://api.github.com/repos/vuejs/vuex/pulls/comments/94280921","pull_request_review_id":14810782,"id":94280921,"diff_hunk":"@@ -81,42 +81,143 @@ const moduleA = {\n \n ### 名前空間\n \n-特筆すべきこととして、モジュール内部のアクションやミューテーション、ゲッターは依然として**グローバル名前空間**の下に登録されます。これにより、複数のモジュールを同一のミューテーションやアクションタイプに反応させることができます。接頭語や接尾語を付けることで名前の衝突を回避できますし、再利用可能でかつどこで使われるか分からない Vuex のモジュールを書いているのならば、そうすべきです。例えば `todos` モジュールを作りたいときは以下のようにします:\n+デフォルトでは、アクション、ミューテーション、そしてゲッター内部のモジュールは**グローバル名前空間**の元で登録されます - これにより、複数のモジュールが同じミューテーション/アクションタイプに反応することができます。\n+\n+モジュールを自己完結型または再利用可能にするには、`namespaced: true` で名前空間としてマークすることができます。モジュールが登録されると、そのゲッター、アクション、およびミューテーションのすべてが、モジュールが登録されているパスに基づいて自動的に名前空間に入れられます。例えば:\n \n ``` js\n-// types.js\n+const store = new Vuex.Store({\n+  modules: {\n+    account: {\n+      namespaced: true,\n+\n+      // モジュールのアセット\n+      state: { ... }, // モジュールステートは名前空間オプションのによって既にネストされており、名前空間のオプションに影響を与える","path":"docs/ja/modules.md","position":17,"original_position":17,"commit_id":"5ded3b59be78bcdccc5eb2ee543e658227ca319d","original_commit_id":"5ded3b59be78bcdccc5eb2ee543e658227ca319d","user":{"login":"ktsn","id":2194624,"avatar_url":"https://avatars.githubusercontent.com/u/2194624?v=3","gravatar_id":"","url":"https://api.github.com/users/ktsn","html_url":"https://github.com/ktsn","followers_url":"https://api.github.com/users/ktsn/followers","following_url":"https://api.github.com/users/ktsn/following{/other_user}","gists_url":"https://api.github.com/users/ktsn/gists{/gist_id}","starred_url":"https://api.github.com/users/ktsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktsn/subscriptions","organizations_url":"https://api.github.com/users/ktsn/orgs","repos_url":"https://api.github.com/users/ktsn/repos","events_url":"https://api.github.com/users/ktsn/events{/privacy}","received_events_url":"https://api.github.com/users/ktsn/received_events","type":"User","site_admin":false},"body":"> 名前空間オプションのによって\r\n\r\nによって？\r\n\r\n> 名前空間のオプションに影響を与える\r\n\r\n「名前空間のオプションによって影響を受けない」になると思います。","created_at":"2017-01-01T08:06:07Z","updated_at":"2017-01-01T08:36:35Z","html_url":"https://github.com/vuejs/vuex/pull/558#discussion_r94280921","pull_request_url":"https://api.github.com/repos/vuejs/vuex/pulls/558","_links":{"self":{"href":"https://api.github.com/repos/vuejs/vuex/pulls/comments/94280921"},"html":{"href":"https://github.com/vuejs/vuex/pull/558#discussion_r94280921"},"pull_request":{"href":"https://api.github.com/repos/vuejs/vuex/pulls/558"}}},"pull_request":{"url":"https://api.github.com/repos/vuejs/vuex/pulls/558","id":99809609,"html_url":"https://github.com/vuejs/vuex/pull/558","diff_url":"https://github.com/vuejs/vuex/pull/558.diff","patch_url":"https://github.com/vuejs/vuex/pull/558.patch","issue_url":"https://api.github.com/repos/vuejs/vuex/issues/558","number":558,"state":"open","locked":false,"title":"translate latest docs for ja","user":{"login":"kazupon","id":72989,"avatar_url":"https://avatars.githubusercontent.com/u/72989?v=3","gravatar_id":"","url":"https://api.github.com/users/kazupon","html_url":"https://github.com/kazupon","followers_url":"https://api.github.com/users/kazupon/followers","following_url":"https://api.github.com/users/kazupon/following{/other_user}","gists_url":"https://api.github.com/users/kazupon/gists{/gist_id}","starred_url":"https://api.github.com/users/kazupon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazupon/subscriptions","organizations_url":"https://api.github.com/users/kazupon/orgs","repos_url":"https://api.github.com/users/kazupon/repos","events_url":"https://api.github.com/users/kazupon/events{/privacy}","received_events_url":"https://api.github.com/users/kazupon/received_events","type":"User","site_admin":false},"body":"NOTE:\r\n  pick up from the below commits:\r\n  - api.md:  https://github.com/vuejs/vuex/commit/7ead1d89bfb357a6f41bfafbab731e231be290d3\r\n  - modules.md: https://github.com/vuejs/vuex/commit/a701210502f651c16bced86db133a4b1ddec8cd1","created_at":"2016-12-31T18:03:04Z","updated_at":"2017-01-01T08:36:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d7e3000f69a9346ea07e1b83c9a50e7be2eb778","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vuejs/vuex/pulls/558/commits","review_comments_url":"https://api.github.com/repos/vuejs/vuex/pulls/558/comments","review_comment_url":"https://api.github.com/repos/vuejs/vuex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vuejs/vuex/issues/558/comments","statuses_url":"https://api.github.com/repos/vuejs/vuex/statuses/5ded3b59be78bcdccc5eb2ee543e658227ca319d","head":{"label":"kazupon:translation/ja","ref":"translation/ja","sha":"5ded3b59be78bcdccc5eb2ee543e658227ca319d","user":{"login":"kazupon","id":72989,"avatar_url":"https://avatars.githubusercontent.com/u/72989?v=3","gravatar_id":"","url":"https://api.github.com/users/kazupon","html_url":"https://github.com/kazupon","followers_url":"https://api.github.com/users/kazupon/followers","following_url":"https://api.github.com/users/kazupon/following{/other_user}","gists_url":"https://api.github.com/users/kazupon/gists{/gist_id}","starred_url":"https://api.github.com/users/kazupon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazupon/subscriptions","organizations_url":"https://api.github.com/users/kazupon/orgs","repos_url":"https://api.github.com/users/kazupon/repos","events_url":"https://api.github.com/users/kazupon/events{/privacy}","received_events_url":"https://api.github.com/users/kazupon/received_events","type":"User","site_admin":false},"repo":{"id":48675938,"name":"vuex","full_name":"kazupon/vuex","owner":{"login":"kazupon","id":72989,"avatar_url":"https://avatars.githubusercontent.com/u/72989?v=3","gravatar_id":"","url":"https://api.github.com/users/kazupon","html_url":"https://github.com/kazupon","followers_url":"https://api.github.com/users/kazupon/followers","following_url":"https://api.github.com/users/kazupon/following{/other_user}","gists_url":"https://api.github.com/users/kazupon/gists{/gist_id}","starred_url":"https://api.github.com/users/kazupon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazupon/subscriptions","organizations_url":"https://api.github.com/users/kazupon/orgs","repos_url":"https://api.github.com/users/kazupon/repos","events_url":"https://api.github.com/users/kazupon/events{/privacy}","received_events_url":"https://api.github.com/users/kazupon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kazupon/vuex","description":"Flux-inspired Application Architecture for Vue.js.","fork":true,"url":"https://api.github.com/repos/kazupon/vuex","forks_url":"https://api.github.com/repos/kazupon/vuex/forks","keys_url":"https://api.github.com/repos/kazupon/vuex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kazupon/vuex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kazupon/vuex/teams","hooks_url":"https://api.github.com/repos/kazupon/vuex/hooks","issue_events_url":"https://api.github.com/repos/kazupon/vuex/issues/events{/number}","events_url":"https://api.github.com/repos/kazupon/vuex/events","assignees_url":"https://api.github.com/repos/kazupon/vuex/assignees{/user}","branches_url":"https://api.github.com/repos/kazupon/vuex/branches{/branch}","tags_url":"https://api.github.com/repos/kazupon/vuex/tags","blobs_url":"https://api.github.com/repos/kazupon/vuex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kazupon/vuex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kazupon/vuex/git/refs{/sha}","trees_url":"https://api.github.com/repos/kazupon/vuex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kazupon/vuex/statuses/{sha}","languages_url":"https://api.github.com/repos/kazupon/vuex/languages","stargazers_url":"https://api.github.com/repos/kazupon/vuex/stargazers","contributors_url":"https://api.github.com/repos/kazupon/vuex/contributors","subscribers_url":"https://api.github.com/repos/kazupon/vuex/subscribers","subscription_url":"https://api.github.com/repos/kazupon/vuex/subscription","commits_url":"https://api.github.com/repos/kazupon/vuex/commits{/sha}","git_commits_url":"https://api.github.com/repos/kazupon/vuex/git/commits{/sha}","comments_url":"https://api.github.com/repos/kazupon/vuex/comments{/number}","issue_comment_url":"https://api.github.com/repos/kazupon/vuex/issues/comments{/number}","contents_url":"https://api.github.com/repos/kazupon/vuex/contents/{+path}","compare_url":"https://api.github.com/repos/kazupon/vuex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kazupon/vuex/merges","archive_url":"https://api.github.com/repos/kazupon/vuex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kazupon/vuex/downloads","issues_url":"https://api.github.com/repos/kazupon/vuex/issues{/number}","pulls_url":"https://api.github.com/repos/kazupon/vuex/pulls{/number}","milestones_url":"https://api.github.com/repos/kazupon/vuex/milestones{/number}","notifications_url":"https://api.github.com/repos/kazupon/vuex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kazupon/vuex/labels{/name}","releases_url":"https://api.github.com/repos/kazupon/vuex/releases{/id}","deployments_url":"https://api.github.com/repos/kazupon/vuex/deployments","created_at":"2015-12-28T05:40:17Z","updated_at":"2015-12-28T05:40:18Z","pushed_at":"2016-12-31T18:02:19Z","git_url":"git://github.com/kazupon/vuex.git","ssh_url":"git@github.com:kazupon/vuex.git","clone_url":"https://github.com/kazupon/vuex.git","svn_url":"https://github.com/kazupon/vuex","homepage":"","size":8861,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vuejs:dev","ref":"dev","sha":"01c352625e6342789a6fcfbfe9e20ecfa001598f","user":{"login":"vuejs","id":6128107,"avatar_url":"https://avatars.githubusercontent.com/u/6128107?v=3","gravatar_id":"","url":"https://api.github.com/users/vuejs","html_url":"https://github.com/vuejs","followers_url":"https://api.github.com/users/vuejs/followers","following_url":"https://api.github.com/users/vuejs/following{/other_user}","gists_url":"https://api.github.com/users/vuejs/gists{/gist_id}","starred_url":"https://api.github.com/users/vuejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuejs/subscriptions","organizations_url":"https://api.github.com/users/vuejs/orgs","repos_url":"https://api.github.com/users/vuejs/repos","events_url":"https://api.github.com/users/vuejs/events{/privacy}","received_events_url":"https://api.github.com/users/vuejs/received_events","type":"Organization","site_admin":false},"repo":{"id":39176269,"name":"vuex","full_name":"vuejs/vuex","owner":{"login":"vuejs","id":6128107,"avatar_url":"https://avatars.githubusercontent.com/u/6128107?v=3","gravatar_id":"","url":"https://api.github.com/users/vuejs","html_url":"https://github.com/vuejs","followers_url":"https://api.github.com/users/vuejs/followers","following_url":"https://api.github.com/users/vuejs/following{/other_user}","gists_url":"https://api.github.com/users/vuejs/gists{/gist_id}","starred_url":"https://api.github.com/users/vuejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuejs/subscriptions","organizations_url":"https://api.github.com/users/vuejs/orgs","repos_url":"https://api.github.com/users/vuejs/repos","events_url":"https://api.github.com/users/vuejs/events{/privacy}","received_events_url":"https://api.github.com/users/vuejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vuejs/vuex","description":"Centralized State Management for Vue.js.","fork":false,"url":"https://api.github.com/repos/vuejs/vuex","forks_url":"https://api.github.com/repos/vuejs/vuex/forks","keys_url":"https://api.github.com/repos/vuejs/vuex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vuejs/vuex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vuejs/vuex/teams","hooks_url":"https://api.github.com/repos/vuejs/vuex/hooks","issue_events_url":"https://api.github.com/repos/vuejs/vuex/issues/events{/number}","events_url":"https://api.github.com/repos/vuejs/vuex/events","assignees_url":"https://api.github.com/repos/vuejs/vuex/assignees{/user}","branches_url":"https://api.github.com/repos/vuejs/vuex/branches{/branch}","tags_url":"https://api.github.com/repos/vuejs/vuex/tags","blobs_url":"https://api.github.com/repos/vuejs/vuex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vuejs/vuex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vuejs/vuex/git/refs{/sha}","trees_url":"https://api.github.com/repos/vuejs/vuex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vuejs/vuex/statuses/{sha}","languages_url":"https://api.github.com/repos/vuejs/vuex/languages","stargazers_url":"https://api.github.com/repos/vuejs/vuex/stargazers","contributors_url":"https://api.github.com/repos/vuejs/vuex/contributors","subscribers_url":"https://api.github.com/repos/vuejs/vuex/subscribers","subscription_url":"https://api.github.com/repos/vuejs/vuex/subscription","commits_url":"https://api.github.com/repos/vuejs/vuex/commits{/sha}","git_commits_url":"https://api.github.com/repos/vuejs/vuex/git/commits{/sha}","comments_url":"https://api.github.com/repos/vuejs/vuex/comments{/number}","issue_comment_url":"https://api.github.com/repos/vuejs/vuex/issues/comments{/number}","contents_url":"https://api.github.com/repos/vuejs/vuex/contents/{+path}","compare_url":"https://api.github.com/repos/vuejs/vuex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vuejs/vuex/merges","archive_url":"https://api.github.com/repos/vuejs/vuex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vuejs/vuex/downloads","issues_url":"https://api.github.com/repos/vuejs/vuex/issues{/number}","pulls_url":"https://api.github.com/repos/vuejs/vuex/pulls{/number}","milestones_url":"https://api.github.com/repos/vuejs/vuex/milestones{/number}","notifications_url":"https://api.github.com/repos/vuejs/vuex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vuejs/vuex/labels{/name}","releases_url":"https://api.github.com/repos/vuejs/vuex/releases{/id}","deployments_url":"https://api.github.com/repos/vuejs/vuex/deployments","created_at":"2015-07-16T04:21:26Z","updated_at":"2017-01-01T07:39:06Z","pushed_at":"2016-12-31T18:03:04Z","git_url":"git://github.com/vuejs/vuex.git","ssh_url":"git@github.com:vuejs/vuex.git","clone_url":"https://github.com/vuejs/vuex.git","svn_url":"https://github.com/vuejs/vuex","homepage":"","size":9703,"stargazers_count":4749,"watchers_count":4749,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":934,"mirror_url":null,"open_issues_count":27,"forks":934,"open_issues":27,"watchers":4749,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/vuejs/vuex/pulls/558"},"html":{"href":"https://github.com/vuejs/vuex/pull/558"},"issue":{"href":"https://api.github.com/repos/vuejs/vuex/issues/558"},"comments":{"href":"https://api.github.com/repos/vuejs/vuex/issues/558/comments"},"review_comments":{"href":"https://api.github.com/repos/vuejs/vuex/pulls/558/comments"},"review_comment":{"href":"https://api.github.com/repos/vuejs/vuex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vuejs/vuex/pulls/558/commits"},"statuses":{"href":"https://api.github.com/repos/vuejs/vuex/statuses/5ded3b59be78bcdccc5eb2ee543e658227ca319d"}}}}
{"actor":{"display_login":"ktsn"}}