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 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.7.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

quart_babel-1.0.7-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

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

Hashes for quart_babel-1.0.7.tar.gz
Algorithm Hash digest
SHA256 8ceb418f16bee0f7ffbdbb4d0612dac63f3baf70462e2d27f1de2314fd97a997
MD5 042228d2654644d02f98dbf860456756
BLAKE2b-256 69d4a2145c383117fee02bfe20fcf184e392a221c15218777df896298a6fa67e

See more details on using hashes here.

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

Hashes for quart_babel-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8725f119e4c1fc56b555aee674d063a25e478924f471145cb1fa4a41ac459a74
MD5 14f8f5110499022b320f5c64da379b71
BLAKE2b-256 328cad281355b5a69088a2c0823f78805a3870f763eb5b4d6697945c40a1f883

See more details on using hashes here.

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