Implements i18n and l10n support for Quart.
Project description
Quart Babel
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
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 Babel
app = Quart(__name__)
babel = Babel(app)
Documentation
The for Quart-Babel and is available here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quart_babel-1.0.7.tar.gz
(11.2 kB
view details)
Built Distribution
File details
Details for the file quart_babel-1.0.7.tar.gz
.
File metadata
- Download URL: quart_babel-1.0.7.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.10.4-linuxkit
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ceb418f16bee0f7ffbdbb4d0612dac63f3baf70462e2d27f1de2314fd97a997 |
|
MD5 | 042228d2654644d02f98dbf860456756 |
|
BLAKE2b-256 | 69d4a2145c383117fee02bfe20fcf184e392a221c15218777df896298a6fa67e |
File details
Details for the file quart_babel-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: quart_babel-1.0.7-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.10.4-linuxkit
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8725f119e4c1fc56b555aee674d063a25e478924f471145cb1fa4a41ac459a74 |
|
MD5 | 14f8f5110499022b320f5c64da379b71 |
|
BLAKE2b-256 | 328cad281355b5a69088a2c0823f78805a3870f763eb5b4d6697945c40a1f883 |