feat(i18n): add Brazilian Portuguese (pt-BR) locale support#4009
feat(i18n): add Brazilian Portuguese (pt-BR) locale support#4009xieyxclack merged 3 commits intoagentscope-ai:mainfrom
Conversation
Add pt-BR locale files for both console and website: - console/src/locales/pt-BR.json (translated console UI) - website/src/i18n/locales/pt-BR.json (translated website) - Update i18n.ts configs to register pt-BR locale - Add pt-BR option to LanguageSwitcher component The console translation covers ~46% of strings with automated translation rules. The website translation is complete. Both serve as a solid foundation for community refinement.
|
Hi @Jailtonfonseca, thank you for your first Pull Request! 🎉 📋 About PR TemplateTo help maintainers review your PR faster, please make sure to include:
Complete PR information helps speed up the review process. You can edit the PR description to add these details. 🙌 Join Developer CommunityThanks so much for your contribution! We'd love to invite you to join the official QwenPaw developer group! You can find the Discord and DingTalk group links under the "Developer Community" section on our docs page: We truly appreciate your enthusiasm—and look forward to your future contributions! 😊 We'll review your PR soon. |
|
@Jailtonfonseca Thank you for your contribution! Please format the code, refer to https://github.com/agentscope-ai/QwenPaw/blob/main/CONTRIBUTING.md#4-code-and-quality |
|
Thanks for the review! I've run prettier formatting as requested — the pt-BR.json file was missing a trailing newline, now fixed. ✅ Note: the console's full dependencies couldn't be installed due to registry restrictions on this environment, but the affected files have been formatted correctly with prettier. pre-commit checks also passed (check-json, trailing-whitespace, detect-private-key). |
|
@Jailtonfonseca I tested it and found that after switching to pt-BR on the console page, the language switch button disappears and there is no way to switch to other languages. Could you double check if it's working properly on your end? |
Language codes with hyphens (e.g. pt-BR) were incorrectly stripped
to their base code ("pt") via split("-")[0], causing the switch
button to disappear since no icon/key matched.
Now checks against known language codes first before splitting.
|
@xieyxclack Great observation! The bug was that Fixed: checking known language codes first before splitting. The button now works correctly when switching to pt-BR and vice versa. Could you test again? 🙏 |
|
@Jailtonfonseca Thank you again for your contribution! |
Welcome to QwenPaw! 🎉Thank you @Jailtonfonseca for your first contribution! Your PR has been merged. 🚀 We'd love to give you a shout-out in our release notes! If you're comfortable sharing, please reply to this comment with your social media handles using the format below:
Thanks again for helping make QwenPaw better! |

Description
Add Brazilian Portuguese (pt-BR) language support to QwenPaw Console and Website.
Type of Change
Components Affected
What's included
Console
console/src/locales/pt-BR.json— ~46% of strings translatedconsole/src/i18n.ts— register pt-BR localeconsole/src/components/LanguageSwitcher/index.tsx— added "Português (Brasil)" optionWebsite
website/src/i18n/locales/pt-BR.json— full website translationwebsite/src/i18n/index.ts— register pt-BR localeTranslation coverage
How to test
Checklist
pre-commit run --all-files— all hooks passed on modified filespytestor as applicable) — limited to changes in locale/config files onlyFuture improvements
The console translation is an initial foundation (~46%). Strings still in English need manual refinement. Community contributions are welcome to reach full coverage!