{"action":"created","comment":{"url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls/comments/39077245","id":39077245,"diff_hunk":"@@ -294,6 +296,148 @@ module.exports = {\n >API взаимодействия с ядром `i18n` описан в разделе [API `i18n`](#api-i18n).\n Результатом являются `lang.<lang>.js`-файлы, содержащие строки переводов, соответствующие запрошенным ключам.\n \n+### Сборка только необходимых переводов\n+\n+Если в браузере используется лишь часть переводов (например, когда остальные переводы применяются при шаблонизации в `Node.js`), то для экономии можно собрать только их.\n+\n+Для этого в [файлах зависимостей](https://ru.bem.info/technology/deps/about/) потребуется указать дополнительную информацию о том, какие технологии используют переводы.\n+\n+* При использовании в JavaScript-коде блоков в `deps.js`-файл необходимо добавить зависимость для `js`-технологии.\n+\n+  ```js\n+  {\n+      tech: 'js'\n+      shouldDeps: {\n+          tech: 'i18n'\n+      }\n+  }\n+  ```\n+\n+  Такая запись означает, что `js` технология блока зависит от технологии `i18n` этого же блока. Иначе говоря, в JavaScript-коде, преднозначенном для работы в браузере используются переводы.\n+\n+  **Важно:** если в браузер должны попасть все переводы, без исключения, то такая запись не обязательна.\n+\n+* При использовании в коде шаблонов `deps.js`-файл необходимо добавить зависимость для `bemhtml`- или `bh`-технологии.\n+\n+  ```js\n+  {\n+      tech: 'bemhtml'\n+      shouldDeps: {\n+          tech: 'i18n'\n+      }\n+  }\n+  ```\n+\n+  **Важно:** если в собранные шаблоны должны попасть все переводы, без исключения, то такая запись не обязательна.","path":"README.md","position":52,"original_position":52,"commit_id":"99251ec21e8179f51fad1c88f89cfc5420787ce7","original_commit_id":"99251ec21e8179f51fad1c88f89cfc5420787ce7","user":{"login":"tadatuta","id":475746,"avatar_url":"https://avatars.githubusercontent.com/u/475746?v=3","gravatar_id":"","url":"https://api.github.com/users/tadatuta","html_url":"https://github.com/tadatuta","followers_url":"https://api.github.com/users/tadatuta/followers","following_url":"https://api.github.com/users/tadatuta/following{/other_user}","gists_url":"https://api.github.com/users/tadatuta/gists{/gist_id}","starred_url":"https://api.github.com/users/tadatuta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tadatuta/subscriptions","organizations_url":"https://api.github.com/users/tadatuta/orgs","repos_url":"https://api.github.com/users/tadatuta/repos","events_url":"https://api.github.com/users/tadatuta/events{/privacy}","received_events_url":"https://api.github.com/users/tadatuta/received_events","type":"User","site_admin":false},"body":"лишняя запятая перед «без исключения»","created_at":"2015-09-09T18:16:39Z","updated_at":"2015-09-09T18:16:39Z","html_url":"https://github.com/enb-bem/enb-bem-i18n/pull/72#discussion_r39077245","pull_request_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls/comments/39077245"},"html":{"href":"https://github.com/enb-bem/enb-bem-i18n/pull/72#discussion_r39077245"},"pull_request":{"href":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls/72","id":44574888,"html_url":"https://github.com/enb-bem/enb-bem-i18n/pull/72","diff_url":"https://github.com/enb-bem/enb-bem-i18n/pull/72.diff","patch_url":"https://github.com/enb-bem/enb-bem-i18n/pull/72.patch","issue_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/issues/72","number":72,"state":"open","locked":false,"title":"Added docs about deps-by-tech","user":{"login":"blond","id":2225579,"avatar_url":"https://avatars.githubusercontent.com/u/2225579?v=3","gravatar_id":"","url":"https://api.github.com/users/blond","html_url":"https://github.com/blond","followers_url":"https://api.github.com/users/blond/followers","following_url":"https://api.github.com/users/blond/following{/other_user}","gists_url":"https://api.github.com/users/blond/gists{/gist_id}","starred_url":"https://api.github.com/users/blond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blond/subscriptions","organizations_url":"https://api.github.com/users/blond/orgs","repos_url":"https://api.github.com/users/blond/repos","events_url":"https://api.github.com/users/blond/events{/privacy}","received_events_url":"https://api.github.com/users/blond/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-09T16:58:12Z","updated_at":"2015-09-09T18:16:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4887e33c8c267d4abfd6c37182c30149774ee5d1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls/72/commits","review_comments_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls/72/comments","review_comment_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls/comments{/number}","comments_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/issues/72/comments","statuses_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/statuses/99251ec21e8179f51fad1c88f89cfc5420787ce7","head":{"label":"enb-bem:docs/deps-by-tech","ref":"docs/deps-by-tech","sha":"99251ec21e8179f51fad1c88f89cfc5420787ce7","user":{"login":"enb-bem","id":8117111,"avatar_url":"https://avatars.githubusercontent.com/u/8117111?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-bem","html_url":"https://github.com/enb-bem","followers_url":"https://api.github.com/users/enb-bem/followers","following_url":"https://api.github.com/users/enb-bem/following{/other_user}","gists_url":"https://api.github.com/users/enb-bem/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-bem/subscriptions","organizations_url":"https://api.github.com/users/enb-bem/orgs","repos_url":"https://api.github.com/users/enb-bem/repos","events_url":"https://api.github.com/users/enb-bem/events{/privacy}","received_events_url":"https://api.github.com/users/enb-bem/received_events","type":"Organization","site_admin":false},"repo":{"id":20487132,"name":"enb-bem-i18n","full_name":"enb-bem/enb-bem-i18n","owner":{"login":"enb-bem","id":8117111,"avatar_url":"https://avatars.githubusercontent.com/u/8117111?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-bem","html_url":"https://github.com/enb-bem","followers_url":"https://api.github.com/users/enb-bem/followers","following_url":"https://api.github.com/users/enb-bem/following{/other_user}","gists_url":"https://api.github.com/users/enb-bem/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-bem/subscriptions","organizations_url":"https://api.github.com/users/enb-bem/orgs","repos_url":"https://api.github.com/users/enb-bem/repos","events_url":"https://api.github.com/users/enb-bem/events{/privacy}","received_events_url":"https://api.github.com/users/enb-bem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enb-bem/enb-bem-i18n","description":"BEM internationalization for ENB","fork":false,"url":"https://api.github.com/repos/enb-bem/enb-bem-i18n","forks_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/forks","keys_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/teams","hooks_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/hooks","issue_events_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/issues/events{/number}","events_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/events","assignees_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/assignees{/user}","branches_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/branches{/branch}","tags_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/tags","blobs_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/git/refs{/sha}","trees_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/statuses/{sha}","languages_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/languages","stargazers_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/stargazers","contributors_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/contributors","subscribers_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/subscribers","subscription_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/subscription","commits_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/commits{/sha}","git_commits_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/git/commits{/sha}","comments_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/comments{/number}","issue_comment_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/issues/comments{/number}","contents_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/contents/{+path}","compare_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/merges","archive_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/downloads","issues_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/issues{/number}","pulls_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls{/number}","milestones_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/milestones{/number}","notifications_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/labels{/name}","releases_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/releases{/id}","created_at":"2014-06-04T14:35:56Z","updated_at":"2015-09-06T18:45:28Z","pushed_at":"2015-09-09T17:31:26Z","git_url":"git://github.com/enb-bem/enb-bem-i18n.git","ssh_url":"git@github.com:enb-bem/enb-bem-i18n.git","clone_url":"https://github.com/enb-bem/enb-bem-i18n.git","svn_url":"https://github.com/enb-bem/enb-bem-i18n","homepage":"","size":741,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":9,"default_branch":"master"}},"base":{"label":"enb-bem:master","ref":"master","sha":"4d693a87ccd167b5de838c068898fdbba64fb39a","user":{"login":"enb-bem","id":8117111,"avatar_url":"https://avatars.githubusercontent.com/u/8117111?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-bem","html_url":"https://github.com/enb-bem","followers_url":"https://api.github.com/users/enb-bem/followers","following_url":"https://api.github.com/users/enb-bem/following{/other_user}","gists_url":"https://api.github.com/users/enb-bem/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-bem/subscriptions","organizations_url":"https://api.github.com/users/enb-bem/orgs","repos_url":"https://api.github.com/users/enb-bem/repos","events_url":"https://api.github.com/users/enb-bem/events{/privacy}","received_events_url":"https://api.github.com/users/enb-bem/received_events","type":"Organization","site_admin":false},"repo":{"id":20487132,"name":"enb-bem-i18n","full_name":"enb-bem/enb-bem-i18n","owner":{"login":"enb-bem","id":8117111,"avatar_url":"https://avatars.githubusercontent.com/u/8117111?v=3","gravatar_id":"","url":"https://api.github.com/users/enb-bem","html_url":"https://github.com/enb-bem","followers_url":"https://api.github.com/users/enb-bem/followers","following_url":"https://api.github.com/users/enb-bem/following{/other_user}","gists_url":"https://api.github.com/users/enb-bem/gists{/gist_id}","starred_url":"https://api.github.com/users/enb-bem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enb-bem/subscriptions","organizations_url":"https://api.github.com/users/enb-bem/orgs","repos_url":"https://api.github.com/users/enb-bem/repos","events_url":"https://api.github.com/users/enb-bem/events{/privacy}","received_events_url":"https://api.github.com/users/enb-bem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enb-bem/enb-bem-i18n","description":"BEM internationalization for ENB","fork":false,"url":"https://api.github.com/repos/enb-bem/enb-bem-i18n","forks_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/forks","keys_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/teams","hooks_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/hooks","issue_events_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/issues/events{/number}","events_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/events","assignees_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/assignees{/user}","branches_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/branches{/branch}","tags_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/tags","blobs_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/git/refs{/sha}","trees_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/statuses/{sha}","languages_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/languages","stargazers_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/stargazers","contributors_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/contributors","subscribers_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/subscribers","subscription_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/subscription","commits_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/commits{/sha}","git_commits_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/git/commits{/sha}","comments_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/comments{/number}","issue_comment_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/issues/comments{/number}","contents_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/contents/{+path}","compare_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/merges","archive_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/downloads","issues_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/issues{/number}","pulls_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls{/number}","milestones_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/milestones{/number}","notifications_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/labels{/name}","releases_url":"https://api.github.com/repos/enb-bem/enb-bem-i18n/releases{/id}","created_at":"2014-06-04T14:35:56Z","updated_at":"2015-09-06T18:45:28Z","pushed_at":"2015-09-09T17:31:26Z","git_url":"git://github.com/enb-bem/enb-bem-i18n.git","ssh_url":"git@github.com:enb-bem/enb-bem-i18n.git","clone_url":"https://github.com/enb-bem/enb-bem-i18n.git","svn_url":"https://github.com/enb-bem/enb-bem-i18n","homepage":"","size":741,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls/72"},"html":{"href":"https://github.com/enb-bem/enb-bem-i18n/pull/72"},"issue":{"href":"https://api.github.com/repos/enb-bem/enb-bem-i18n/issues/72"},"comments":{"href":"https://api.github.com/repos/enb-bem/enb-bem-i18n/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/enb-bem/enb-bem-i18n/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/enb-bem/enb-bem-i18n/statuses/99251ec21e8179f51fad1c88f89cfc5420787ce7"}}}}