Customizing Emails by Language #21227
TheOtherBrian1
announced in
Troubleshooting
Replies: 1 comment
-
Does this also work for email subject heading? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When you register a user, you can create meta-data about them.
Creating meta-data with the JS-Client's signUp function
The above example creates a user entry that includes information about their name and age. The data is stored in the auth.users table in the
auth.raw_user_meta_data
column. You can view it in the auth schema with the SQL Editor.It can be accessed in a project's Email Templates. Below is an example:
If you need to update a user's meta-data, you can do so with the updateUser function.
The meta-data can be used to store a users language preferences. You could then use "if statements" in the email template to set the response for a specific language:
Supabase uses the Go Templating Language to render emails. It has advanced features for conditions that you may want to explore. For more examples, there is a GitHub discussion that discusses advanced language templates.
Beta Was this translation helpful? Give feedback.
All reactions