a module could let you auto create django.po file
$ python ./scripts/google_translator.py [dir-name-in-locale] ['--same']
If you wanna translate the ".po" file in "./locale/zh_Hans", just run:
$ python scripts/google_trans.py zh_Hans
The translated file will be created in the path of locale. If you put "same" word after command, target file will be override.
parameter | description |
---|---|
--all, -a | translate all language in locale folder |
--delete, -d | delete backup django.po |
JackaL at 2020.07
Copyright © 2020