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
Built Distribution
File details
Details for the file Flask-BabelPlus-2.2.0.tar.gz
.
File metadata
- Download URL: Flask-BabelPlus-2.2.0.tar.gz
- Upload date:
- Size: 50.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6791c4d6c644bb485b6b666f422a870f9ce9cb0c606ce9e1cb682174123fd970 |
|
MD5 | 1a46f90b16b844a740a7f7363aae8fed |
|
BLAKE2b-256 | 6670f7d1ff3c76a37e37ed4886c0f1e3d125475fb201e35ff2ddf17d785c60a5 |
File details
Details for the file Flask_BabelPlus-2.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: Flask_BabelPlus-2.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6610dc53808cc0fd00213b553871a6a6c170a08015774a31ff8bf3ba893ff655 |
|
MD5 | d84793ac057cb7f5c3a2df9dfcbc6e23 |
|
BLAKE2b-256 | a475170d80f4dc0e50264c6e25435b905ca73d5f594da8aff70995605f03fd73 |