-
-
Notifications
You must be signed in to change notification settings - Fork 512
add i18n documentation #638
base: develop
Are you sure you want to change the base?
Conversation
|
||
2. Configure Flask-Security to use the correct I18N_DOMAIN:: | ||
|
||
app.config['SECURITY_I18N_DOMAIN'] = 'flask_security' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already a default (see https://github.com/mattupstate/flask-security/blob/develop/flask_security/core.py#L48)
|
||
1. Install Flask-BabelEx:: | ||
|
||
pip install flask-babelex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is always installed (see https://github.com/mattupstate/flask-security/blob/develop/setup.py#L53).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO we should focus more on customisation (e.g. when one should change the default domain).
I agree on focusing more on the customization part. 👍 I'll work on it once I'll find the time! :) |
Now return errors is always a simple list of errors. we also return field_errors - which is the old wtforms dict of errors. Support new wtforms 3.0 form level errors. Convert some view code to utilize form level errors.
I added a very simple piece of i18n/Flask-BabelEx documentation
This (at least partly) closes #626