Skip to content

Add page localization #7127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
mtrezza opened this issue Jan 16, 2021 · 2 comments · Fixed by #7128
Closed
3 tasks done

Add page localization #7127

mtrezza opened this issue Jan 16, 2021 · 2 comments · Fixed by #7128
Labels
state:released Released as stable version state:released-beta Released as beta version type:feature New feature or improvement of existing feature

Comments

@mtrezza
Copy link
Member

mtrezza commented Jan 16, 2021

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
@mtrezza mtrezza added the type:feature New feature or improvement of existing feature label Jan 16, 2021
@mtrezza mtrezza mentioned this issue Jan 17, 2021
11 tasks
@mtrezza mtrezza changed the title Localize pages Add page localization Jan 18, 2021
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.0.0-beta.1

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Nov 1, 2021
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.0.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released Released as stable version state:released-beta Released as beta version type:feature New feature or improvement of existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants