Skip to content
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

Add translations for session_login, session_logout, and register endpoints #147

Open
dantownsend opened this issue Jun 5, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@dantownsend
Copy link
Member

dantownsend commented Jun 5, 2022

A simple dictionary which the user can define, which maps the English word / phrase to their local language.

For example:

# For Portuguese users:
register(translations={'register': 'registro'})

The only option at the moment is to create your own template. This is definitely easier.

We could probably include a few translations out of the box for some language (just pre-defined dictionaries):

from piccolo_api.shared.auth.translations import register_portuguese

# For Portuguese users:
register(translations=register_portuguese)
@dantownsend dantownsend added enhancement New feature or request good first issue Good for newcomers labels Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant