Skip to content

fix: add missing sessionAlert email template keys to all locales#11863

Open
SAY-5 wants to merge 1 commit intoappwrite:1.9.xfrom
SAY-5:fix/session-alert-i18n
Open

fix: add missing sessionAlert email template keys to all locales#11863
SAY-5 wants to merge 1 commit intoappwrite:1.9.xfrom
SAY-5:fix/session-alert-i18n

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented Apr 12, 2026

The 10 emails.sessionAlert.* keys only exist in en.json, so every non-English locale shows raw template variables like {{emails.sessionAlert.subject}} in session alert emails.

This adds the English strings as fallback to all 72 locale files. Proper translations can be contributed by native speakers separately.

Fixes #8659

The 10 emails.sessionAlert.* keys only existed in en.json, causing
non-English session alert emails to show raw template variables like
{{emails.sessionAlert.subject}} instead of translated text.

Adds English text as fallback to all locale files. Proper translations
can be contributed by native speakers in follow-up PRs.

Fixes appwrite#8659
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Apr 12, 2026

Greptile Summary

Adds the 10 emails.sessionAlert.* locale keys (with English text as a fallback) to all 72 non-English translation files, fixing session alert emails that were rendering raw template variables (e.g., {{emails.sessionAlert.subject}}) for any non-English locale. All added keys are consistent with and identical to those already present in en.json.

Confidence Score: 5/5

Safe to merge — purely additive locale data fix with no logic changes.

All 72 non-English locale files receive the same 10 consistent keys that exactly match en.json. JSON structure is valid across all files (correct trailing comma placement), and the file-level locale fallback in locales.php confirms that missing keys within an existing locale file are not recoverable at runtime, making this fix necessary and correct.

No files require special attention.

Important Files Changed

Filename Overview
app/config/locale/translations/es.json Adds 10 emails.sessionAlert.* keys with English fallback text; representative of all 72 changed locale files.
app/config/locale/translations/ar.json RTL locale updated with identical English fallback keys; no structural issues.
app/config/locale/translations/zh-cn.json CJK locale updated with identical English fallback keys; JSON structure valid.

Reviews (1): Last reviewed commit: "fix: add missing sessionAlert email keys..." | Re-trigger Greptile

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.

🐛 Bug Report: Session Alert template broken for all languages except English

1 participant