Quart Babel Logo

Quart Babel#

Quart-Babel is an extension to Quart that adds i18n and i10n support to any Quart application with the help of babel, pytz, and speaklater. It has builtin support for date formatting with timezone support as well as a very simple and friendly interface gettext translations.

This is a fork of Flask-BabelPlus, which has been ported over to Quart with middleware added based on ASGI-Babel to be async compatiable. Flask-BabelPlus is a fork of the offical Flask-Babel extension.

Quart-Babel comes with the following 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. Custom selector functions for locale and timezone can be async.

  4. Locales and timezones can be temporary changed.

  5. Locales and timezones can be refreshed.

You can also pass the localization Domain in the extension initilazation process.

Quart-Babel is developed on github, here .

For more information on Quart, visit here .

Tutorials#

How to guides#

Reference#