{"action":"created","comment":{"url":"https://api.github.com/repos/vuejs-es/vuejs.org/pulls/comments/172394413","pull_request_review_id":101401103,"id":172394413,"diff_hunk":"@@ -4,78 +4,79 @@ type: guide\n order: 304\n ---\n \n-## Writing a Plugin\n+## Escribiendo un Plugin\n \n-Plugins usually add global-level functionality to Vue. There is no strictly defined scope for a plugin - there are typically several types of plugins you can write:\n+Los Plugins usualmente añaden funcionalidades de nivel global a Vue. No hay un alcance estrictamente definido para un Plugin: normalmente hay varios tipos de Plugins que puede escribir:\n \n-1. Add some global methods or properties. e.g. [vue-custom-element](https://github.com/karol-f/vue-custom-element)\n+1. Agregar algunos métodos o propiedades globales. Por ejemplo [vue-custom-element](https://github.com/karol-f/vue-custom-element)\n \n-2. Add one or more global assets: directives/filters/transitions etc. e.g. [vue-touch](https://github.com/vuejs/vue-touch)\n+2. Agregar uno o más recursos globales: directivas / filtros / transiciones, etc. Por ejemplo [vue-touch](https://github.com/vuejs/vue-touch)\n \n-3. Add some component options by global mixin. e.g. [vue-router](https://github.com/vuejs/vue-router)\n+3. Agregar algunas opciones de componentes por mixin global. Por Ejemplo [vue-router](https://github.com/vuejs/vue-router)\n \n-4. Add some Vue instance methods by attaching them to Vue.prototype.\n+4. Agregar algunos métodos de instancia adjuntándolos a Vue.prototype.\n \n-5. A library that provides an API of its own, while at the same time injecting some combination of the above. e.g. [vue-router](https://github.com/vuejs/vue-router)\n+5. Una biblioteca que proporcione una API propia, mientras que al mismo tiempo introduce una combinación de las anteriores. Por Ejemplo [vue-router](https://github.com/vuejs/vue-router)\n+\n+Un Plugin Vue.js debería exponer un método `instalar` (Método de instalación). Se llamará al método con el constructor `Vue` como primer argumento, junto con las posibles opciones:\n \n-A Vue.js plugin should expose an `install` method. The method will be called with the `Vue` constructor as the first argument, along with possible options:\n \n ``` js\n-MyPlugin.install = function (Vue, options) {\n-  // 1. add global method or property\n-  Vue.myGlobalMethod = function () {\n+MyPlugin.install = función (opciones de Vue) {\n+  // 1. agregar método global o de propiedad\n+  Vue.myGlobalMethod = función () {\n     // something logic ...\n   }\n \n-  // 2. add a global asset\n+  // 2. agregar un activo global\n   Vue.directive('my-directive', {\n-    bind (el, binding, vnode, oldVnode) {\n-      // something logic ...\n+    enlazar (el, binding, vnode, oldVnode) {\n+      // algo lógico ...\n     }\n     ...\n   })\n \n-  // 3. inject some component options\n+  // 3. inyectar algunas opciones de componentes","path":"src/v2/guide/plugins.md","position":51,"original_position":51,"commit_id":"3c778ffbc9f5f77a9322fbb248857933981992cd","original_commit_id":"3c778ffbc9f5f77a9322fbb248857933981992cd","user":{"login":"miljan-aleksic","id":513275,"avatar_url":"https://avatars2.githubusercontent.com/u/513275?v=4","gravatar_id":"","url":"https://api.github.com/users/miljan-aleksic","html_url":"https://github.com/miljan-aleksic","followers_url":"https://api.github.com/users/miljan-aleksic/followers","following_url":"https://api.github.com/users/miljan-aleksic/following{/other_user}","gists_url":"https://api.github.com/users/miljan-aleksic/gists{/gist_id}","starred_url":"https://api.github.com/users/miljan-aleksic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miljan-aleksic/subscriptions","organizations_url":"https://api.github.com/users/miljan-aleksic/orgs","repos_url":"https://api.github.com/users/miljan-aleksic/repos","events_url":"https://api.github.com/users/miljan-aleksic/events{/privacy}","received_events_url":"https://api.github.com/users/miljan-aleksic/received_events","type":"User","site_admin":false},"body":"Respetemos los plurales/singulares originales -  `inyectar algunas opciones de componente`","created_at":"2018-03-06T02:38:01Z","updated_at":"2018-03-06T02:48:18Z","html_url":"https://github.com/vuejs-es/vuejs.org/pull/35#discussion_r172394413","pull_request_url":"https://api.github.com/repos/vuejs-es/vuejs.org/pulls/35","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/vuejs-es/vuejs.org/pulls/comments/172394413"},"html":{"href":"https://github.com/vuejs-es/vuejs.org/pull/35#discussion_r172394413"},"pull_request":{"href":"https://api.github.com/repos/vuejs-es/vuejs.org/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/vuejs-es/vuejs.org/pulls/35","id":172679405,"html_url":"https://github.com/vuejs-es/vuejs.org/pull/35","diff_url":"https://github.com/vuejs-es/vuejs.org/pull/35.diff","patch_url":"https://github.com/vuejs-es/vuejs.org/pull/35.patch","issue_url":"https://api.github.com/repos/vuejs-es/vuejs.org/issues/35","number":35,"state":"open","locked":false,"title":"Translation to Spanish [#1] 594 Words","user":{"login":"Santu41","id":36022789,"avatar_url":"https://avatars2.githubusercontent.com/u/36022789?v=4","gravatar_id":"","url":"https://api.github.com/users/Santu41","html_url":"https://github.com/Santu41","followers_url":"https://api.github.com/users/Santu41/followers","following_url":"https://api.github.com/users/Santu41/following{/other_user}","gists_url":"https://api.github.com/users/Santu41/gists{/gist_id}","starred_url":"https://api.github.com/users/Santu41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Santu41/subscriptions","organizations_url":"https://api.github.com/users/Santu41/orgs","repos_url":"https://api.github.com/users/Santu41/repos","events_url":"https://api.github.com/users/Santu41/events{/privacy}","received_events_url":"https://api.github.com/users/Santu41/received_events","type":"User","site_admin":false},"body":"Cerré el antiguo pull request para poder poner las dos columnas juntas dentro de uno. Ambos están traducidos completamente al español y esperando corrección! saludos.. :100: ","created_at":"2018-03-03T18:02:29Z","updated_at":"2018-03-06T02:48:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a1c103d4841aa96e9ad59cc45899ca9bc899270","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vuejs-es/vuejs.org/pulls/35/commits","review_comments_url":"https://api.github.com/repos/vuejs-es/vuejs.org/pulls/35/comments","review_comment_url":"https://api.github.com/repos/vuejs-es/vuejs.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vuejs-es/vuejs.org/issues/35/comments","statuses_url":"https://api.github.com/repos/vuejs-es/vuejs.org/statuses/3c778ffbc9f5f77a9322fbb248857933981992cd","head":{"label":"Santu41:master","ref":"master","sha":"3c778ffbc9f5f77a9322fbb248857933981992cd","user":{"login":"Santu41","id":36022789,"avatar_url":"https://avatars2.githubusercontent.com/u/36022789?v=4","gravatar_id":"","url":"https://api.github.com/users/Santu41","html_url":"https://github.com/Santu41","followers_url":"https://api.github.com/users/Santu41/followers","following_url":"https://api.github.com/users/Santu41/following{/other_user}","gists_url":"https://api.github.com/users/Santu41/gists{/gist_id}","starred_url":"https://api.github.com/users/Santu41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Santu41/subscriptions","organizations_url":"https://api.github.com/users/Santu41/orgs","repos_url":"https://api.github.com/users/Santu41/repos","events_url":"https://api.github.com/users/Santu41/events{/privacy}","received_events_url":"https://api.github.com/users/Santu41/received_events","type":"User","site_admin":false},"repo":{"id":123694261,"name":"vuejs.org","full_name":"Santu41/vuejs.org","owner":{"login":"Santu41","id":36022789,"avatar_url":"https://avatars2.githubusercontent.com/u/36022789?v=4","gravatar_id":"","url":"https://api.github.com/users/Santu41","html_url":"https://github.com/Santu41","followers_url":"https://api.github.com/users/Santu41/followers","following_url":"https://api.github.com/users/Santu41/following{/other_user}","gists_url":"https://api.github.com/users/Santu41/gists{/gist_id}","starred_url":"https://api.github.com/users/Santu41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Santu41/subscriptions","organizations_url":"https://api.github.com/users/Santu41/orgs","repos_url":"https://api.github.com/users/Santu41/repos","events_url":"https://api.github.com/users/Santu41/events{/privacy}","received_events_url":"https://api.github.com/users/Santu41/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Santu41/vuejs.org","description":"The vuejs.org for Spanish 🇪🇸","fork":true,"url":"https://api.github.com/repos/Santu41/vuejs.org","forks_url":"https://api.github.com/repos/Santu41/vuejs.org/forks","keys_url":"https://api.github.com/repos/Santu41/vuejs.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Santu41/vuejs.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Santu41/vuejs.org/teams","hooks_url":"https://api.github.com/repos/Santu41/vuejs.org/hooks","issue_events_url":"https://api.github.com/repos/Santu41/vuejs.org/issues/events{/number}","events_url":"https://api.github.com/repos/Santu41/vuejs.org/events","assignees_url":"https://api.github.com/repos/Santu41/vuejs.org/assignees{/user}","branches_url":"https://api.github.com/repos/Santu41/vuejs.org/branches{/branch}","tags_url":"https://api.github.com/repos/Santu41/vuejs.org/tags","blobs_url":"https://api.github.com/repos/Santu41/vuejs.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Santu41/vuejs.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Santu41/vuejs.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/Santu41/vuejs.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Santu41/vuejs.org/statuses/{sha}","languages_url":"https://api.github.com/repos/Santu41/vuejs.org/languages","stargazers_url":"https://api.github.com/repos/Santu41/vuejs.org/stargazers","contributors_url":"https://api.github.com/repos/Santu41/vuejs.org/contributors","subscribers_url":"https://api.github.com/repos/Santu41/vuejs.org/subscribers","subscription_url":"https://api.github.com/repos/Santu41/vuejs.org/subscription","commits_url":"https://api.github.com/repos/Santu41/vuejs.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/Santu41/vuejs.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/Santu41/vuejs.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/Santu41/vuejs.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/Santu41/vuejs.org/contents/{+path}","compare_url":"https://api.github.com/repos/Santu41/vuejs.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Santu41/vuejs.org/merges","archive_url":"https://api.github.com/repos/Santu41/vuejs.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Santu41/vuejs.org/downloads","issues_url":"https://api.github.com/repos/Santu41/vuejs.org/issues{/number}","pulls_url":"https://api.github.com/repos/Santu41/vuejs.org/pulls{/number}","milestones_url":"https://api.github.com/repos/Santu41/vuejs.org/milestones{/number}","notifications_url":"https://api.github.com/repos/Santu41/vuejs.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Santu41/vuejs.org/labels{/name}","releases_url":"https://api.github.com/repos/Santu41/vuejs.org/releases{/id}","deployments_url":"https://api.github.com/repos/Santu41/vuejs.org/deployments","created_at":"2018-03-03T13:26:24Z","updated_at":"2018-03-03T13:26:26Z","pushed_at":"2018-03-05T18:47:19Z","git_url":"git://github.com/Santu41/vuejs.org.git","ssh_url":"git@github.com:Santu41/vuejs.org.git","clone_url":"https://github.com/Santu41/vuejs.org.git","svn_url":"https://github.com/Santu41/vuejs.org","homepage":"http://vuejs.org","size":24066,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"vuejs-es:master","ref":"master","sha":"727010bfb3f3bb620fd369ea83bee30f642953ec","user":{"login":"vuejs-es","id":22260471,"avatar_url":"https://avatars2.githubusercontent.com/u/22260471?v=4","gravatar_id":"","url":"https://api.github.com/users/vuejs-es","html_url":"https://github.com/vuejs-es","followers_url":"https://api.github.com/users/vuejs-es/followers","following_url":"https://api.github.com/users/vuejs-es/following{/other_user}","gists_url":"https://api.github.com/users/vuejs-es/gists{/gist_id}","starred_url":"https://api.github.com/users/vuejs-es/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuejs-es/subscriptions","organizations_url":"https://api.github.com/users/vuejs-es/orgs","repos_url":"https://api.github.com/users/vuejs-es/repos","events_url":"https://api.github.com/users/vuejs-es/events{/privacy}","received_events_url":"https://api.github.com/users/vuejs-es/received_events","type":"Organization","site_admin":false},"repo":{"id":74631888,"name":"vuejs.org","full_name":"vuejs-es/vuejs.org","owner":{"login":"vuejs-es","id":22260471,"avatar_url":"https://avatars2.githubusercontent.com/u/22260471?v=4","gravatar_id":"","url":"https://api.github.com/users/vuejs-es","html_url":"https://github.com/vuejs-es","followers_url":"https://api.github.com/users/vuejs-es/followers","following_url":"https://api.github.com/users/vuejs-es/following{/other_user}","gists_url":"https://api.github.com/users/vuejs-es/gists{/gist_id}","starred_url":"https://api.github.com/users/vuejs-es/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuejs-es/subscriptions","organizations_url":"https://api.github.com/users/vuejs-es/orgs","repos_url":"https://api.github.com/users/vuejs-es/repos","events_url":"https://api.github.com/users/vuejs-es/events{/privacy}","received_events_url":"https://api.github.com/users/vuejs-es/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vuejs-es/vuejs.org","description":"The vuejs.org for Spanish 🇪🇸","fork":true,"url":"https://api.github.com/repos/vuejs-es/vuejs.org","forks_url":"https://api.github.com/repos/vuejs-es/vuejs.org/forks","keys_url":"https://api.github.com/repos/vuejs-es/vuejs.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vuejs-es/vuejs.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vuejs-es/vuejs.org/teams","hooks_url":"https://api.github.com/repos/vuejs-es/vuejs.org/hooks","issue_events_url":"https://api.github.com/repos/vuejs-es/vuejs.org/issues/events{/number}","events_url":"https://api.github.com/repos/vuejs-es/vuejs.org/events","assignees_url":"https://api.github.com/repos/vuejs-es/vuejs.org/assignees{/user}","branches_url":"https://api.github.com/repos/vuejs-es/vuejs.org/branches{/branch}","tags_url":"https://api.github.com/repos/vuejs-es/vuejs.org/tags","blobs_url":"https://api.github.com/repos/vuejs-es/vuejs.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vuejs-es/vuejs.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vuejs-es/vuejs.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/vuejs-es/vuejs.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vuejs-es/vuejs.org/statuses/{sha}","languages_url":"https://api.github.com/repos/vuejs-es/vuejs.org/languages","stargazers_url":"https://api.github.com/repos/vuejs-es/vuejs.org/stargazers","contributors_url":"https://api.github.com/repos/vuejs-es/vuejs.org/contributors","subscribers_url":"https://api.github.com/repos/vuejs-es/vuejs.org/subscribers","subscription_url":"https://api.github.com/repos/vuejs-es/vuejs.org/subscription","commits_url":"https://api.github.com/repos/vuejs-es/vuejs.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/vuejs-es/vuejs.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/vuejs-es/vuejs.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/vuejs-es/vuejs.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/vuejs-es/vuejs.org/contents/{+path}","compare_url":"https://api.github.com/repos/vuejs-es/vuejs.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vuejs-es/vuejs.org/merges","archive_url":"https://api.github.com/repos/vuejs-es/vuejs.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vuejs-es/vuejs.org/downloads","issues_url":"https://api.github.com/repos/vuejs-es/vuejs.org/issues{/number}","pulls_url":"https://api.github.com/repos/vuejs-es/vuejs.org/pulls{/number}","milestones_url":"https://api.github.com/repos/vuejs-es/vuejs.org/milestones{/number}","notifications_url":"https://api.github.com/repos/vuejs-es/vuejs.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vuejs-es/vuejs.org/labels{/name}","releases_url":"https://api.github.com/repos/vuejs-es/vuejs.org/releases{/id}","deployments_url":"https://api.github.com/repos/vuejs-es/vuejs.org/deployments","created_at":"2016-11-24T02:42:56Z","updated_at":"2018-03-02T16:28:08Z","pushed_at":"2018-03-05T18:47:19Z","git_url":"git://github.com/vuejs-es/vuejs.org.git","ssh_url":"git@github.com:vuejs-es/vuejs.org.git","clone_url":"https://github.com/vuejs-es/vuejs.org.git","svn_url":"https://github.com/vuejs-es/vuejs.org","homepage":"http://vuejs.org","size":24023,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":18,"open_issues":5,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vuejs-es/vuejs.org/pulls/35"},"html":{"href":"https://github.com/vuejs-es/vuejs.org/pull/35"},"issue":{"href":"https://api.github.com/repos/vuejs-es/vuejs.org/issues/35"},"comments":{"href":"https://api.github.com/repos/vuejs-es/vuejs.org/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/vuejs-es/vuejs.org/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/vuejs-es/vuejs.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vuejs-es/vuejs.org/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/vuejs-es/vuejs.org/statuses/3c778ffbc9f5f77a9322fbb248857933981992cd"}},"author_association":"NONE"}}
{"actor":{"display_login":"miljan-aleksic"}}