Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quart-addons/quart-babel
Implements i18n and l10n support for Quart.
https://github.com/quart-addons/quart-babel
babel i10n i18n python3 quart translate
Last synced: about 6 hours ago
JSON representation
Implements i18n and l10n support for Quart.
- Host: GitHub
- URL: https://github.com/quart-addons/quart-babel
- Owner: Quart-Addons
- Created: 2022-07-24T00:58:51.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-24T18:09:44.000Z (12 months ago)
- Last Synced: 2024-04-26T10:20:54.210Z (6 months ago)
- Topics: babel, i10n, i18n, python3, quart, translate
- Language: Python
- Homepage: https://quart-babel.readthedocs.io
- Size: 235 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quart Babel
![Quart Uploads Logo](logos/logo.png)
Implements i18n and l10n support for Quart. This is based on the Python
[babel][] module as well as [pytz][] both of which are installed automatically
for you if you install this library.The original code for this extension was taken from Flask-Babel and can be
found [here][flask-babel]# Installation
Install the extension with the following command:
$ pip3 install quart-babel
# Usage
To use the extension simply import the class wrapper and pass the Quart app
object back to here. Do so like this:from quart import Quart
from quart_babel import Babelapp = Quart(__name__)
babel = Babel(app)# Documentation
The for Quart-Babel and is available [here][docs].
[babel]: https://github.com/python-babel/babel
[pytz]: https://pypi.python.org/pypi/pytz/
[flask-babel]: https://flask-babel.tkte.ch/
[docs]: https://quart-babel.readthedocs.io