From 4e7b72b4325fac8fb0279b8357d2d45dfe20c639 Mon Sep 17 00:00:00 2001 From: Newton Miyoshi Date: Wed, 24 Jan 2018 15:28:52 -0200 Subject: [PATCH] Initis the translation of lb4 docs to pt-br adds community translation warning --- _config.yml | 1 + _data/sidebars/pt-br_lb4_sidebar.yml | 169 ++++++++++++++++++++++++++ _data/topnav.yml | 2 + _includes/custom/sidebarconfigs.html | 3 + pages/pt-br/lb4/Not-yet-translated.md | 10 ++ pages/pt-br/lb4/index.md | 40 ++++++ 6 files changed, 225 insertions(+) create mode 100644 _data/sidebars/pt-br_lb4_sidebar.yml create mode 100644 pages/pt-br/lb4/Not-yet-translated.md create mode 100644 pages/pt-br/lb4/index.md diff --git a/_config.yml b/_config.yml index 91761a12c..fcac376d2 100644 --- a/_config.yml +++ b/_config.yml @@ -114,6 +114,7 @@ sidebars: - ru_lb2_sidebar - zh_lb2_sidebar - pt-br_lb2_sidebar +- pt-br_lb4_sidebar # description: "Documentation for the LoopBack framework" # the description is used in the feed.xml file diff --git a/_data/sidebars/pt-br_lb4_sidebar.yml b/_data/sidebars/pt-br_lb4_sidebar.yml new file mode 100644 index 000000000..42f2a9bb6 --- /dev/null +++ b/_data/sidebars/pt-br_lb4_sidebar.yml @@ -0,0 +1,169 @@ +## definition of `menuitem`=========== +# title: string +# url: string +# output: [ enum{web, pdf} ] (expressed as comma separated string in YAML) +# children?: [ menuitem ] + +## top level property================= +# entries: [ menuitem ] + + +title: LoopBack 4 +url: /doc/pt-br/lb4/index.html +translated: true +children: + +- title: 'Instalação' + url: /doc/pt-br/lb4/Installation.html + output: 'web, pdf' + +- title: 'Primeiros passos' + url: /doc/pt-br/lb4/Getting-started.html + output: 'web, pdf' + children: + + - title: 'Exemplos e tutoriais' + url: /doc/pt-br/lb4/Examples-and-tutorials.html + output: 'web, pdf' + + - title: 'FAQ' + url: /doc/pt-br/lb4/FAQ.html + output: 'web, pdf' + +- title: 'Conceitos principais' + url: /doc/pt-br/lb4/Concepts.html + output: 'web, pdf' + children: + + - title: 'Aplicação' + url: /doc/pt-br/lb4/Application.html + output: 'web, pdf' + + - title: 'Servidor' + url: /doc/pt-br/lb4/Server.html + output: 'web, pdf' + + - title: 'Context' + url: /doc/pt-br/lb4/Context.html + output: 'web, pdf' + + - title: 'Dependency injection' + url: /doc/pt-br/lb4/Dependency-injection.html + output: 'web, pdf' + + - title: 'Controllers' + url: /doc/pt-br/lb4/Controllers.html + output: 'web, pdf' + + - title: 'Routes' + url: /doc/pt-br/lb4/Routes.html + output: 'web, pdf' + + - title: 'Sequence' + url: /doc/pt-br/lb4/Sequence.html + output: 'web, pdf' + + - title: 'Schemas' + url: /doc/pt-br/lb4/Schemas.html + output: 'web, pdf' + + - title: 'Repositories' + url: /doc/pt-br/lb4/Repositories.html + output: 'web, pdf' + + - title: 'Decorators' + url: /doc/pt-br/lb4/Decorators.html + output: 'web, pdf' + +- title: 'Using Components' + url: /doc/pt-br/lb4/Using-components.html + output: 'web, pdf' + +- title: 'Calling other APIs' + url: /doc/pt-br/lb4/Calling-other-APIs-and-web-services.html + output: 'web, pdf' + +- title: 'Testing your application' + url: /doc/pt-br/lb4/Testing-your-application.html + output: 'web, pdf' + +- title: 'For current LoopBack users' + url: /doc/pt-br/lb4/LoopBack-3.x.html + output: 'web, pdf' + +- title: 'Command-line interface' + url: /doc/pt-br/lb4/Command-line-interface.html + output: 'web, pdf' + children: + + - title: 'Application generator' + url: /doc/pt-br/lb4/Application-generator.html + output: 'web, pdf' + + - title: 'Controller generator' + url: /doc/pt-br/lb4/Controller-generator.html + output: 'web, pdf' + +- title: 'Best practices with Loopback 4' + url: /doc/pt-br/lb4/Best-practices-with-Loopback-4.html + output: 'web, pdf' + children: + + - title: 'Defining and validating the API' + url: /doc/pt-br/lb4/Defining-and-validating-the-API.html + output: 'web, pdf' + + - title: 'Testing the API' + url: /doc/pt-br/lb4/Testing-the-API.html + output: 'web, pdf' + + - title: 'Defining your testing strategy' + url: /doc/pt-br/lb4/Defining-your-testing-strategy.html + output: 'web, pdf' + + - title: 'Implementing features' + url: /doc/pt-br/lb4/Implementing-features.html + output: 'web, pdf' + + - title: 'Preparing the API for consumption' + url: /doc/pt-br/lb4/Preparing-the-API-for-consumption.html + output: 'web, pdf' + +- title: 'Extending LoopBack 4' + url: /doc/pt-br/lb4/Extending-LoopBack-4.html + output: 'web, pdf' + children: + + - title: 'Creating Components' + url: /doc/pt-br/lb4/Creating-components.html + output: 'web, pdf' + + - title: 'Testing your extension' + url: /doc/pt-br/lb4/Testing-your-extension.html + output: 'web, pdf' + +- title: 'Crafting LoopBack 4' + url: /doc/pt-br/lb4/Crafting-LoopBack-4.html + output: 'web, pdf' + +- title: 'Language-related concepts' + url: /doc/pt-br/lb4/Language-related-concepts.html + output: 'web, pdf' + children: + + - title: 'Mixin' + url: /doc/pt-br/lb4/Mixin.html + output: 'web, pdf' + +- title: 'Reference' + url: /doc/pt-br/lb4/Reference.html + output: 'web, pdf' + children: + + - title: 'Reserved binding keys' + url: /doc/pt-br/lb4/Reserved-binding-keys.html + output: 'web, pdf' + + - title: 'Glossary' + url: /doc/pt-br/lb4/Glossary.html + output: 'web, pdf' diff --git a/_data/topnav.yml b/_data/topnav.yml index f27461cea..6ad09e889 100644 --- a/_data/topnav.yml +++ b/_data/topnav.yml @@ -50,6 +50,8 @@ topnav_dropdowns: url: /doc/ko/lb2/ - title: "Português (v2)" url: /doc/pt-br/lb2/ + - title: "Português (v4)" + url: /doc/pt-br/lb4/ - title: "日本語 (v3)" url: /doc/ja/lb3/ - title: "日本語 (v2)" diff --git a/_includes/custom/sidebarconfigs.html b/_includes/custom/sidebarconfigs.html index 2f9e3c958..69750a5f8 100644 --- a/_includes/custom/sidebarconfigs.html +++ b/_includes/custom/sidebarconfigs.html @@ -37,6 +37,9 @@ {% elsif page.sidebar == "ko_lb2_sidebar" %} {% assign sidebar = site.data.sidebars.ko_lb2_sidebar %} +{% elsif page.sidebar == "pt-br_lb4_sidebar" %} + {% assign sidebar = site.data.sidebars.pt-br_lb4_sidebar %} + {% elsif page.sidebar == "pt-br_lb2_sidebar" %} {% assign sidebar = site.data.sidebars.pt-br_lb2_sidebar %} diff --git a/pages/pt-br/lb4/Not-yet-translated.md b/pages/pt-br/lb4/Not-yet-translated.md new file mode 100644 index 000000000..01c2edf9d --- /dev/null +++ b/pages/pt-br/lb4/Not-yet-translated.md @@ -0,0 +1,10 @@ +--- +title: "Not yet translated" +lang: pt-br +layout: stub +sidebar: pt-br_lb4_sidebar +permalink: /doc/pt-br/lb4/Not-yet-translated.html +summary: +--- + +For instructions on how to translate, see [Translating articles](../contrib/Translating_articles.html). diff --git a/pages/pt-br/lb4/index.md b/pages/pt-br/lb4/index.md new file mode 100644 index 000000000..5489a1432 --- /dev/null +++ b/pages/pt-br/lb4/index.md @@ -0,0 +1,40 @@ +--- +lang: pt-br +layout: translation +trans_complete: false +title: LoopBack 4 +toc: false +keywords: LoopBack 4 +sidebar: pt-br_lb4_sidebar +tags: +permalink: /doc/pt-br/lb4/index.html +summary: LoopBack é a plataforma para desenvolvimento de APIs e microsserviços em Node.js +--- + +{% include important.html content="This is a community translation into Portuguese. For the latest information, see the [English version](http://loopback.io/doc/en/lb4/index.html). +" %} + +{% include important.html content="LoopBack 4 é o próximo passo na evolução do Loopback. Ainda está em desenvolvimento inicial e ainda não foi lançado. +" %} + +{% include see-also.html title="GitHub Repo" content=' +O código do framework LoopBack 4 está sendo desenvolvido em um único "mono-repositório", +[loopback-next](https://github.com/strongloop/loopback-next), ao invés de múltiplos repositórios, como na v3. Apesar disso, os exemplos e componentes desenvolvidos externamente estarão em repositório separados. +'%} +## Construído para desenvolvedores de API + + - Defina seus schemas e endpoints da API usando o padrão [OpenAPI](https://www.openapis.org/). + - Escreva seus endpoints com JavasScript moderno usando ES2017, `async` / `await`, módulos. + - Use seus endpoints e schema como "source of truth" sem a necessidade de geração de código. + +## Construído para times + + - Revise as alterações nos endpoints da API sem procurar através do JavaScript. + - Manter consistência automatizando a validação de seus endpoints e schemas. + - Suporte de primeira classe para [TypeScript](https://www.typescriptlang.org) (JavaScript fortemente tipado). + +## Construído para sua plataforma + + - Use LoopBack como ponto de partida para sua própria estrutura ou plataforma. + - Construa bibliotecas de componentes reutilizáveis ​​de forma padronizada. + - Integre com bancos de dados, serviços web e outras plataformas usando conectores.