Skip to content

Commit db32aec

Browse files
authored
Merge pull request #1432 from FusionAuth/update-advanced-registration-form
Added doc about setting up languages on registration.
2 parents a28d1fd + fbf673a commit db32aec

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Loading

site/docs/v1/tech/guides/advanced-registration-forms.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Advanced registration forms let you build multi-step custom registration and adm
1818
* <<Editing User Data In the Admin UI>>
1919
* <<Using the API to Manage Forms>>
2020
* <<Consents>>
21+
* <<Email Localization>>
2122
* <<Form Fields and Validation>>
2223
* <<Special Considerations>>
2324

@@ -627,6 +628,20 @@ The consent field will have a name automatically generated based on the consent
627628
consents['dd35541d-e725-4487-adba-5edbd3680fb8']=I consent to sharing my data with affiliated companies
628629
```
629630

631+
== Email Localization
632+
633+
Emails are localized based on the user preferred language attributes. link:/docs/v1/tech/core-concepts/localization-and-internationalization[Learn more here about the different ways FusionAuth localizes content].
634+
635+
Using advanced registration forms, you can set this attribute on registration. FusionAuth will then localize any initial emails, such as a password setup or email verification email.
636+
637+
To do so, add a custom field to your form setting the [field]#user.preferredLanguages# field. You can use the default one that ships with FusionAuth, as below.
638+
639+
image::guides/advanced-registration-forms/setup-locale-selection.png[Add locale choice to registration form.,width=1200]
640+
641+
This will build a select box with a list of all supported locales. If you'd prefer to limit it to a certain subset, copy the default field and edit the allowed values.
642+
643+
You may also add this as a hidden field and set it via JavaScript if you'd rather not display the dropdown.
644+
630645
== Form Fields and Validation
631646

632647
Making sure user registration data meets your quality requirements is important. FusionAuth provides multiple ways to validate user input during the registration process.
@@ -706,6 +721,7 @@ Assume you've enabled the Facebook identity provider and allowed for registratio
706721

707722
After a user signs up with Facebook, they'll be dropped back into the registration flow on the second step. They'll be required to complete the registration from from the second step onward before they are fully registered.
708723

724+
709725
++++
710726
{% capture relatedTag %}feature-advanced-registration-forms{% endcapture %}
711727
{% include _doc-related-posts.liquid %}

0 commit comments

Comments
 (0)