From e468d5af19319612dd87ac8821d01dbb48dca32c Mon Sep 17 00:00:00 2001 From: Adeonir Kohl Date: Fri, 28 Feb 2020 14:28:24 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Tradu=C3=A7=C3=A3o=20using-a-plugin-in-your?= =?UTF-8?q?-site?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/using-a-plugin-in-your-site.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/docs/using-a-plugin-in-your-site.md b/docs/docs/using-a-plugin-in-your-site.md index 75f39191b..aef096959 100644 --- a/docs/docs/using-a-plugin-in-your-site.md +++ b/docs/docs/using-a-plugin-in-your-site.md @@ -1,18 +1,18 @@ --- -title: Using a Plugin in Your Site +title: Usando um Plugin em Seu Site --- -Gatsby plugins are Node.js packages, so you can install them like other packages in node using NPM. +Plugins do Gatsby são pacotes do Node.js, assim você pode instalar eles como qualquer outro pacote do Node usando NPM. -For example, `gatsby-transformer-json` is a package that adds support for JSON files to the Gatsby data layer. +Por exemplo, `gatsby-transformer-json` é um pacote que adiciona suporte para arquivos JSON na camada de dados do Gatsby. -To install it, in the root of your site you run: +Para instalar ele, execute na raiz do seu site: ```shell npm install --save gatsby-transformer-json ``` -Then in your site's `gatsby-config.js` you add `gatsby-transformer-json` to the plugins array like: +Então, no `gatsby-config.js` do seu site, você adiciona `gatsby-transformer-json` ao array de plugins desta forma: ```javascript:title=gatsby-config.js module.exports = { @@ -20,15 +20,15 @@ module.exports = { } ``` -Plugins can take options. For example: +Plugins podem ter opções. Por exemplo: ```javascript:title=gatsby-config.js module.exports = { plugins: [ - // Shortcut for adding plugins without options. + // Atalho para adicionar plugins sem opções. "gatsby-plugin-react-helmet", { - // Standard plugin with options example + // Exemplo padrão de plugin com opções. resolve: `gatsby-source-filesystem`, options: { path: `${__dirname}/src/data/`, @@ -37,7 +37,7 @@ module.exports = { }, { resolve: "gatsby-plugin-offline", - // Blank options, equivalent to string-only plugin + // Opções em branco, equivalentes ao plugin somente string. options: { plugins: [], }, @@ -45,7 +45,7 @@ module.exports = { { resolve: `gatsby-transformer-remark`, options: { - // plugins inside plugins + // Plugins dentro de plugins. plugins: [`gatsby-remark-smartypants`], }, }, @@ -53,4 +53,4 @@ module.exports = { } ``` -Note that plugin options will be stringified by Gatsby, so they cannot be functions. +Note que as opções do plugin serão convertidas em string pelo Gatsby, então elas não podem ser funções. From 7b9df00896fc64b65a88a505c7e9ebcbc3d82bdf Mon Sep 17 00:00:00 2001 From: Adeonir Kohl Date: Fri, 28 Feb 2020 14:33:14 -0300 Subject: [PATCH 2/2] =?UTF-8?q?Corrige=20tradu=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/using-a-plugin-in-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/using-a-plugin-in-your-site.md b/docs/docs/using-a-plugin-in-your-site.md index aef096959..a601d26a2 100644 --- a/docs/docs/using-a-plugin-in-your-site.md +++ b/docs/docs/using-a-plugin-in-your-site.md @@ -53,4 +53,4 @@ module.exports = { } ``` -Note que as opções do plugin serão convertidas em string pelo Gatsby, então elas não podem ser funções. +Observe que as opções do plugin serão convertidas em string pelo Gatsby, então elas não podem ser funções.