Skip to content

fix(i18n): Add missing French translation keys to fr.json (#12448) - #12449

Merged
ChiragAgg5k merged 2 commits into
appwrite:mainfrom
Splinteer:fix-12448-add-missing-french-translations
Jul 30, 2026
Merged

ChiragAgg5k merged 2 commits into
appwrite:mainfrom
Splinteer:fix-12448-add-missing-french-translations

Conversation

@Splinteer

Copy link
Copy Markdown
Contributor

🔍 What does this PR do?

This Pull Request resolves #12448 by synchronizing the fr.json file with the reference en.json. It ensures that French-speaking users receive complete and fully localized text instead of raw translation keys fallback leaking into transactional emails.

📝 Description of changes

  • Added all missing keys from en.json into fr.json with accurate French translations.
  • Fixed the specific leak where {{emails.verification.preview}} was displayed to users.
  • Added translation coverage for MFA challenges (emails.mfaChallenge.*), security alerts (emails.sessionAlert.*), data exports (emails.dataExport.*), and SSL certificates.
  • Strictly preserved all placeholder variables (e.g., {{project}}) and style tags (e.g., {{b}}, {{/b}}).

❓ Why is it needed?

Leaving these keys missing causes layout issues and displays raw placeholders in production mail clients for French locales, which breaks the user experience.

✅ Checklist

  • My code follows the coding guidelines of this project.
  • I have run composer format and composer lint on the modified file.
  • All formatting tags and variables perfectly match the reference en.json file.

@greptile-apps

greptile-apps Bot commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR synchronises app/config/locale/translations/fr.json with the English reference by adding all previously missing translation keys for French-speaking users.

  • New keys added: preview and heading fields for existing email flows, plus full coverage for emails.mfaChallenge.*, emails.sessionAlert.*, emails.dataExport.success/failure.*, emails.certificate.*, and the mock testing key.
  • Existing keys updated: emails.magicSession.clientInfo, emails.otpSession.clientInfo, and emails.otpSession.description now correctly include {{b}} / {{/b}} bold formatting tags around agent device/client/OS variables, matching en.json.
  • Indentation: Normalised from 4-space to 2-space throughout the file (cosmetic only, no functional effect).

Confidence Score: 5/5

Safe to merge — purely additive translation strings with no functional code changes.

The change only adds and updates string values in a single JSON translation file. All new keys carry correct placeholder variables matching en.json. Previously discussed inconsistencies in older keys were retained intentionally per the author's stated policy. No code paths, logic, or schemas are touched.

No files require special attention.

Important Files Changed

Filename Overview
app/config/locale/translations/fr.json Adds all missing translation keys (preview, heading, mfaChallenge, sessionAlert, dataExport, certificate) and updates clientInfo/description strings with {{b}} formatting tags; placeholder variables are correctly preserved in newly added keys

Reviews (2): Last reviewed commit: "Merge branch 'main' into fix-12448-add-m..." | Re-trigger Greptile

Comment thread app/config/locale/translations/fr.json Resolved
Comment thread app/config/locale/translations/fr.json Resolved
Comment thread app/config/locale/translations/fr.json Resolved
Comment thread app/config/locale/translations/fr.json Resolved
Comment thread app/config/locale/translations/fr.json Resolved
Comment thread app/config/locale/translations/fr.json Resolved
Comment thread app/config/locale/translations/fr.json Resolved
Comment thread app/config/locale/translations/fr.json Resolved
Comment thread app/config/locale/translations/fr.json Resolved
@ChiragAgg5k
ChiragAgg5k changed the base branch from 1.9.x to main June 23, 2026 09:51
@ChiragAgg5k

Copy link
Copy Markdown
Member

@Splinteer lets keep formatting as it is

@Splinteer

Splinteer commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor Author

@Splinteer lets keep formatting as it is

That's already what I did, the bot made comments on unedited lines

@ChiragAgg5k
ChiragAgg5k merged commit f4bcada into appwrite:main Jul 30, 2026
41 of 42 checks passed
pull Bot pushed a commit to steinsi/appwrite that referenced this pull request Jul 30, 2026
fr.json now includes emails.verification.preview after appwrite#12449, which
broke FallbackTest's assumptions. Register a synthetic incomplete
locale instead so the fallback regression stays stable.

Co-authored-by: Chirag Aggarwal <[email protected]>
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] Missing email notification translation keys in fr.json breaking French templates

2 participants