Created
October 26, 2014 16:08
-
-
Save merqurio/98a0beee15401ccd2a49 to your computer and use it in GitHub Desktop.
Pybabel Commands for Flask-Babel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Extract all terms | |
pybabel extract -F babel.cfg -o messages.pot . | |
# Start a language | |
pybabel init -i messages.pot -d translations -l {THE LANGUAGE ex: 'es'} | |
# Compile all translations | |
pybabel compile -d translations |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment