docs: add Brazilian Portuguese README and documentation (pt-BR)#22178
docs: add Brazilian Portuguese README and documentation (pt-BR)#22178wesleysimplicio wants to merge 2 commits into
Conversation
…cale Add native pt-BR translation of the main README plus bootstrap of the Docusaurus pt-BR locale, complementing existing pt-BR work in flight. - README.pt-BR.md: full native translation of README.md (mirrors the README.zh-CN.md structural template; not a machine translation). - README.md / README.zh-CN.md: add bidirectional language badge to README.pt-BR.md. - website/docusaurus.config.ts: register `pt-BR` alongside `en` and `zh-Hans` with localized label "Português (Brasil)". - website/i18n/pt-BR/.../features/image-generation.md: seed translation of the image-generation guide to mirror the parity coverage that zh-Hans currently has (3 docs translated). Additional pages can be added incrementally without further config changes. This contribution intentionally avoids overlap with the in-flight pt-BR PRs: - NousResearch#15737 (web/src/i18n/pt.ts) -- Web UI strings - NousResearch#20443 (locales/pt.yaml + agent/i18n.py) -- CLI runtime catalog - NousResearch#22063 (web/src/i18n/pt-BR.ts) -- Web UI strings Surfaces here (root README + Docusaurus docs site i18n) are not touched by any of the above.
There was a problem hiding this comment.
Pull request overview
Adds Brazilian Portuguese (pt-BR) documentation support across the repo’s README surfaces and the Docusaurus docs site, enabling a pt-BR locale alongside existing English and Simplified Chinese docs.
Changes:
- Adds a full
README.pt-BR.mdtranslation and links it from the existing READMEs via language badges. - Registers
pt-BRas a Docusaurus locale inwebsite/docusaurus.config.ts. - Seeds the pt-BR Docusaurus content with a translated
image-generation.mddoc page.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| README.md | Adds a pt-BR language badge linking to the new Portuguese README. |
| README.zh-CN.md | Adds a pt-BR language badge linking to the new Portuguese README. |
| README.pt-BR.md | Introduces a Brazilian Portuguese translation of the root README. |
| website/docusaurus.config.ts | Registers pt-BR locale with label and htmlLang. |
| website/i18n/pt-BR/docusaurus-plugin-content-docs/current/user-guide/features/image-generation.md | Adds an initial pt-BR localized doc page (image generation). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ## Setup | ||
|
|
||
| :::tip Assinantes Nous | ||
| Se você tem uma assinatura paga do [Nous Portal](https://portal.nousresearch.com), pode usar geração de imagens pelo **[Tool Gateway](tool-gateway.md)** sem chave de API da FAL. Sua escolha de modelo persiste nos dois caminhos. |
There was a problem hiding this comment.
Addressed in 9953323 — translated tool-gateway.md to pt-BR alongside image-generation.md, matching the zh-Hans precedent in #20430 (which translated the same pair together for this exact reason). The relative link [Tool Gateway](tool-gateway.md) now resolves to the local pt-BR file, and Docusaurus + GitHub raw view both render correctly. Thanks for the catch!
Addresses Copilot review on NousResearch#22178: image-generation.md (line 31) had a relative link to `tool-gateway.md` that did not resolve in the pt-BR locale. Translating tool-gateway.md fixes the link and matches the zh-Hans precedent (NousResearch#20430), which translated the two docs as a pair for the same reason. Native pt-BR translation mirroring the en source structure 1:1 (matches the sibling image-generation.md style already in this PR).
|
Closing non-fix PR as requested — mantendo apenas PRs de fix. |
What does this PR do?
Adds Brazilian Portuguese (pt-BR) documentation surfaces — root README and Docusaurus docs site locale — to complement the in-flight pt-BR work.
Root cause
The detailed rationale from the original PR body is preserved below. This template update keeps the review structure consistent with #29640.
Fix
Why this shape
This shape mirrors #29640 so reviewers can quickly compare scope, root cause, fix, tests, and related context without having to decode a custom PR description.
Tests
Original body
Related PRs / issues
Original body
Summary
Adds Brazilian Portuguese (pt-BR) documentation surfaces — root README and Docusaurus docs site locale — to complement the in-flight pt-BR work.
What Changed
Fluxo
A mudança continua seguindo o fluxo original descrito na seção preservada abaixo, sem ampliar o escopo funcional deste PR.
Visão
A padronização melhora a revisão, reduz ruído e evita deriva de formatação entre PRs abertos.
Test Plan
Original body
Summary
Adds Brazilian Portuguese (pt-BR) documentation surfaces — root README and Docusaurus docs site locale — to complement the in-flight pt-BR work.
What's included
README.pt-BR.md— full native translation ofREADME.md(mirrors the structural template ofREADME.zh-CN.md). Not a machine translation: idiomatic pt-BR, consistent terminology with the existingagentskills.io/ Hermes vocabulary, code blocks and command names left untouched.README.mdandREADME.zh-CN.mdlinking toREADME.pt-BR.md, matching the existing badge pattern.website/docusaurus.config.tsalongsideenandzh-Hans, with localized labelPortuguês (Brasil)andhtmlLang: pt-BR.website/i18n/pt-BR/docusaurus-plugin-content-docs/current/user-guide/features/image-generation.md, mirroring the parity approach used byzh-Hans(which currently has 3 translated docs). Additional pages can be added incrementally without further config changes.Coordination with existing pt-BR PRs
Before opening this PR I checked the three open pt-BR PRs to make sure I wasn't duplicating work:
web/src/i18n/pt.ts,web/src/components/LanguageSwitcher.tsx,web/src/i18n/context.tsx,web/src/i18n/types.tsagent/i18n.py,hermes_cli/config.py,locales/pt.yaml,locales/pt_BR.yaml,tests/agent/test_i18n.py,website/docs/user-guide/configuration.mdweb/src/i18n/pt-BR.ts,web/src/components/LanguageSwitcher.tsx,web/src/i18n/context.tsx,web/src/i18n/types.ts,web/src/i18n/{en,zh}.tsThis PR touches none of those files. It targets the documentation surfaces (
README.md,README.pt-BR.md,README.zh-CN.md,website/docusaurus.config.ts,website/i18n/pt-BR/**) which are orthogonal to the runtime catalog and Web UI work in flight, so it can land independently of any of those PRs without conflict.If maintainers prefer to consolidate, this PR is small enough to fold into one of the others — but it can also stand alone.
Test plan
README.pt-BR.mdrenders correctly on GitHub (links, badges, tables, code blocks)README.mdandREADME.zh-CN.mdshow the new pt-BR badge linking toREADME.pt-BR.mdwebsite/docusaurus.config.tsparses cleanly —pt-BRadded tolocalesarray andlocaleConfigsblock follows the existing structure forzh-Hanswebsite/i18n/pt-BR/docusaurus-plugin-content-docs/current/user-guide/features/image-generation.mdfollows the file-path convention used byzh-Hansand will be picked up bynpm run start -- --locale pt-BRinwebsite/cd website && npm run build(no Docusaurus locale assets required beyond the page overrides; missing pages fall back to English, same aszh-Hanstoday)Notes
pt_BR.yamlnaming used by feat(i18n): add Portuguese locale support #20443). The Docusaurus locale codept-BRis the canonical BCP-47 form for this dialect.zh-Hansparity docs (image-generation.md) to keep this PR reviewable. Happy to follow up withtool-gateway.mdandwindows-wsl-quickstart.mdin a separate PR once this lands, or extend this PR if maintainers prefer.Generated by Hermes Turbo
Generated by Hermes Turbo