i18n(pt-BR): add Portuguese (Brazil) translations#502
i18n(pt-BR): add Portuguese (Brazil) translations#502ascorbic merged 1 commit intoemdash-cms:mainfrom
Conversation
🦋 Changeset detectedLatest commit: 190faaf The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Scope checkThis PR changes 768 lines across 6 files. Large PRs are harder to review and more likely to be closed without review. If this scope is intentional, no action needed. A maintainer will review it. If not, please consider splitting this into smaller PRs. See CONTRIBUTING.md for contribution guidelines. |
|
All contributors have signed the CLA ✍️ ✅ |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
|
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Pull request overview
Adds a new Portuguese (Brazil) (pt-BR) locale to the EmDash admin panel i18n setup, wiring it into Lingui and the admin locale switcher configuration.
Changes:
- Added a new
pt-BRgettext catalog with translated admin strings. - Registered
pt-BRin Lingui config and the admin’s supported locale list. - Added a changeset for a patch release of
@emdash-cms/admin, plus minor catalog comment cleanup.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/admin/src/locales/pt-BR/messages.po | New pt-BR translation catalog for currently internationalized admin strings |
| packages/admin/src/locales/en/messages.po | Removed placeholder translator-comment lines from the English catalog |
| packages/admin/src/locales/de/messages.po | Removed placeholder translator-comment lines from the German catalog |
| packages/admin/src/locales/config.ts | Added pt-BR to SUPPORTED_LOCALES |
| lingui.config.ts | Added pt-BR to Lingui locales |
| .changeset/i18n-pt-br-translations.md | Patch changeset for publishing the new locale |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
123ae87 to
c9c8ca8
Compare
@emdash-cms/admin
@emdash-cms/auth
@emdash-cms/blocks
@emdash-cms/cloudflare
emdash
create-emdash
@emdash-cms/gutenberg-to-portable-text
@emdash-cms/x402
@emdash-cms/plugin-ai-moderation
@emdash-cms/plugin-atproto
@emdash-cms/plugin-audit-log
@emdash-cms/plugin-color
@emdash-cms/plugin-embeds
@emdash-cms/plugin-forms
@emdash-cms/plugin-webhook-notifier
commit: |
Add full pt-BR locale following the WordPress pt-BR glossary standard. Includes updated Lingui config, locale config, and compiled message catalog. Also cleans up stale placeholder comments in en/de catalogs from re-extraction. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fa33b72 to
190faaf
Compare
Overlapping PRsThis PR modifies files that are also changed by other open PRs:
This may cause merge conflicts or duplicated work. A maintainer will coordinate. |
What does this PR do?
Adds a complete Portuguese (Brazil) locale (
pt-BR) to the EmDash admin panel, following the official WordPress pt-BR glossary standard (translate.wordpress.org) and the EmDash translation guidelines.Changes:
pt-BR/messages.po— 104 translated strings covering all currently internationalized admin components (API tokens, content editor, login, welcome modal, command palette, widgets, role badges, block menu, settings)lingui.config.ts— Registeredpt-BRin the locales arraypackages/admin/src/locales/config.ts— Addedpt-BRtoSUPPORTED_LOCALESwith proper BCP 47 validationpatchbump for@emdash-cms/admin(published package)en/andde/catalogs (re-extraction artifact)Terminology decisions (WP pt-BR glossary):
Type of change
Checklist
pnpm typecheckpassespnpm lintpassespnpm testpasses (or targeted tests for my change)pnpm formathas been runpnpm locale:extracthas been run (if applicable)AI-generated code disclosure
Translations were generated with AI assistance (Claude) and manually reviewed for accuracy, consistency with the WordPress pt-BR glossary, tone, and placeholder preservation against the EmDash translation documentation.
Screenshots / test output
N/A — translations were verified by running
pnpm locale:compileand testing in the admin panel. Note: only 8 admin components currently use the Linguit()macro (the developer has not yet completed i18n coverage across the full admin UI).