Skip to content

Spanish email messages render a duplicated time unit ("5 minutos minutos") #51120

Closed

Description

@enoquefcd

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

translations

Describe the bug

In the Spanish community translation of the base email theme
(themes/src/main/resources-community/theme/base/email/messages/messages_es.properties),
five messages append a literal minutos right after the link-expiration placeholder.

That placeholder ({3} or {4}, depending on the key) is not a raw number — it is the
fully formatted expiration period produced by linkExpirationFormatter, which already
includes the localized unit, e.g. 5 minutos, 12 horas, 1 día.

Affected keys:

  • emailVerificationBody / emailVerificationBodyHtml — Este enlace expirará en {3} minutos.
  • passwordResetBody / passwordResetBodyHtml — Este enlace expirará en {3} minutos.
  • executeActionsBody — Este enlace expirará en {4} minutos.

The remaining keys in the same file already use the correct form (e.g.
executeActionsBodyHtml: Este enlace caducará en {4}.), and a sweep of all 37
community translations for a literal time unit following the formatted placeholder
shows Spanish is the only affected language.

Version

main (c50bfbdd2a); long-standing (already present before the 2025 Weblate updates).

Regression

  • The issue is a regression

Expected behavior

Este enlace expirará en 5 minutos.

Actual behavior

Este enlace expirará en 5 minutos minutos.

And when the lifespan does not resolve to minutes, the literal unit is plainly wrong —
a 12-hour lifespan renders:

Este enlace expirará en 12 horas minutos.

How to Reproduce?

  1. Set a realm's (or user's) locale to Spanish (es).
  2. Trigger any of: e-mail verification, reset credentials, or an admin "execute actions" e-mail.
  3. Read the expiration sentence in the received e-mail.

Anything else?

A reproducer for both the bug and the fix (unit-level render check plus a
docker-compose end-to-end with Keycloak 26.7.0 + Mailpit, real e-mails):
https://github.com/enoquefcd/keycloak-es-email-duplicated-unit-repro

A fix is ready: enoquefcd#9 —
I have not opened PR because I already have
2 open pull requests (#50804, #50806) and the contributing guidelines cap new
contributors at 2 open PRs.

This bug affects the e-mails our production users receive,
so if the cap can be waived for this small fix I will open the PR right away —
otherwise I will open it as soon as one of my other PRs closes.

Activity

  1. ahus1 commented on Sep 24, 2026

    @ahus1
    Member

    Thanks for reaching out. The Spanish translation is managed in Weblate. The preferred way to update translations is via that UI.

    https://hosted.weblate.org/projects/keycloak/-/es/

    This provide the most seamless experience, and also avoids potential editing conflicts.

    See more about the translation process in the translation.md file.

    If this works for you, update the translation in Weblate, and then close this issue.

  2. added theissue type on Sep 24, 2026
  3. added
    kind/bug
    on Sep 24, 2026
  4. added
    area/translations
    and removed
    kind/bug
    on Sep 24, 2026
  5. added
    kind/bug
    on Sep 24, 2026
  6. keycloak-github-bot commented on Sep 24, 2026

    @keycloak-github-bot

    Thanks for reporting this issue, but there is insufficient information or lack of steps to reproduce.

    Please provide additional details, otherwise this issue will be automatically closed within 14 days.

  7. enoquefcd commented on Sep 25, 2026

    @enoquefcd
    ContributorAuthor

    Thanks for reaching out. The Spanish translation is managed in Weblate. The preferred way to update translations is via that UI.

    https://hosted.weblate.org/projects/keycloak/-/es/

    This provide the most seamless experience, and also avoids potential editing conflicts.

    See more about the translation process in the translation.md file.

    If this works for you, update the translation in Weblate, and then close this issue.

    thanks, requested via weblate:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/translationskind/bugstatus/auto-expirestatus/missing-informationteam/community

    Type

    Fields

    No fields configured for bug.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions