Skip to main content

Implements i18n and l10n support for Quart.

Project description

Quart Babel

Quart Uploads Logo

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 Flask-BabelPlus. Flask-Babel can be found here and Flask-BabelPlus 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


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.4.tar.gz (15.2 kB view hashes)

Uploaded Source

Built Distribution

quart_babel-1.0.4-py3-none-any.whl (18.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page