Command line client for POEditor service
Project description
POEditor sync
A commandline tool for synchronizing your project's translation with POEditor
Installation
pip install poeditor-sync
Usage
Commands:
# download translations
poeditor pull
# Upload local translations to poeditor
poeditur push
# Upload only terms (after adding new strings to the project)
poeditor push-terms --sync-terms --overwrite
Configuration
Create a config file poeditor.yml
to link your project with a POEditor project and define paths to translation files. Multiple projects are supported.
api_token: ABC123...
projects:
- id: 12345
format: po
default_language: en
terms:
en: locale/en/LC_MESSAGES/django.po
pl: locale/pl/LC_MESSAGES/django.po
- id: 54321
format: po
default_language: en
terms:
en: locale/en/LC_MESSAGES/djangojs.po
pl: locale/pl/LC_MESSAGES/djangojs.po
If you're planning to commit the config file into your repository or share it with someone, it is recommend that the API token in your config file be a read-only token.
You can use a separate token for uploads and pass it using --token
option or POEDITOR_TOKEN
environment variable.
Options
Option | environment variable | default value | documentation |
---|---|---|---|
--token |
POEDITOR_TOKEN |
api_token from config file | Authentication token for POEditor. Overrides value from config file. |
--config-file |
POEDITOR_CONFIG_FILE |
poeditor.yml | Path to the project config file in yaml format |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
poeditor-sync-0.2.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for poeditor_sync-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ac185049981626afa4721bf73183edf8617fd9dd036e21e5a58e8dce98fdfff |
|
MD5 | 58458c9a91887296dbb3dfbfd63f6130 |
|
BLAKE2b-256 | 9c5a5d60045121e6dbcd960233cfb6a5f9972f0e05115b6ece7bb9e8f2c159df |