Skip to content

i18n(es-419): complete Latin American Spanish translations - #2190

Merged
ascorbic merged 2 commits into
emdash-cms:mainfrom
edrpls:i18n/es-419
Jul 22, 2026
Merged

ascorbic merged 2 commits into
emdash-cms:mainfrom
edrpls:i18n/es-419

Conversation

@edrpls

@edrpls edrpls commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Completes the Español (Latinoamérica) — es-419 admin UI catalog: fills in all 737 previously untranslated strings, taking coverage from 61% to 100% (pnpm locale:extract now reports 0 missing for es-419). The gap covered the content editor, media library, settings + backups, WordPress import, bylines, widgets, taxonomies, users/auth, redirects, and the plugin/registry screens.

Terminology and voice follow the conventions already established by the catalog's 1,195 existing translations rather than personal preference:

  • Formal usted for instructions and help text; infinitive for buttons, menus, and column headers; Spanish sentence case.
  • The catalog's settled terms: Agregar (not Añadir), Ingrese, No se pudo X for failure toasts, firma (byline), entrada (entry), elemento (item), respaldo (backup), por ejemplo, (e.g.).
  • Neutral Latin American lexicon (archivo, hacer clic, video), no Peninsular forms (no vosotros, ordenador, fichero).
  • ICU plural/select structure, {placeholders}, <0> tags, and leading/trailing whitespace preserved byte-exactly (mechanically verified against every msgid).

One consistency fix to an existing entry is included: Media → Medios (was translated as the English word; the catalog already uses "Subir medios" / "biblioteca de medios", and fr/pt-BR translate it as "Médias"/"Mídia"). Flagged by a native speaker reviewing the running admin.

No other locale, no source file, and no msgid was touched — the diff is es-419/messages.po plus a changeset.

Closes: no tracked issue — gap surfaced by the translation dashboard and by running EmDash with Spanish-speaking editors.

Two small pre-existing issues noticed while testing, deliberately not touched here (not catalog strings): the relative-time helper in packages/admin/src/lib/utils.ts hardcodes English ("just now", "N mins ago"), and the audit-log plugin's manifest labels ("Recent Activity") render untranslated on the dashboard. Happy to file these separately.

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) — @emdash-cms/admin: 1222/1222 pass; pnpm locale:compile clean. (Full-suite run locally hits two pre-existing environment failures unrelated to this diff: registry-verification needs Node ≥ 24.15 and one core test trips on the macOS /var symlink — both fail identically on main.)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable) — n/a for a translation-only PR
  • User-visible strings in the admin UI are wrapped for translation (if applicable). Do not include messages.po changes except in translation PRs — this is a translation PR; only es-419/messages.po is touched.
  • I have added a changeset (if this PR changes a published package)
  • New features link to an approved Discussion — n/a

