Skip to content

fix(locale): restore {{user}} placeholder in Spanish email greetings - #13637

Open
owgreen-dev wants to merge 1 commit into
appwrite:mainfrom
owgreen-dev:fix-es-email-greetings
Open

fix(locale): restore {{user}} placeholder in Spanish email greetings#13637
owgreen-dev wants to merge 1 commit into
appwrite:mainfrom
owgreen-dev:fix-es-email-greetings

Conversation

@owgreen-dev

Copy link
Copy Markdown

What

Several Spanish transactional-email greetings drop or mangle the {{user}} placeholder in app/config/locale/translations/es.json, so the emails render an empty or incorrect greeting.

  • emails.verification.hello and emails.recovery.hello: "Hola, {{name}}.,"{{user}} was replaced with {{name}}, which the templates never pass (the variable is user, e.g. 'user' => $user->getAttribute('name')), so these render "Hola, ." to users.
  • emails.magicSession.hello, emails.otpSession.hello, emails.invitation.hello: "Hola,"{{user}} dropped entirely, so the greeting is an anonymous "Hola,".

The English source is "Hello {{user}}," for all five, and the repo's own emails.sessionAlert.hello already uses the correct Spanish form "Hola {{user}},". This PR aligns the five broken greetings with it.

Fix (values only, 5 lines)

key before after
emails.verification.hello Hola, {{name}}., Hola {{user}},
emails.recovery.hello Hola, {{name}}., Hola {{user}},
emails.magicSession.hello Hola, Hola {{user}},
emails.otpSession.hello Hola, Hola {{user}},
emails.invitation.hello Hola, Hola {{user}},

Found while testing an open-source i18n placeholder checker; verified against main.

Five Spanish email greetings drop or mangle the {{user}} placeholder:
verification/recovery used {{name}} (never passed by the template, so they render
"Hola, ."), and magicSession/otpSession/invitation dropped it entirely ("Hola,").
Aligns them with the English source and the existing emails.sessionAlert.hello.
@greptile-apps

greptile-apps Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; each updated greeting uses a variable supplied and interpolated by its corresponding email flow.

Summary

  • Corrects verification and recovery greetings that referenced the unsupported {{name}} variable.
  • Personalizes magic-link, OTP, and invitation greetings consistently with the source locale and existing Spanish session-alert greeting.

Reviews (1) · Last reviewed commit: "fix(locale): restore {{user}} placeholde..."

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant