Skip to content

fix(email): fix invalid ftl syntax in verifyAccountChange#19357

Merged
MagentaManifold merged 1 commit intomainfrom
FXA-12221-fix
Aug 26, 2025
Merged

fix(email): fix invalid ftl syntax in verifyAccountChange#19357
MagentaManifold merged 1 commit intomainfrom
FXA-12221-fix

Conversation

@MagentaManifold
Copy link
Copy Markdown
Contributor

Because

  • there is a syntax error in verifyAccountChange's en.ftl file

This pull request

  • fixes the syntax error

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

@MagentaManifold MagentaManifold marked this pull request as ready for review August 26, 2025 13:43
@MagentaManifold MagentaManifold requested review from a team as code owners August 26, 2025 13:43
@flodolo
Copy link
Copy Markdown
Contributor

flodolo commented Aug 26, 2025

There's already #19356


<mj-text css-class="text-body-no-margin">
<span data-l10n-id="verifyAccountChange-expiry-notice">
<span data-l10n-id="verifyAccountChange-expiry-notice" data-l10n-args="<%- JSON.stringify({ expirationTime }) %>">
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@flodolo Hi! I just discovered another error that breaks l10n, so we still need this fix. (Fluent in email templates is a lot trickier 😅)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops it's still not working

Because:

* there is a syntax error in verifyAccountChange's en.ftl file

This commit:

* fixes the syntax error

<mj-text css-class="text-body-no-margin">
<span data-l10n-id="verifyAccountChange-expiry-notice">
<span data-l10n-id="verifyAccountChange-expiry-notice" data-l10n-args="<%= JSON.stringify({ expirationTime }) %>">
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Phew it's working this time

Copy link
Copy Markdown
Contributor

@LZoog LZoog left a comment

Choose a reason for hiding this comment

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

👍

<%- code %>

verifyAccountChange-expiry-notice = "It expires in <%- expirationTime == 1 ? '1 minute' : expirationTime + ' minutes' %>."
verifyAccountChange-expiry-notice = "It expires in <%- expirationTime === 1 ? '1 minute' : expirationTime + ' minutes' %>."
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.

Does this not need a new ID since it hasn't been pulled over to pontoon yet?

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.

No. The file failed to parse initially, I fixed it on our side now and it's now exposed. This is just mirroring the fix I already made.

@MagentaManifold MagentaManifold merged commit 5c22344 into main Aug 26, 2025
19 checks passed
@MagentaManifold MagentaManifold deleted the FXA-12221-fix branch August 26, 2025 18:44
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.

3 participants