From 8735cd409a5250534192c6fb9e19ffbc52f8881c Mon Sep 17 00:00:00 2001 From: Thayrone Date: Thu, 4 Apr 2024 21:50:44 -0300 Subject: [PATCH] feat: add protuguese translation navigation --- docs/_data/navigation_pt.yml | 121 +++++++++++ docs/_includes/nav_list | 3 + docs/header-menu-jsons/navigation_pt.json | 232 ++++++++++++++++++++++ docs/utils/mastheadHelper.js | 4 +- 4 files changed, 358 insertions(+), 2 deletions(-) create mode 100644 docs/_data/navigation_pt.yml create mode 100644 docs/header-menu-jsons/navigation_pt.json diff --git a/docs/_data/navigation_pt.yml b/docs/_data/navigation_pt.yml new file mode 100644 index 00000000..a3ff13b0 --- /dev/null +++ b/docs/_data/navigation_pt.yml @@ -0,0 +1,121 @@ +main: + - title: ' Acesso Rápido' + url: /docs/pt/quick-start/ + - title: ' Tutoriais' + url: /watch/en/ + - title: ' Estatísticas' + url: /stats/pt/ + - title: ' Contribuir' + url: /contribute/pt/ + - title: ' Blog' + url: /blog/pt/ + +docs: + - title: 'Inicio Rápido' + url: /docs/pt/quick-start/ + children: + - title: '  Rede Lightning' + url: /docs/pt/lightning/ + - title: '  A rede TOR' + url: /docs/pt/tor/ + - title: '  Acesso' + url: /docs/pt/access/ + + - title: 'Em Destaque' + url: /docs/pt/features/ + children: + - title: '  Privado' + url: /docs/pt/private/ + - title: '  Rápido' + url: /docs/pt/fast/ + - title: '  Seguro' + url: /docs/pt/safe/ + + - title: 'Entender' + url: /docs/pt/understand/ + children: + - title: '  Trade Pipeline' + url: /docs/pt/trade-pipeline/ + - title: '  Robôs' + url: /docs/pt/robots/ + - title: '  Prêmio' + url: /docs/pt/premium/ + - title: '  Fianças' + url: /docs/pt/bonds/ + - title: '  Depósito de garantia' + url: /docs/pt/escrow/ + - title: '  Pagamentos On-Chain' + url: /docs/pt/on-chain-payouts/ + - title: '  Preços' + url: /docs/pt/prices/ + - title: '  Taxas' + url: /docs/pt/fees/ + - title: '  Disputas' + url: /docs/pt/disputes/ + - title: '  Carteiras' + url: /docs/pt/wallets/ + - title: '  Limites' + url: /docs/pt/limits/ + - title: '  Swaps' + url: /docs/pt/swaps/ + - title: '  Telegram' + url: /docs/pt/telegram/ + - title: '  API' + url: /docs/pt/api/ + + - title: 'Melhores práticas' + url: /docs/pt/best-practices/ + children: + - title: '  Criptografia PGP' + url: /docs/pt/pgp-encryption/ + - title: '  Métodos de Pagamento' + url: /docs/pt/payment-methods/ + - title: '  Wallets Proxy' + url: /docs/pt/proxy-wallets/ + - title: '  Canais Lightning' + url: /docs/pt/channels/ + +tutorial: + - title: 'Ver' + url: "/watch/en/" + children: + - title: '   English' + url: "/watch/en/" + - title: '   Español' + url: "/watch/pt/" + - title: '   Deutsch' + url: "/watch/de/" + - title: '   Português' + url: "/watch/pt/" + - title: '   Français' + url: "/watch/fr/" + - title: '   Polski' + url: "/watch/pl/" + - title: 'Leer' + url: "/watch/en/" + children: + - title: '   English' + url: "/read/en/" + - title: '   Español' + url: "/read/pt/" + - title: '   Deutsch' + url: "/read/de/" + +contribute: + - title: 'Contribuir' + url: /contribute/pt/ + children: + - title: '  Código' + url: /contribute/pt/code/ + - title: '  Traduções' + url: /contribute/pt/languages/ + - title: '  Liquidez' + url: /contribute/pt/liquidity/ + - title: '  Guias' + url: /contribute/pt/guides/ + - title: '  Arte' + url: /contribute/pt/art/ + - title: '  Divulgação' + url: /contribute/pt/outreach/ + - title: '  Doe' + url: /contribute/pt/donate/ diff --git a/docs/_includes/nav_list b/docs/_includes/nav_list index f7ddd3d3..10d8171f 100644 --- a/docs/_includes/nav_list +++ b/docs/_includes/nav_list @@ -6,6 +6,9 @@ {% if url contains "/fr/" %} {% assign navigation = site.data.navigation_fr[include.nav] %} {% endif %} +{% if url contains "/pt/" %} + {% assign navigation = site.data.navigation_pt[include.nav] %} +{% endif %}