Skip to content

Add Brazilian Portuguese translations - #4000

Closed
GabrielLidenor wants to merge 1 commit into
ruby:masterfrom
GabrielLidenor:brazilian-pt-translations
Closed

GabrielLidenor wants to merge 1 commit into
ruby:masterfrom
GabrielLidenor:brazilian-pt-translations

Conversation

@GabrielLidenor

@GabrielLidenor GabrielLidenor commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

closes #3999
This PR adds and normalizes the Brazilian Portuguese locale for the site.

  • Adds Brazilian Portuguese to the language selector
  • Uses the pt_br route consistently for the Brazilian variant
  • Updates the browser locale redirect to map pt-BR to pt_br
  • Localizes the home page and locale wording to Brazilian Portuguese

This keeps the Brazil-specific locale distinct from the Portugal locale while preserving a clean, working route and selector behavior.

Screenshots

Screenshot 2026-08-31 at 6 45 27 PM

Verification

  • bundle exec rake build ✅
  • bundle exec rake test ✅
  • bundle exec rake check:markup ✅
  • bundle exec rake check:links ✅

The site build completed successfully and generated the search index without errors.

Notes

Even though I am Brazilian, I used github copilot to help me with the file improvements for the Brazilian Portuguese language.

@GabrielLidenor
GabrielLidenor requested a review from a team as a code owner August 31, 2026 23:48
@GabrielLidenor
GabrielLidenor force-pushed the brazilian-pt-translations branch from 4516e56 to 484657c Compare August 31, 2026 23:49
@GabrielLidenor GabrielLidenor changed the title Add Brazilian Portuguese locale strings Add Brazilian Portuguese translations Sep 1, 2026
@GabrielLidenor

Copy link
Copy Markdown
Contributor Author

@hsbt reviews are welcomed.

No sure who else should I tag.

@GabrielLidenor

Copy link
Copy Markdown
Contributor Author

@hsbt if you think PR is too big, I can split it into multiple smaller ones.

@GabrielLidenor

Copy link
Copy Markdown
Contributor Author

@st0012 Hi there, I just wanna know your opinion about this PR .

If it is too big, even though it is just translations, I can create smaller ones.

I also volunteer to be the maintainer of the Brazilian Portuguese language for future translations 🫡

@hsbt

hsbt commented Sep 15, 2026

Copy link
Copy Markdown
Member

I'm not familiar with how pt and pt_br relate, but as far as I checked with Claude, the existing pt pages are already written in Brazilian Portuguese, and the pt_br files here are copies of them with only lang and the links changed.

I think merging your wording changes into pt would be better. Do you have an opinion on whether we should instead make pt proper European Portuguese and add Brazilian Portuguese as pt_br? That would also need someone to write and maintain the European Portuguese side.

@GabrielLidenor

Copy link
Copy Markdown
Contributor Author

@hsbt the differences between the too are relatively small and barely noticeable.

I agree with you, I will maintain the current Portuguese translation instead of creating a new language set for just small differences.

Closing this PR to open one focused on fixing the current translations of Portuguese.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Brazilian Portuguese (pt-BR) translation support and content

2 participants