You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open config.py and add the desired language locale to the LANGUAGES list.
Create the language catalog: $ pybabel init -i messages.pot -d translations -l [LOCALE], where [LOCALE] should be replaced by the new locale.
Extracting/Updating translations
To extract all the texts that are to be translated to the .pot file use the following command:
$ pybabel extract -F babel.cfg -k _l -o messages.pot .
To update all catalogs with the latest set of messages:
$ pybabel update -i messages.pot -d translations
Compile translations
After all translations have been added or updated in the respective .po files (found under translations/[LOCALE]/LC_MESSAGES/messages.po), to make the changes effective the translations have to be recompiled. This is achieved with the following command: $ pybabel compile -d translations