File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,12 @@ source venv/bin/activate
55
55
# Extract the english sentences from the code, needed if you modified it
56
56
pybabel extract --ignore-dirs venv -F babel.cfg -o messages.pot .
57
57
58
- # If working on a new locale: initialize it (in this example: fr)
58
+ # If working on a new locale: initialize it: (in this example: fr)
59
59
pybabel init -i messages.pot -d translations -l fr
60
60
# Otherwise, update the existing .po:
61
61
pybabel update -i messages.pot -d translations
62
+ # To update only a specific language: (in this example: fr)
63
+ pybabel update -i messages.pot -d translations -l fr
62
64
63
65
# ... translate stuff in translations/<lang>/LC_MESSAGES/messages.po
64
66
# re-run the 'update' command to let Babel properly format the text
You can’t perform that action at this time.
0 commit comments