Closed
Description
New Feature / Enhancement Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
Current Limitation
It is currently not easily possible to localize pages for
- password reset
- email verification
- invalid link
- etc.
Feature / Enhancement Description
Localize the Parse Server pages by handling an optional user locale in the query of the public API routes, such as
request_password_reset
choose_password
verify_email
resend_verification_email
With the introduction of Parse Server API Mail Adapter, a user locale parameter can be attached to links being sent in the password reset and email verification emails, making it easy to attach a user locale in the query.
Example Use Case
- Send "Reset Password" email that includes link with locale in query, e.g.
http://example.com/parse/apps/test/request_password_reset?token=exampleToken&username=exampleUsername&locale=de-AT'
- In Parse Server
Public API Router
detect the locale and return a localized file.
Alternatives / Workarounds
- Determining the user locale not from the query but from the username could expose the user locale (which is PII)
3rd Party References
- none