doc: add Portuguese (Brazil) (pt-br) documentation translations - #5116
Conversation
There was a problem hiding this comment.
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.
7b2f998 to
8bcad65
Compare
|
Please review this pr @qinxuye .Thanks! |
Add locale catalogs and i18n build infrastructure for Read the Docs documentation.
5329d39 to
b9f65fe
Compare
Summary
Preview
Test plan
Made with Cursor