Skip to content

Commit 40bd680

Browse files
committed
fix: rename email template placeholder from username to recipientName
1 parent fb3a32f commit 40bd680

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

backend/data/src/test/kotlin/io/tolgee/email/EmailServiceTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class EmailServiceTest {
216216
"registration-confirm",
217217
Locale.ENGLISH,
218218
mapOf(
219-
"username" to "bob@example.com",
219+
"recipientName" to "bob@example.com",
220220
"confirmUrl" to "https://app.tolgee.io/verify/123/abc",
221221
"isSignup" to true,
222222
),

email/emails/registration-confirm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export default function RegistrationConfirmEmail() {
3636
<Text style={{ margin: '0 0 16px' }}>
3737
<LocalizedText
3838
keyName="email-greetings"
39-
defaultValue="Hello {username},"
40-
demoParams={{ username: 'Bob' }}
39+
defaultValue="Hello {recipientName},"
40+
demoParams={{ recipientName: 'Bob' }}
4141
/>
4242
</Text>
4343
<Text>

0 commit comments

Comments
 (0)