AI-generated code disclosure

  • This PR includes AI-generated code — model/tool: Claude Fable 5 (Claude Code). Per the translating guide: the first pass was AI-generated (per-feature-area translation with a terminology glossary distilled from the catalog's existing translations, followed by an adversarial review pass and mechanical verification of ICU/placeholder/whitespace integrity), and the submitter — a native Spanish speaker — reviewed the strings and previewed them in the running admin before opening this PR.

Screenshots / test output

Previewed in the running admin (demos/simple, locale switched to es-419): dashboard (ICU plurals render correctly in both one/other branches on the stat cards), settings → backups, WordPress import wizard, bylines + byline schema, content editor, media library, widgets, menus, redirects, users. No truncated buttons or overflow observed. pnpm locale:extract reports es-419 at 0 missing strings.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VYCQX2PNX4wir7DJctR2mn

Fill in all 737 previously untranslated strings in the es-419 admin
catalog, taking coverage from 61% to 100%. Terminology and voice follow
the existing catalog's conventions: formal usted for instructions,
infinitive for buttons and labels, "No se pudo X" for failure toasts,
and the settled es-419 terms (Agregar, respaldo, firma, entrada,
elemento). ICU plural structure, placeholders, tags, and significant
whitespace are preserved byte-exactly; the catalog compiles cleanly and
was previewed screen-by-screen in the running admin.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VYCQX2PNX4wir7DJctR2mn
@changeset-bot

changeset-bot Bot commented Jul 22, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c0b2dc9

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

This PR includes changesets to release 17 packages
Name Type
@emdash-cms/admin Patch
emdash Patch
@emdash-cms/cloudflare Patch
@emdash-cms/sandbox-workerd Patch
@emdash-cms/plugin-mcp-smoke Patch
@emdash-cms/fixture-perf-site Patch
@emdash-cms/perf-demo-site Patch
@emdash-cms/cache-demo-site Patch
@emdash-cms/do-demo-site Patch
@emdash-cms/do-solo-demo-site 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/auth-atproto 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 github-actions Bot added review/needs-review No maintainer or bot review yet area/admin size/XL labels Jul 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Scope check

This PR changes 1,483 lines across 2 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

github-actions Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

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/es-419/messages.po Localization changed, will be marked as complete.
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.

@pkg-pr-new

pkg-pr-new Bot commented Jul 22, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@emdash-cms/admin

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

@emdash-cms/auth

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

@emdash-cms/auth-atproto

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

@emdash-cms/blocks

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

@emdash-cms/cloudflare

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

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

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

emdash

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

create-emdash

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

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

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

@emdash-cms/plugin-cli

npm i https://pkg.pr.new/@emdash-cms/plugin-cli@2190

@emdash-cms/plugin-types

npm i https://pkg.pr.new/@emdash-cms/plugin-types@2190

@emdash-cms/registry-client

npm i https://pkg.pr.new/@emdash-cms/registry-client@2190

@emdash-cms/registry-lexicons

npm i https://pkg.pr.new/@emdash-cms/registry-lexicons@2190

@emdash-cms/registry-verification

npm i https://pkg.pr.new/@emdash-cms/registry-verification@2190

@emdash-cms/sandbox-workerd

npm i https://pkg.pr.new/@emdash-cms/sandbox-workerd@2190

@emdash-cms/x402

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

@emdash-cms/plugin-ai-moderation

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

@emdash-cms/plugin-atproto

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

@emdash-cms/plugin-audit-log

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

@emdash-cms/plugin-color

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

@emdash-cms/plugin-embeds

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

@emdash-cms/plugin-field-kit

npm i https://pkg.pr.new/@emdash-cms/plugin-field-kit@2190

@emdash-cms/plugin-forms

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

@emdash-cms/plugin-webhook-notifier

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

commit: c0b2dc9

@emdashbot emdashbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is the right PR for the right problem: completing the es-419 admin catalog is a straightforward localization task and fits EmDash’s Lingui workflow. The changeset is present and correctly scoped to @emdash-cms/admin as a patch.

I read the diff, the full messages.po, locales.ts, the changeset, and the relevant source files for byline fields. I also ran an ICU-aware check over all 1,932 catalog entries: every numeric/named placeholder, <0> tag, and leading/trailing whitespace sequence is preserved (including the em1.… and xxxx … literals), and zero untranslated msgstr "" remain. The Media → Medios consistency fix is correct and matches the existing catalog (Subir medios, biblioteca de medios).

The two pre-existing issues the author deliberately excluded (hard-coded English relative-time helper, untranslated audit-log manifest labels) are indeed out of scope for a translation-only PR.

One terminology inconsistency stood out: the same byline feature translates "Job title" as "Cargo" in the help-text example but "Puesto de trabajo" in the label/slug placeholder. Aligning them would make the feature read consistently. That’s the only concrete finding; everything else is clean.


#: packages/admin/src/components/BylineFieldEditor.tsx:235
msgid "Job title"
msgstr ""
msgstr "Puesto de trabajo"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[suggestion] The standalone label "Job title" is translated here as "Puesto de trabajo", but the same concept is rendered as "Cargo" in the help-text example two screens earlier (line 682: "Agregue campos como \"Cargo\" o \"Pronombres\"...") and as lowercase "cargo" in the schema description (line 2244). Using two different names for the same example field can confuse editors about which built-in/custom field the help text is referring to.

Consider aligning the label and its example slug with "Cargo" (or, less concisely, aligning the example text to "Puesto de trabajo").

Suggested change
msgstr "Puesto de trabajo"
msgstr "Cargo"

If you adopt "Cargo" here, also update the example slug on line 4427 from "puesto_de_trabajo" to "cargo".

The field-label placeholder said "Puesto de trabajo" while the byline
schema help text modeled the same example as "Cargo".

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VYCQX2PNX4wir7DJctR2mn
@github-actions github-actions Bot added review/needs-rereview New commits since the last review and removed review/needs-review No maintainer or bot review yet labels Jul 22, 2026
@edrpls

edrpls commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Good catch — aligned both to «Cargo» in c0b2dc9.

@ascorbic ascorbic left a comment

Copy link
Copy Markdown
Member

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 4f58eec into emdash-cms:main Jul 22, 2026
46 checks passed
@emdashbot emdashbot Bot mentioned this pull request Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/admin review/needs-rereview New commits since the last review size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants