Skip to content

i18n(pt-BR): add Portuguese (Brazil) translations#502

Merged
ascorbic merged 1 commit intoemdash-cms:mainfrom
pagelab:i18n/pt-br-translations
Apr 13, 2026
Merged

i18n(pt-BR): add Portuguese (Brazil) translations#502
ascorbic merged 1 commit intoemdash-cms:mainfrom
pagelab:i18n/pt-br-translations

Conversation

@pagelab
Copy link
Copy Markdown
Contributor

@pagelab pagelab commented Apr 12, 2026

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:

  • New 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 — Registered pt-BR in the locales array
  • packages/admin/src/locales/config.ts — Added pt-BR to SUPPORTED_LOCALES with proper BCP 47 validation
  • Changesetpatch bump for @emdash-cms/admin (published package)
  • Minor cleanup — Removed stale placeholder comments from en/ and de/ catalogs (re-extraction artifact)

Terminology decisions (WP pt-BR glossary):

English pt-BR Source
Search Pesquisa WP glossary (noun/verb)
Locale Localização WP glossary
Role Função WP glossary
Content Conteúdo WP glossary
Settings Configurações WP glossary
Dismiss Descartar pt-BR UX standard

Type of change

  • Bug fix
  • Feature (requires maintainer-approved Discussion)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • I have read CONTRIBUTING.md
  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • User-visible strings in the admin UI are wrapped for translation and pnpm locale:extract has been run (if applicable)
  • I have added a changeset (if this PR changes a published package)
  • New features link to an approved Discussion: https://github.com/emdash-cms/emdash/discussions/...

AI-generated code disclosure

  • This PR includes AI-generated code

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:compile and testing in the admin panel. Note: only 8 admin components currently use the Lingui t() macro (the developer has not yet completed i18n coverage across the full admin UI).

Copilot AI review requested due to automatic review settings April 12, 2026 21:50
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 12, 2026

🦋 Changeset detected

Latest commit: 190faaf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@emdash-cms/admin Patch
emdash Patch
@emdash-cms/cloudflare Patch
@emdash-cms/auth Patch
@emdash-cms/blocks Patch
@emdash-cms/gutenberg-to-portable-text Patch
@emdash-cms/x402 Patch
create-emdash Patch
@emdash-cms/plugin-embeds Patch

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

@github-actions
Copy link
Copy Markdown
Contributor

Scope check

This 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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 12, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 12, 2026

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
packages/admin/src/locales/de/messages.po Localization changed, will be marked as complete.
packages/admin/src/locales/en/messages.po Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@pagelab
Copy link
Copy Markdown
Contributor Author

pagelab commented Apr 12, 2026

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Apr 12, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-BR gettext catalog with translated admin strings.
  • Registered pt-BR in 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.

@pagelab pagelab force-pushed the i18n/pt-br-translations branch from 123ae87 to c9c8ca8 Compare April 12, 2026 21:59
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 12, 2026

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@502

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@502

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@502

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@502

emdash

npm i https://pkg.pr.new/emdash@502

create-emdash

npm i https://pkg.pr.new/create-emdash@502

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@502

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@502

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@502

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@502

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@502

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@502

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@502

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@502

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@502

commit: 190faaf

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>
@pagelab pagelab force-pushed the i18n/pt-br-translations branch from fa33b72 to 190faaf Compare April 12, 2026 22:30
@github-actions
Copy link
Copy Markdown
Contributor

Overlapping PRs

This PR modifies files that are also changed by other open PRs:

This may cause merge conflicts or duplicated work. A maintainer will coordinate.

Copy link
Copy Markdown
Collaborator

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ascorbic ascorbic merged commit af0647c into emdash-cms:main Apr 13, 2026
25 of 26 checks passed
@emdashbot emdashbot bot mentioned this pull request Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants