Repository navigation
Rename pt locale to pt-br for Brazilian Portuguese - #10
Merged
theletterf merged 1 commit intoSep 7, 2026
Merged
Conversation
Renames the Hugo language key from `pt` to `pt-br` so the locale code matches the content variant. Files, data directory, and i18n strings follow the same rename. languageName becomes "Português (BR)" and the URL path moves from /pt/ to /pt-br/. This is a preparatory step toward supporting both Brazilian and European Portuguese as separate locales. Note: this changes the published URL from /pt/ to /pt-br/. Existing links, bookmarks, and search engine indexes pointing to /pt/ will break unless a redirect is added (e.g. in worker.js or via a Cloudflare redirect rule). The author should consider whether a 301 redirect from /pt/* to /pt-br/* is warranted before merging. Co-Authored-By: Claude Code <noreply@anthropic.com>
Owner
|
Obrigado! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ptlocale topt-bracross config, content, data, and i18n files so the locale key matches thelanguageCode = "pt-BR"already set inlanguages.toml.Note
This is a housekeeping rename. The existing
ptlocale already declareslanguageCode = "pt-BR", but the key and file suffixes still saypt. Aligning them avoids ambiguity now that a separatept-ptlocale is being proposed (see companion PR).Test plan
hugo --gcbuilds without errors/pt-br/pages render correctly🤖 Generated with Claude Code