Adds i18n/l10n support to Sanic applications with the help of the Babel library.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs set request to None for refresh() Mar 17, 2017
sanic_babel set request to None for refresh() Mar 17, 2017
tests first commit Mar 9, 2017
.gitignore first commit Mar 9, 2017
MANIFEST.in first commit Mar 9, 2017
README.md Merge branch 'master' of https://github.com/lixxu/sanic-babel Mar 17, 2017
setup.cfg update setup.cfg Mar 9, 2017
setup.py set request to None for refresh() Mar 17, 2017

README.md

Sanic Babel - 0.1.3

Most of the codes are from flask-babel, and updated to match sanic.

Implements i18n and l10n support for Sanic. 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.

Documention

The latest documentation is available here.