Skip to content

Add page localization #7127

Closed
Closed
@mtrezza

Description

@mtrezza

New Feature / Enhancement Checklist

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

  1. 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'
    
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:releasedReleased as stable versionstate:released-betaReleased as beta versiontype:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions