Skip to content

doc: add Portuguese (Brazil) (pt-br) documentation translations - #5116

Merged
OliverBryant merged 1 commit into
xorbitsai:mainfrom
kejhz653-stack:feat/docs-i18n-pt-br
Jul 3, 2026
Merged

doc: add Portuguese (Brazil) (pt-br) documentation translations#5116
OliverBryant merged 1 commit into
xorbitsai:mainfrom
kejhz653-stack:feat/docs-i18n-pt-br

Conversation

@kejhz653-stack

Copy link
Copy Markdown
Collaborator

Summary

  • Add machine-translated PO files for Portuguese (Brazil) (pt-br) documentation locale
  • Translations are based on the zh_CN template using DeepSeek API

Preview

Language URL
Portuguese (Brazil) https://inference-i18n-pt-br.readthedocs.io/pt-br/latest/

Test plan

  • Verify RTD build succeeds for pt-br after merge
  • Configure RTD translation for pt-br on the main inference project

Made with Cursor

@XprobeBot XprobeBot added the documentation Improvements or additions to documentation label Jul 1, 2026
@XprobeBot XprobeBot added this to the v2.x milestone Jul 1, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds Brazilian Portuguese (pt_BR) localization support, introducing a compilation script (doc/build_i18n.py) to build .mo catalogs, integrating it into the ReadTheDocs and Sphinx configurations, and expanding the language switcher to support multiple new languages. The review feedback highlights several critical translation issues, including translation API hallucinations, prompt leaks, mistranslations (such as translating 'Code standards' as 'Código de Conduta'), and broken reStructuredText syntax markers (replacing '::' with ':'). Additionally, a robustness issue was identified in doc/build_i18n.py where an unhandled ImportError would occur if the babel library is missing, and a fallback mechanism to sphinx-intl was suggested.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread doc/source/locale/pt_BR/LC_MESSAGES/development/contributing_codebase.po Outdated
Comment thread doc/source/locale/pt_BR/LC_MESSAGES/getting_started/using_xinference.po Outdated
Comment thread doc/source/locale/pt_BR/LC_MESSAGES/models/custom.po Outdated
Comment thread doc/source/locale/pt_BR/LC_MESSAGES/models/model_abilities/audio.po Outdated
Comment thread doc/source/locale/pt_BR/LC_MESSAGES/models/model_abilities/video.po Outdated
Comment thread doc/build_i18n.py
Comment thread doc/source/locale/pt_BR/LC_MESSAGES/development/contributing_codebase.po Outdated
Comment thread doc/source/locale/pt_BR/LC_MESSAGES/development/contributing_environment.po Outdated
Comment thread doc/source/locale/pt_BR/LC_MESSAGES/examples/ai_podcast.po Outdated
Comment thread doc/source/locale/pt_BR/LC_MESSAGES/models/model_memory.po Outdated
@kejhz653-stack
kejhz653-stack force-pushed the feat/docs-i18n-pt-br branch from 7b2f998 to 8bcad65 Compare July 1, 2026 11:08
@kejhz653-stack

Copy link
Copy Markdown
Collaborator Author

Please review this pr @qinxuye .Thanks!

@OliverBryant OliverBryant left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Add locale catalogs and i18n build infrastructure for Read the Docs documentation.
@kejhz653-stack
kejhz653-stack force-pushed the feat/docs-i18n-pt-br branch from 5329d39 to b9f65fe Compare July 3, 2026 06:47
@OliverBryant
OliverBryant merged commit 0166205 into xorbitsai:main Jul 3, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants