Skip to content

Commit a0e84c2

Browse files
committed
polish(emails): Doctor l10n string exports
1 parent fa730ce commit a0e84c2

9 files changed

Lines changed: 56 additions & 4 deletions

File tree

libs/accounts/email-renderer/gruntfile.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
// 'src/**/en.ftl',
2929

3030
'src/layouts/fxa/en.ftl',
31-
// 'src/subscription/fxa/en.ftl',
31+
// 'src/layouts/subscription/en.ftl',
3232

3333
'src/partials/accountDeletionInfoBlock/en.ftl',
3434
'src/partials/appBadges/en.ftl',
@@ -42,6 +42,7 @@
4242
'src/partials/bannerWarning/en.ftl',
4343
'src/partials/brandMessaging/en.ftl',
4444
'src/partials/button/en.ftl',
45+
// 'src/partials/cancellationSurvey/en.ftl',
4546
'src/partials/changePassword/en.ftl',
4647
// 'src/partials/icon/en.ftl',
4748
'src/partials/manageAccount/en.ftl',
@@ -60,7 +61,8 @@
6061
'src/partials/userLocation/en.ftl',
6162
// 'src/partials/viewInvoice/en.ftl',
6263

63-
'src/templates/adminResetAccounts/en.ftl',
64+
// Skip translation. Internal FxA email. Not user facing.
65+
// 'src/templates/adminResetAccounts/en.ftl',
6466
'src/templates/cadReminderFirst/en.ftl',
6567
'src/templates/cadReminderSecond/en.ftl',
6668
// 'src/templates/downloadSubscription/en.ftl',

libs/accounts/email-renderer/src/renderer/__snapshots__/fxa-email-renderer.spec.ts.snap

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7798,6 +7798,14 @@ exports[`FxA Email Renderer should render renderPostAddTwoStepAuthentication wit
77987798
</td>
77997799
</tr>
78007800

7801+
<tr>
7802+
<td align="left" class="text-body" style="font-size:0px;padding:10px 25px;word-break:break-word;">
7803+
7804+
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:left;color:#000000;"><span data-l10n-id="postAddTwoStepAuthentication-device-sign-out-message">To protect all your connected devices, you should sign out everywhere youʼre using this account, and then sign back in using two-step authentication.</span></div>
7805+
7806+
</td>
7807+
</tr>
7808+
78017809
<tr>
78027810
<td align="left" class="text-body-no-margin" style="font-size:0px;padding:10px 25px;word-break:break-word;">
78037811

@@ -8218,6 +8226,14 @@ exports[`FxA Email Renderer should render renderPostAddTwoStepAuthentication wit
82188226
</td>
82198227
</tr>
82208228

8229+
<tr>
8230+
<td align="left" class="text-body" style="font-size:0px;padding:10px 25px;word-break:break-word;">
8231+
8232+
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:left;color:#000000;"><span data-l10n-id="postAddTwoStepAuthentication-device-sign-out-message">To protect all your connected devices, you should sign out everywhere youʼre using this account, and then sign back in using two-step authentication.</span></div>
8233+
8234+
</td>
8235+
</tr>
8236+
82218237
<tr>
82228238
<td align="left" class="text-body-no-margin" style="font-size:0px;padding:10px 25px;word-break:break-word;">
82238239

@@ -8630,6 +8646,14 @@ exports[`FxA Email Renderer should render renderPostAddTwoStepAuthentication: ma
86308646
</td>
86318647
</tr>
86328648

8649+
<tr>
8650+
<td align="left" class="text-body" style="font-size:0px;padding:10px 25px;word-break:break-word;">
8651+
8652+
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:left;color:#000000;"><span data-l10n-id="postAddTwoStepAuthentication-device-sign-out-message">To protect all your connected devices, you should sign out everywhere youʼre using this account, and then sign back in using two-step authentication.</span></div>
8653+
8654+
</td>
8655+
</tr>
8656+
86338657
<tr>
86348658
<td align="left" class="text-body-no-margin" style="font-size:0px;padding:10px 25px;word-break:break-word;">
86358659

@@ -10131,6 +10155,14 @@ exports[`FxA Email Renderer should render renderPostChangeTwoStepAuthentication:
1013110155
</td>
1013210156
</tr>
1013310157

10158+
<tr>
10159+
<td align="left" class="text-body" style="font-size:0px;padding:10px 25px;word-break:break-word;">
10160+
10161+
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:left;color:#000000;"><span data-l10n-id="postChangeTwoStepAuthentication-device-sign-out-message">To protect all your connected devices, you should sign out everywhere youʼre using this account, and then sign back in using your new two-step authentication.</span></div>
10162+
10163+
</td>
10164+
</tr>
10165+
1013410166
<tr>
1013510167
<td align="left" class="text-body-no-margin" style="font-size:0px;padding:10px 25px;word-break:break-word;">
1013610168

libs/accounts/email-renderer/src/templates/postAddTwoStepAuthentication/en.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ postAddTwoStepAuthentication-recovery-method-codes = You also added backup authe
1111
postAddTwoStepAuthentication-recovery-method-phone = You also added { $maskedPhoneNumber } as your recovery phone number.
1212
postAddTwoStepAuthentication-how-protects-link = How this protects your account
1313
postAddTwoStepAuthentication-how-protects-plaintext = How this protects your account:
14+
postAddTwoStepAuthentication-device-sign-out-message = To protect all your connected devices, you should sign out everywhere youʼre using this account, and then sign back in using two-step authentication.

libs/accounts/email-renderer/src/templates/postAddTwoStepAuthentication/index.mjml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
</a>
3333
</mj-text>
3434

35+
<mj-text css-class="text-body">
36+
<span data-l10n-id="postAddTwoStepAuthentication-device-sign-out-message">
37+
To protect all your connected devices, you should sign out everywhere youʼre using this account, and then sign back in using two-step authentication.
38+
</span>
39+
</mj-text>
40+
3541
<mj-text css-class="text-body-no-margin">
3642
<span data-l10n-id="postAddTwoStepAuthentication-from-device-v2">You requested this from:</span>
3743
</mj-text>

libs/accounts/email-renderer/src/templates/postAddTwoStepAuthentication/index.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ postAddTwoStepAuthentication-recovery-method-phone = "You also added <%- maskedP
1313
postAddTwoStepAuthentication-how-protects-plaintext = "How this protects your account:"
1414
<%- twoFactorSupportLink %>
1515

16+
postAddTwoStepAuthentication-device-sign-out-message = "To protect all your connected devices, you should sign out everywhere youʼre using this account, and then sign back in using two-step authentication."
17+
1618
postAddTwoStepAuthentication-from-device-v2 = "You requested this from:"
1719
<%- include('/partials/userInfo/index.txt') %>
1820

libs/accounts/email-renderer/src/templates/postChangeTwoStepAuthentication/en.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ postChangeTwoStepAuthentication-from-device = You requested this from:
77
postChangeTwoStepAuthentication-action = Manage account
88
postChangeTwoStepAuthentication-how-protects-link = How this protects your account
99
postChangeTwoStepAuthentication-how-protects-plaintext = How this protects your account:
10+
postChangeTwoStepAuthentication-device-sign-out-message = To protect all your connected devices, you should sign out everywhere youʼre using this account, and then sign back in using your new two-step authentication.

libs/accounts/email-renderer/src/templates/postChangeTwoStepAuthentication/index.mjml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
</a>
1919
</mj-text>
2020
21+
<mj-text css-class="text-body">
22+
<span data-l10n-id="postChangeTwoStepAuthentication-device-sign-out-message">
23+
To protect all your connected devices, you should sign out everywhere youʼre using this account, and then sign back in using your new two-step authentication.
24+
</span>
25+
</mj-text>
26+
2127
<mj-text css-class="text-body-no-margin">
2228
<span data-l10n-id="postChangeTwoStepAuthentication-from-device">You requested this from:</span>
2329
</mj-text>

libs/accounts/email-renderer/src/templates/postChangeTwoStepAuthentication/index.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ postChangeTwoStepAuthentication-use-new-account = "You now need to use the new M
55
postChangeTwoStepAuthentication-how-protects-plaintext = "How this protects your account:"
66
<%- twoFactorSupportLink %>
77

8+
postChangeTwoStepAuthentication-device-sign-out-message = "To protect all your connected devices, you should sign out everywhere youʼre using this account, and then sign back in using your new two-step authentication."
9+
810
postChangeTwoStepAuthentication-from-device = "You requested this from:"
911
<%- include('/partials/userInfo/index.txt') %>
1012

packages/fxa-auth-server/grunttasks/ftl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = function (grunt) {
3131
// 'lib/senders/emails/**/en.ftl',
3232

3333
// 'lib/senders/emails/layouts/fxa/en.ftl',
34-
'lib/senders/emails/subscription/fxa/en.ftl',
34+
'lib/senders/emails/layouts/subscription/en.ftl',
3535

3636
// 'lib/senders/emails/partials/accountDeletionInfoBlock/en.ftl',
3737
// 'lib/senders/emails/partials/appBadges/en.ftl',
@@ -45,7 +45,7 @@ module.exports = function (grunt) {
4545
// 'lib/senders/emails/partials/bannerWarning/en.ftl',
4646
// 'lib/senders/emails/partials/brandMessaging/en.ftl',
4747
// 'lib/senders/emails/partials/button/en.ftl',
48-
// 'lib/senders/emails/partials/changePassword/en.ftl',
48+
'lib/senders/emails/partials/cancellationSurvey/en.ftl',
4949
// 'lib/senders/emails/partials/changePassword/en.ftl',
5050
'lib/senders/emails/partials/icon/en.ftl',
5151
// 'lib/senders/emails/partials/manageAccount/en.ftl',

0 commit comments

Comments
 (0)