Adds i18n/l10n support to Flask applications
Project description
Adds i18n/l10n support to Flask applications with the help of the Babel library.
This is a fork of Flask-BabelEx which in turn is a fork of the official Flask-Babel extension. It is API compatible with both forks.
It comes with following additional features:
It is possible to use multiple language catalogs in one Flask application;
Localization domains: your extension can package localization file(s) and use them if necessary;
Does not reload localizations for each request.
The main difference to Flask-BabelEx is, that you can pass arguments to the init_app method as well.
# Flask-BabelPlus with custom domain
babel.init_app(app=app, default_domain=FlaskBBDomain(app))
Links
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-BabelPlus-2.1.0.tar.gz
(47.9 kB
view hashes)
Built Distribution
Close
Hashes for Flask_BabelPlus-2.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3beb827eee345db3a0cffe7f077e5eb51c1de26538b812a84d9e2f30cd2c25e9 |
|
MD5 | 3ec7823e63ad02e85c48002750c39ce5 |
|
BLAKE2b-256 | 7ae8353add0c15a72711ce5c6b196a0d0a8e754c6d3b4aa34a19a7b0a397e6c8 |