Skip to content

Commit 5c22344

Browse files
Merge pull request #19357 from mozilla/FXA-12221-fix
fix(email): fix invalid ftl syntax in verifyAccountChange
2 parents 0f168c6 + a4441ae commit 5c22344

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/fxa-auth-server/lib/senders/emails/templates/verifyAccountChange/en.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
verifyAccountChange-subject = Use { $code } to change your account
44
# Variables:
55
# $expirationTime (Number) - Represents the expiration time in minutes
6-
verifyAccountChange-preview = { $expirationTime: ->
6+
verifyAccountChange-preview = { $expirationTime ->
77
[one] This code expires in { $expirationTime } minute.
88
*[other] This code expires in { $expirationTime } minutes.
99
}
@@ -13,7 +13,7 @@ verifyAccountChange-safe = Help us keep your account safe by approving this chan
1313
verifyAccountChange-prompt = If yes, here is your authorization code:
1414
# Variables:
1515
# $expirationTime (Number) - Represents the expiration time in minutes
16-
verifyAccountChange-expiry-notice = { $expirationTime: ->
16+
verifyAccountChange-expiry-notice = { $expirationTime ->
1717
[one] It expires in { $expirationTime } minute.
1818
*[other] It expires in { $expirationTime } minutes.
1919
}

packages/fxa-auth-server/lib/senders/emails/templates/verifyAccountChange/index.mjml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<mj-text css-class="code-large"><%- code %></mj-text>
2727

2828
<mj-text css-class="text-body-no-margin">
29-
<span data-l10n-id="verifyAccountChange-expiry-notice">
29+
<span data-l10n-id="verifyAccountChange-expiry-notice" data-l10n-args="<%= JSON.stringify({ expirationTime }) %>">
3030
It expires in <%- expirationTime === 1 ? '1 minute' : expirationTime + ' minutes' %>.
3131
</span>
3232
</mj-text>

packages/fxa-auth-server/lib/senders/emails/templates/verifyAccountChange/index.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ verifyAccountChange-prompt = "If yes, here is your authorization code:"
88

99
<%- code %>
1010

11-
verifyAccountChange-expiry-notice = "It expires in <%- expirationTime == 1 ? '1 minute' : expirationTime + ' minutes' %>."
11+
verifyAccountChange-expiry-notice = "It expires in <%- expirationTime === 1 ? '1 minute' : expirationTime + ' minutes' %>."
1212

1313
<%- include('/partials/automatedEmailChangePassword/index.txt') %>

0 commit comments

Comments
 (0)