Skip to content

Commit 5b70f3a

Browse files
authored
docs: add i18n support to Logto email service (#1316)
1 parent 6b774e9 commit 5b70f3a

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

docs/connectors/email-connectors/built-in-email-service.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,27 @@ If no custom brand information is provided, the email template can still be used
7373
alt="Logto built-in email service sample without branding"
7474
/>
7575

76+
### Localization \{#localization}
77+
78+
Logto's built-in email service supports multiple languages. It automatically detects the user's Sign-in Experience settings and sends emails in the user's preferred language.
79+
80+
When sending organization invitations through Management API, you can specify the `locale` parameter in the request payload. E.g.:
81+
82+
```json
83+
{
84+
"inviterId": "inviter-user-id",
85+
"invitee": "invitee-email-address",
86+
"expiresAt": "epoch-timestamp",
87+
"organizationId": "organization-id",
88+
"messagePayload": {
89+
"link": "https://your-app.com/invite-accept?invitation-id=abcd1234",
90+
// highlight-start
91+
"locale": "fr"
92+
// highlight-end
93+
}
94+
}
95+
```
96+
7697
## FAQs \{#faqs}
7798

7899
<details>

docs/connectors/email-connectors/email-templates.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Logto offers three distinct approaches for email template management:
4242
- [Logto Built-in Email Service](/connectors/email-connectors/built-in-email-service)
4343
- **Capabilities**:
4444
- ✅ Native variable support
45-
- Multi-language templates _(Coming soon)_
45+
- Multi-language templates
4646
- ❌ Template/UI modifications disabled
4747

4848
## Email template types \{#email-template-types}

0 commit comments

Comments
 (0)