Skip to content

Commit 466f98f

Browse files
authored
Adding Brazilian Portuguese Intro documentation (#2307)
## Motivation for the change, related issues This pull request adds the necessary structure to translate the WordPress Playground documentation into Brazilian Portuguese, as the first step towards resolving issue #2306. ## Implementation details The `pt-BR` folder follows the structure from other languages, adding the JSON files for localization of components and the `intro.md` file as the first translation. ## Testing To run it locally: 1. Download the repository 2. Go to the terminal and run `npm install` 3. Run the command at the terminal: `npm run dev:docs -- --locale pt-BR`
1 parent 7abe33f commit 466f98f

File tree

7 files changed

+569
-1
lines changed

7 files changed

+569
-1
lines changed

packages/docs/site/docusaurus.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const config = {
3333
i18n: {
3434
defaultLocale: 'en',
3535
path: 'i18n',
36-
locales: ['en', 'es', 'fr', 'ja'],
36+
locales: ['en', 'es', 'fr', 'ja', 'pt-BR'],
3737
localeConfigs: {
3838
en: {
3939
label: 'English',
@@ -51,6 +51,10 @@ const config = {
5151
label: 'Japanese',
5252
path: 'ja',
5353
},
54+
'pt-BR': {
55+
label: 'Português (BR)',
56+
path: 'pt-BR',
57+
},
5458
},
5559
},
5660
themes: ['@docusaurus/theme-live-codeblock'],
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"title": {
3+
"message": "Blog",
4+
"description": "O título para o blog usado em SEO"
5+
},
6+
"description": {
7+
"message": "Blog",
8+
"description": "A descrição do blog usado em SEO"
9+
},
10+
"sidebar.title": {
11+
"message": "Posts recentes",
12+
"description": "Legenda para o menu lateral"
13+
}
14+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"version.label": {
3+
"message": "Próximo",
4+
"description": "O rótulo para a versão atual"
5+
},
6+
"sidebar.mainSidebar.category.Documentation": {
7+
"message": "Documentação",
8+
"description": "O rótulo para a categoria Documentação na barra lateral mainSidebar"
9+
},
10+
"sidebar.mainSidebar.category.About Playground": {
11+
"message": "Sobre o Playground",
12+
"description": "O rótulo para a categoria Sobre o Playground na barra lateral mainSidebar"
13+
},
14+
"sidebar.mainSidebar.category.Guides": {
15+
"message": "Guias",
16+
"description": "O rótulo para a categoria Guias na barra lateral mainSidebar"
17+
},
18+
"sidebar.mainSidebar.category.Contributing": {
19+
"message": "Contribuindo",
20+
"description": "O rótulo para a categoria Contribuindo na barra lateral mainSidebar"
21+
},
22+
"sidebar.blueprintsSidebar.category.Blueprints": {
23+
"message": "Blueprints",
24+
"description": "O rótulo para a categoria Blueprints na barra lateral blueprintsSidebar"
25+
},
26+
"sidebar.blueprintsSidebar.category.Tutorial": {
27+
"message": "Tutorial",
28+
"description": "O rótulo para a categoria Tutorial na barra lateral blueprintsSidebar"
29+
},
30+
"sidebar.blueprintsSidebar.category.Steps": {
31+
"message": "Passos",
32+
"description": "O rótulo para a categoria Passos na barra lateral blueprintsSidebar"
33+
},
34+
"sidebar.developersSidebar.category.Developers": {
35+
"message": "Desenvolvedores",
36+
"description": "O rótulo para a categoria Desenvolvedores na barra lateral developersSidebar"
37+
},
38+
"sidebar.developersSidebar.category.Local Development": {
39+
"message": "Desenvolvimento Local",
40+
"description": "O rótulo para a categoria Desenvolvimento Local na barra lateral developersSidebar"
41+
},
42+
"sidebar.developersSidebar.category.Playground APIs": {
43+
"message": "APIs do Playground",
44+
"description": "O rótulo para a categoria APIs do Playground na barra lateral developersSidebar"
45+
},
46+
"sidebar.developersSidebar.category.Javascript API": {
47+
"message": "API JavaScript",
48+
"description": "O rótulo para a categoria API JavaScript na barra lateral developersSidebar"
49+
},
50+
"sidebar.developersSidebar.category.Architecture": {
51+
"message": "Arquitetura",
52+
"description": "O rótulo para a categoria Arquitetura na barra lateral developersSidebar"
53+
}
54+
}
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
---
2+
title: Introdução
3+
slug: /
4+
id: introduction
5+
---
6+
7+
<!--
8+
# WordPress Playground Docs
9+
-->
10+
11+
# Documentação do WordPress Playground
12+
13+
<!--
14+
:::info **Looking for the official Playground website?**
15+
16+
WordPress Playground website moved to [wordpress.org/playground/](https://wordpress.org/playground/). The site you're at now hosts the documentation.
17+
18+
:::
19+
-->
20+
21+
:::info **Está procurando a versão web do WordPress Playground?**
22+
23+
A página oficial do WordPress Playground está disponível em [wordpress.org/playground/](https://wordpress.org/playground/). Esta página abriga a documentação do WordPress Playground.
24+
25+
:::
26+
27+
<!--
28+
👋 Hi! Welcome to WordPress Playground documentation.
29+
30+
Playground is an online tool to experiment and learn about WordPress. This site (Documentation) is where you will find all the information you need to start using Playground.
31+
-->
32+
33+
👋 Olá! Bem vindo a documentação oficial do WordPress Playground.
34+
35+
WordPress Playground é uma ferramenta online onde podes testar e aprender mais sobre o WordPress. Nesta página(Documentação) irá encontrar todas as informações necessárias para começar a trabalhar com o Playground.
36+
37+
<!--
38+
<p class="docs-hubs">The WordPress Playground documentation is distributed across four separate hubs (subsites):</p>
39+
-->
40+
<p class="docs-hubs">A documentação do WordPress Playground está dividida em quatro hubs(subsites):</p>
41+
42+
<!--
43+
- 👉 [**Documentation**](/wordpress-playground/) (you're here) – Introduction to WP Playground, starter guides and your entry point to WP Playground Docs.
44+
- [**Blueprints**](/wordpress-playground/blueprints) – Blueprints are JSON files for setting up your WordPress Playground instance. Learn about their possibilities from the Blueprints docs hub.
45+
- [**Developers**](/wordpress-playground/developers) – WordPress Playground was created as a programmable tool. Discover all the things you can do with it from your code in the Developers docs hub.
46+
- [**API Reference**](/wordpress-playground/api) – All the APIs exposed by WordPress Playground
47+
-->
48+
49+
- 👉 [**Documentação**](/) _(você está aqui)_ – Introdução a WordPress Playground, guia inicial e ponto de entrada para a documentação do WordPress Playuground.
50+
- [**Blueprints**](/blueprints) – Blueprints são arquivos JSON que permitem configurar e definir o estado de novas instâncias do WordPress Playground. Saiba mais o que é possível com Blueprints na sessão dedicada.
51+
- [**Desenvolvedores**](/developers) – WordPress Playground é uma ferramenta poderosa para desenvolvedores onde podemos criar ambiente de desenvolvimento e testes. Descubra mais o que podes fazer com o WordPress playground na sessão dedica a desenvolvedores.
52+
- [**Referência da API**](/api) – Referência de toda a API pública do WordPress Playground.
53+
54+
<!--
55+
## Navigating this documentation hub
56+
-->
57+
58+
## Navegando neste hub de documentação
59+
60+
<!--
61+
This docs hub is focused on starting with WordPress Playground and is divided into the following major sections.
62+
-->
63+
64+
Este hub de documentação foca-se em ajudá-lo a começar a trabalhar com o WordPress Playground e está organizado nas seguintes seções:
65+
66+
<!--
67+
- **[Quick Start Guide](/quick-start-guide)**: For those just starting out with WordPress Playground, this is where you can get up and running with WordPress Playground quickly to [start a new WordPress site](/wordpress-playground/quick-start-guide#start-a-new-wordpress-site) and [try a block/theme/plugin](/wordpress-playground/quick-start-guide#try-a-block-a-theme-or-a-plugin) or [test a specific WordPress/PHP version](/wordpress-playground/quick-start-guide#use-a-specific-wordpress-or-php-version).
68+
- **[Playground web instance](/web-instance)**: Learn more about the Playground instance you get at https://playground.wordpress.net/
69+
- **[About Playground](/about)**: To learn about WordPress Playground, how safe it is, what you can do with and some of its current limitations, visit this section.
70+
Discover how you can leverage WordPress Playground to [Build](./about/build), [Test](./about/test), and [Launch](./about/launch) your products.
71+
- **[Guides](/guides)**: Explore our comprehensive guides to master new skills, find step-by-step instructions, and unlock valuable insights. Dive in to learn and grow!
72+
- **[Contributing](/contributing)**: WordPress Playground is an open-source project that welcomes all contributors—from code to design, documentation to triage. Learn here how to contribute.
73+
- **[Links and resources](/resources)**: A nice compilation of useful links and resources related to WordPress Playground.
74+
-->
75+
76+
- **[Guia de início rápido](/quick-start-guide)**: Para aqueles que querem começar com o WordPress Playground, neste guia você aprenderá como colocar rapidamente no ar [um site WordPress](/quick-start-guide#start-a-new-wordpress-site) para [testar um bloco, um tema ou um plugin](/quick-start-guide#try-a-block-a-theme-or-a-plugin) ou para [testar uma versão específica do WordPress ou PHP](/quick-start-guide#use-a-specific-wordpress-or-php-version).
77+
- **[A instância do WP Playground](/web-instance)**: Aprenda os detalhes da instância pública do WP Playground que está disponível em https://playground.wordpress.net/
78+
- **[Sobre o WP Playground](/about)**: Visite esta seção para aprender sobre o WordPress Playground, o quão seguro ele é, o que você pode fazer com o Playground e algumas das suas limitações. Descubra como tirar proveito do WordPress Playground para [Construir](/about/build), [Testar](/about/test) e [Lançar](/about/launch) os seus produtos.
79+
- **[Guias](/guides/)**: Explore estes guias para aprender mais a fundo sobre alguns dos conceitos ou aplicações práticas mais populares do WordPress Playground!
80+
- **[Contribuir](/contributing/)**: O WordPress Playground é um projeto de código aberto (open-source) e todas as contribuições são bem-vindas. Você pode contribuir com o projeto ajudando com o código, com o design, com a documentação ou com a organização de tarefas. Nesta seção, você encontrará informações sobre como contribuir para o projeto.
81+
- **[Links e recursos](/resources)**: Uma compilação de links úteis e recursos relacionados com o WordPress Playground.
82+
83+
<!--
84+
## First steps
85+
86+
Whether you're a developer, a non-technical user, or a contributor, these docs will guide you as you start your learning journey:
87+
-->
88+
89+
## Primeiros passos
90+
91+
Seja você um desenvolvedor, um usuário sem conhecimentos técnicos ou alguém interessado em contribuir para o projeto, esta documentação o ajudará a dar os seus primeiros passos com o WordPress Playground.
92+
93+
<!--
94+
- [Start using WordPress Playground](/quick-start-guide) in 5 minutes (and check out the [demo site](https://playground.wordpress.net/))
95+
- [Get started for developing](/developers/build-your-first-app) with WordPress Playground
96+
- Use Playground as a zero-setup [local development environment](/developers/local-development/)
97+
- Read about the [limitations](/developers/limitations)
98+
- [WordCamp Contributor Day](/contributing/contributor-day)
99+
-->
100+
101+
- [Comece a usar o WordPress Playground](/quick-start-guide) em 5 minutos.
102+
- [Comece a desenvolver](/developers/build-your-first-app) com o WordPress Playground.
103+
- Utilize o Playground como um [ambiente de desenvolvimento local](/developers/local-development/) com configuração zero (zero-setup).
104+
- Informe-se sobre as [limitações](/developers/limitations) do WP Playground.
105+
- [WordCamp Contributor Day](/contributing/contributor-day)-
106+
107+
<!--
108+
:::tip
109+
Read [**Introduction to Playground: running WordPress in the browser**](https://developer.wordpress.org/news/2024/04/05/introduction-to-playground-running-wordpress-in-the-browser/) blog post in the [WordPress Developer Blog](https://developer.wordpress.org/news) for a great introduction to WordPress Playground
110+
:::
111+
-->
112+
113+
:::tip
114+
O artigo [**Introdução para o WordPress Playground: rodando WordPress no navegador(ENG)**](https://developer.wordpress.org/news/2024/04/05/introduction-to-playground-running-wordpress-in-the-browser/) do [Blog para Desenvolvedores do WordPress](https://developer.wordpress.org/news) é uma ótima introdução ao WordPress Playground.
115+
:::
116+
117+
<!--
118+
## Take a deep dive
119+
120+
If you're a developer or tech user, you may want to check directly the APIs available:
121+
-->
122+
123+
## Aprofunde um pouco mais
124+
125+
Se você é um desenvolvedor ou um usuário técnico, talvez queira ver diretamente as APIs do WP Playground que estão disponíveis:
126+
127+
import APIList from '@site/docs/\_fragments/\_api_list.mdx';
128+
129+
<!--
130+
- Read about [Playground APIs](/developers/apis/) and basic concepts
131+
- Review [links and resources](/resources)
132+
- Choose the right API for your app <APIList />
133+
- Dive into the [architecture](/developers/architecture) and learn how it all works
134+
-->
135+
136+
- Leia sobre [APIs do Playground](/developers/apis/) e alguns conceitos básicos.
137+
- [Links e recursos](/resources)
138+
- Escolha a API adequada para a sua aplicação <APIList />
139+
- Aprofunde-se na [arquitetura](/developers/architecture) e aprenda como o WP Playground funciona internamente.
140+
141+
<!--
142+
## Get Involved
143+
144+
WordPress Playground is an open-source project and welcomes all contributors from code to design, and from documentation to triage. Don't worry, _you don't need to know WebAssembly_ to contribute!
145+
-->
146+
147+
## Envolva-se
148+
149+
O WordPress Playground é um projeto de código aberto (open-source) e todas as contribuições são bem-vindas, desde código a design, de documentação à organização de tarefas do projeto. Não se preocupe, _você não precisa saber WebAssembly_ para contribuir para o projeto!
150+
151+
<!--
152+
- See the [Contributors Handbook](/contributing) for all the details on how you can contribute.
153+
- Join us in the `#meta-playground` channel in Slack (see the [WordPress Slack page](https://make.wordpress.org/chat/) for signup information)
154+
155+
As with all WordPress projects, we want to ensure a welcoming environment for everyone. With that in mind, all contributors are expected to follow our [Code of Conduct](https://make.wordpress.org/handbook/community-code-of-conduct/).
156+
-->
157+
158+
- Dê uma olhada no [Manual do Colaborador (Contributors Handbook)](/contributing/) para tudo o que você precisa saber para contribuir com o projeto.
159+
- Junte-se ao canal `#meta-playground` no Slack (na página do [Slack do WordPress](https://make.wordpress.org/chat/) você encontrará as informações sobre como acessar o Slack do WordPress)
160+
161+
Como em todos os projetos do WordPress, queremos garantir um ambiente seguro e acolhedor para todos. Com isso em mente, espera-se que todos os contribuidores cumpram o nosso [código de conduta](https://make.wordpress.org/handbook/community-code-of-conduct/).
162+
163+
<!--
164+
## License
165+
166+
WordPress Playground is free software released under the terms of the GNU General Public License version 2 or (at your option) any later version. For a complete license, see [LICENSE.md](https://github.com/WordPress/wordpress-playground/blob/trunk/LICENSE).
167+
-->
168+
169+
## Licença
170+
171+
O WordPress Playground é um software livre disponível sob os termos da GNU General Public License versão 2 ou (se preferir) qualquer versão posterior. A licença completa está disponível em [LICENSE.md](https://github.com/WordPress/blob/trunk/LICENSE).
172+
173+
<br/><br/><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Código é Poesia." /></p>

0 commit comments

Comments
 (0)