Skip to content

Instantly share code, notes, and snippets.

@merqurio
Created October 26, 2014 16:08
Show Gist options
  • Save merqurio/98a0beee15401ccd2a49 to your computer and use it in GitHub Desktop.
Save merqurio/98a0beee15401ccd2a49 to your computer and use it in GitHub Desktop.
Pybabel Commands for Flask-Babel
# 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