https://github.com/sh4nks/flask-babelplus
A i18n/l10n extension for Flask
https://github.com/sh4nks/flask-babelplus
babel extension flask python
Last synced: about 1 year ago
JSON representation
A i18n/l10n extension for Flask
- Host: GitHub
- URL: https://github.com/sh4nks/flask-babelplus
- Owner: sh4nks
- License: other
- Created: 2017-04-10T18:22:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-06-02T13:11:54.000Z (about 6 years ago)
- Last Synced: 2025-05-14T10:35:41.128Z (about 1 year ago)
- Topics: babel, extension, flask, python
- Language: Python
- Homepage: https://flask-babelplus.readthedocs.io
- Size: 158 KB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
README
Flask-BabelPlus
===============
[](https://travis-ci.org/sh4nks/flask-babelplus)
[](https://coveralls.io/github/sh4nks/flask-babelplus?branch=master)
[](https://pypi.python.org/pypi/Flask-BabelPlus)
[](https://flask-babelplus.readthedocs.io/en/latest/?badge=latest)
Adds i18n/l10n support to Flask applications with the help of the
[Babel](https://github.com/python-babel/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:
1. It is possible to use multiple language catalogs in one Flask application;
2. Localization domains: your extension can package localization file(s) and
use them if necessary;
3. Does not reload localizations for each request.
The main difference to Flask-BabelEx is, that you can pass the
localization ``Domain`` in the extensions initialization process.
```python
# Flask-BabelPlus
babel.init_app(app=app, default_domain=FlaskBBDomain(app))
```
Links
=====
* [Documentation](https://flask-babelplus.readthedocs.io)
* [Flask-BabelEx](https://github.com/mrjoes/flask-babelex)
* [Original Flask-Babel Extension](https://github.com/python-babel/Flask-Babel)