{"action":"created","comment":{"url":"https://api.github.com/repos/cocos-creator/creator-docs/pulls/comments/235270560","pull_request_review_id":177097152,"id":235270560,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTI3MDU2MA==","diff_hunk":"@@ -1,49 +1,49 @@\n-# 代码分包加载\n+# Code Sub-packaging\n \n-随着游戏玩法越来越丰富，游戏的代码量也越来越大，开发者对于扩大包大小的需求越来越强烈，同时微信小游戏也支持了分包加载的功能，所以 Cocos Creator 推出了代码分包加载这样一个功能。\n+As gameplay becomes more and more rich, the amount of code in the game is increasing and developers are wanting to expand the size of their game. **Code sub-packaging** provides for these demands.\n \n-分包加载，即把游戏内容按一定规则拆分在几个包里，在首次启动的时候只下载必要的包，这个必要的包称为 **主包**，开发者可以在主包内触发下载其他子包，这样可以有效降低首次启动的消耗时间。\n+**Sub-package** loading, is the the game content being split into several packages according to certain rules. During the first startup, only the necessary packages are downloaded, also called the **main package**. Other sub-packages are downloaded, as triggered, which can effectively reduce the time spent on the first boot.\n \n-## 配置方法\n+## Configuration method\n \n-Cocos Creator 的分包是以文件夹为单位来配置的，当我们选中一个文件夹时，在 **属性检查器** 中会出现文件夹的相关配置选项：\n+__Cocos Creator's__ sub-package is configured in folders. When a folder is selected, the relevant configuration options for the folder appear in the **Property Checker**:\n \n ![subpackage](./subpackage/subpackage.png)\n \n-勾选 **配置为子包** 后，点击右上方的 `应用`，这个文件夹下的代码就会被当做是子包的内容了。子包名会在加载子包时作为加载的名字传入，默认会使用这个文件夹的名字。\n+After checking **Config as sub-package**, click `Apply` at the top right, and the code in this folder will be treated as a __sub-package__. The __sub-package__ name will be passed as the loaded name when the __sub-package__ is loaded. The name of this folder will be used by default.\n \n-## 构建\n+## Constructing","path":"en/scripting/subpackage.md","position":22,"original_position":22,"commit_id":"4668f6ab6cbed960e116c9b57295c2045e3a06ae","original_commit_id":"4668f6ab6cbed960e116c9b57295c2045e3a06ae","user":{"login":"xunyi0","id":19702899,"node_id":"MDQ6VXNlcjE5NzAyODk5","avatar_url":"https://avatars0.githubusercontent.com/u/19702899?v=4","gravatar_id":"","url":"https://api.github.com/users/xunyi0","html_url":"https://github.com/xunyi0","followers_url":"https://api.github.com/users/xunyi0/followers","following_url":"https://api.github.com/users/xunyi0/following{/other_user}","gists_url":"https://api.github.com/users/xunyi0/gists{/gist_id}","starred_url":"https://api.github.com/users/xunyi0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xunyi0/subscriptions","organizations_url":"https://api.github.com/users/xunyi0/orgs","repos_url":"https://api.github.com/users/xunyi0/repos","events_url":"https://api.github.com/users/xunyi0/events{/privacy}","received_events_url":"https://api.github.com/users/xunyi0/received_events","type":"User","site_admin":false},"body":"Constructing -> Build","created_at":"2018-11-21T06:58:12Z","updated_at":"2018-11-21T06:58:12Z","html_url":"https://github.com/cocos-creator/creator-docs/pull/702#discussion_r235270560","pull_request_url":"https://api.github.com/repos/cocos-creator/creator-docs/pulls/702","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cocos-creator/creator-docs/pulls/comments/235270560"},"html":{"href":"https://github.com/cocos-creator/creator-docs/pull/702#discussion_r235270560"},"pull_request":{"href":"https://api.github.com/repos/cocos-creator/creator-docs/pulls/702"}}},"pull_request":{"url":"https://api.github.com/repos/cocos-creator/creator-docs/pulls/702","id":229761748,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NzYxNzQ4","html_url":"https://github.com/cocos-creator/creator-docs/pull/702","diff_url":"https://github.com/cocos-creator/creator-docs/pull/702.diff","patch_url":"https://github.com/cocos-creator/creator-docs/pull/702.patch","issue_url":"https://api.github.com/repos/cocos-creator/creator-docs/issues/702","number":702,"state":"open","locked":false,"title":"v1.10 translations and refinements","user":{"login":"slackmoehrle","id":7491758,"node_id":"MDQ6VXNlcjc0OTE3NTg=","avatar_url":"https://avatars3.githubusercontent.com/u/7491758?v=4","gravatar_id":"","url":"https://api.github.com/users/slackmoehrle","html_url":"https://github.com/slackmoehrle","followers_url":"https://api.github.com/users/slackmoehrle/followers","following_url":"https://api.github.com/users/slackmoehrle/following{/other_user}","gists_url":"https://api.github.com/users/slackmoehrle/gists{/gist_id}","starred_url":"https://api.github.com/users/slackmoehrle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackmoehrle/subscriptions","organizations_url":"https://api.github.com/users/slackmoehrle/orgs","repos_url":"https://api.github.com/users/slackmoehrle/repos","events_url":"https://api.github.com/users/slackmoehrle/events{/privacy}","received_events_url":"https://api.github.com/users/slackmoehrle/received_events","type":"User","site_admin":false},"body":"index refinements","created_at":"2018-11-09T17:14:26Z","updated_at":"2018-11-21T06:58:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"608f9259a6b76ea99344d92dfeb687b5076a90fe","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cocos-creator/creator-docs/pulls/702/commits","review_comments_url":"https://api.github.com/repos/cocos-creator/creator-docs/pulls/702/comments","review_comment_url":"https://api.github.com/repos/cocos-creator/creator-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cocos-creator/creator-docs/issues/702/comments","statuses_url":"https://api.github.com/repos/cocos-creator/creator-docs/statuses/4668f6ab6cbed960e116c9b57295c2045e3a06ae","head":{"label":"slackmoehrle:v1.10-translations","ref":"v1.10-translations","sha":"4668f6ab6cbed960e116c9b57295c2045e3a06ae","user":{"login":"slackmoehrle","id":7491758,"node_id":"MDQ6VXNlcjc0OTE3NTg=","avatar_url":"https://avatars3.githubusercontent.com/u/7491758?v=4","gravatar_id":"","url":"https://api.github.com/users/slackmoehrle","html_url":"https://github.com/slackmoehrle","followers_url":"https://api.github.com/users/slackmoehrle/followers","following_url":"https://api.github.com/users/slackmoehrle/following{/other_user}","gists_url":"https://api.github.com/users/slackmoehrle/gists{/gist_id}","starred_url":"https://api.github.com/users/slackmoehrle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackmoehrle/subscriptions","organizations_url":"https://api.github.com/users/slackmoehrle/orgs","repos_url":"https://api.github.com/users/slackmoehrle/repos","events_url":"https://api.github.com/users/slackmoehrle/events{/privacy}","received_events_url":"https://api.github.com/users/slackmoehrle/received_events","type":"User","site_admin":false},"repo":{"id":150150655,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAxNTA2NTU=","name":"creator-docs","full_name":"slackmoehrle/creator-docs","private":false,"owner":{"login":"slackmoehrle","id":7491758,"node_id":"MDQ6VXNlcjc0OTE3NTg=","avatar_url":"https://avatars3.githubusercontent.com/u/7491758?v=4","gravatar_id":"","url":"https://api.github.com/users/slackmoehrle","html_url":"https://github.com/slackmoehrle","followers_url":"https://api.github.com/users/slackmoehrle/followers","following_url":"https://api.github.com/users/slackmoehrle/following{/other_user}","gists_url":"https://api.github.com/users/slackmoehrle/gists{/gist_id}","starred_url":"https://api.github.com/users/slackmoehrle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackmoehrle/subscriptions","organizations_url":"https://api.github.com/users/slackmoehrle/orgs","repos_url":"https://api.github.com/users/slackmoehrle/repos","events_url":"https://api.github.com/users/slackmoehrle/events{/privacy}","received_events_url":"https://api.github.com/users/slackmoehrle/received_events","type":"User","site_admin":false},"html_url":"https://github.com/slackmoehrle/creator-docs","description":"Manual docs content for Cocos Creator","fork":true,"url":"https://api.github.com/repos/slackmoehrle/creator-docs","forks_url":"https://api.github.com/repos/slackmoehrle/creator-docs/forks","keys_url":"https://api.github.com/repos/slackmoehrle/creator-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slackmoehrle/creator-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slackmoehrle/creator-docs/teams","hooks_url":"https://api.github.com/repos/slackmoehrle/creator-docs/hooks","issue_events_url":"https://api.github.com/repos/slackmoehrle/creator-docs/issues/events{/number}","events_url":"https://api.github.com/repos/slackmoehrle/creator-docs/events","assignees_url":"https://api.github.com/repos/slackmoehrle/creator-docs/assignees{/user}","branches_url":"https://api.github.com/repos/slackmoehrle/creator-docs/branches{/branch}","tags_url":"https://api.github.com/repos/slackmoehrle/creator-docs/tags","blobs_url":"https://api.github.com/repos/slackmoehrle/creator-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slackmoehrle/creator-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slackmoehrle/creator-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/slackmoehrle/creator-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slackmoehrle/creator-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/slackmoehrle/creator-docs/languages","stargazers_url":"https://api.github.com/repos/slackmoehrle/creator-docs/stargazers","contributors_url":"https://api.github.com/repos/slackmoehrle/creator-docs/contributors","subscribers_url":"https://api.github.com/repos/slackmoehrle/creator-docs/subscribers","subscription_url":"https://api.github.com/repos/slackmoehrle/creator-docs/subscription","commits_url":"https://api.github.com/repos/slackmoehrle/creator-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/slackmoehrle/creator-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/slackmoehrle/creator-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/slackmoehrle/creator-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/slackmoehrle/creator-docs/contents/{+path}","compare_url":"https://api.github.com/repos/slackmoehrle/creator-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slackmoehrle/creator-docs/merges","archive_url":"https://api.github.com/repos/slackmoehrle/creator-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slackmoehrle/creator-docs/downloads","issues_url":"https://api.github.com/repos/slackmoehrle/creator-docs/issues{/number}","pulls_url":"https://api.github.com/repos/slackmoehrle/creator-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/slackmoehrle/creator-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/slackmoehrle/creator-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slackmoehrle/creator-docs/labels{/name}","releases_url":"https://api.github.com/repos/slackmoehrle/creator-docs/releases{/id}","deployments_url":"https://api.github.com/repos/slackmoehrle/creator-docs/deployments","created_at":"2018-09-24T18:36:35Z","updated_at":"2018-10-15T20:03:59Z","pushed_at":"2018-11-20T20:53:02Z","git_url":"git://github.com/slackmoehrle/creator-docs.git","ssh_url":"git@github.com:slackmoehrle/creator-docs.git","clone_url":"https://github.com/slackmoehrle/creator-docs.git","svn_url":"https://github.com/slackmoehrle/creator-docs","homepage":null,"size":74696,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cocos-creator:master","ref":"master","sha":"186f2a733821d2a721d4313c2bdc704d6792102b","user":{"login":"cocos-creator","id":6937061,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5MzcwNjE=","avatar_url":"https://avatars3.githubusercontent.com/u/6937061?v=4","gravatar_id":"","url":"https://api.github.com/users/cocos-creator","html_url":"https://github.com/cocos-creator","followers_url":"https://api.github.com/users/cocos-creator/followers","following_url":"https://api.github.com/users/cocos-creator/following{/other_user}","gists_url":"https://api.github.com/users/cocos-creator/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos-creator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos-creator/subscriptions","organizations_url":"https://api.github.com/users/cocos-creator/orgs","repos_url":"https://api.github.com/users/cocos-creator/repos","events_url":"https://api.github.com/users/cocos-creator/events{/privacy}","received_events_url":"https://api.github.com/users/cocos-creator/received_events","type":"Organization","site_admin":false},"repo":{"id":69218236,"node_id":"MDEwOlJlcG9zaXRvcnk2OTIxODIzNg==","name":"creator-docs","full_name":"cocos-creator/creator-docs","private":false,"owner":{"login":"cocos-creator","id":6937061,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5MzcwNjE=","avatar_url":"https://avatars3.githubusercontent.com/u/6937061?v=4","gravatar_id":"","url":"https://api.github.com/users/cocos-creator","html_url":"https://github.com/cocos-creator","followers_url":"https://api.github.com/users/cocos-creator/followers","following_url":"https://api.github.com/users/cocos-creator/following{/other_user}","gists_url":"https://api.github.com/users/cocos-creator/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos-creator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos-creator/subscriptions","organizations_url":"https://api.github.com/users/cocos-creator/orgs","repos_url":"https://api.github.com/users/cocos-creator/repos","events_url":"https://api.github.com/users/cocos-creator/events{/privacy}","received_events_url":"https://api.github.com/users/cocos-creator/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cocos-creator/creator-docs","description":"Manual docs content for Cocos Creator","fork":false,"url":"https://api.github.com/repos/cocos-creator/creator-docs","forks_url":"https://api.github.com/repos/cocos-creator/creator-docs/forks","keys_url":"https://api.github.com/repos/cocos-creator/creator-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cocos-creator/creator-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cocos-creator/creator-docs/teams","hooks_url":"https://api.github.com/repos/cocos-creator/creator-docs/hooks","issue_events_url":"https://api.github.com/repos/cocos-creator/creator-docs/issues/events{/number}","events_url":"https://api.github.com/repos/cocos-creator/creator-docs/events","assignees_url":"https://api.github.com/repos/cocos-creator/creator-docs/assignees{/user}","branches_url":"https://api.github.com/repos/cocos-creator/creator-docs/branches{/branch}","tags_url":"https://api.github.com/repos/cocos-creator/creator-docs/tags","blobs_url":"https://api.github.com/repos/cocos-creator/creator-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cocos-creator/creator-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cocos-creator/creator-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/cocos-creator/creator-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cocos-creator/creator-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/cocos-creator/creator-docs/languages","stargazers_url":"https://api.github.com/repos/cocos-creator/creator-docs/stargazers","contributors_url":"https://api.github.com/repos/cocos-creator/creator-docs/contributors","subscribers_url":"https://api.github.com/repos/cocos-creator/creator-docs/subscribers","subscription_url":"https://api.github.com/repos/cocos-creator/creator-docs/subscription","commits_url":"https://api.github.com/repos/cocos-creator/creator-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/cocos-creator/creator-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/cocos-creator/creator-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/cocos-creator/creator-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/cocos-creator/creator-docs/contents/{+path}","compare_url":"https://api.github.com/repos/cocos-creator/creator-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cocos-creator/creator-docs/merges","archive_url":"https://api.github.com/repos/cocos-creator/creator-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cocos-creator/creator-docs/downloads","issues_url":"https://api.github.com/repos/cocos-creator/creator-docs/issues{/number}","pulls_url":"https://api.github.com/repos/cocos-creator/creator-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/cocos-creator/creator-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/cocos-creator/creator-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cocos-creator/creator-docs/labels{/name}","releases_url":"https://api.github.com/repos/cocos-creator/creator-docs/releases{/id}","deployments_url":"https://api.github.com/repos/cocos-creator/creator-docs/deployments","created_at":"2016-09-26T06:06:42Z","updated_at":"2018-11-20T06:57:42Z","pushed_at":"2018-11-21T02:42:51Z","git_url":"git://github.com/cocos-creator/creator-docs.git","ssh_url":"git@github.com:cocos-creator/creator-docs.git","clone_url":"https://github.com/cocos-creator/creator-docs.git","svn_url":"https://github.com/cocos-creator/creator-docs","homepage":null,"size":76157,"stargazers_count":116,"watchers_count":116,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":114,"mirror_url":null,"archived":false,"open_issues_count":16,"license":null,"forks":114,"open_issues":16,"watchers":116,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cocos-creator/creator-docs/pulls/702"},"html":{"href":"https://github.com/cocos-creator/creator-docs/pull/702"},"issue":{"href":"https://api.github.com/repos/cocos-creator/creator-docs/issues/702"},"comments":{"href":"https://api.github.com/repos/cocos-creator/creator-docs/issues/702/comments"},"review_comments":{"href":"https://api.github.com/repos/cocos-creator/creator-docs/pulls/702/comments"},"review_comment":{"href":"https://api.github.com/repos/cocos-creator/creator-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cocos-creator/creator-docs/pulls/702/commits"},"statuses":{"href":"https://api.github.com/repos/cocos-creator/creator-docs/statuses/4668f6ab6cbed960e116c9b57295c2045e3a06ae"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"xunyi0"}}