Command-line client for the crowdin.net API
Project description
A client for the Crowdin API which lets you push source translations to crowdin and pull translated content.
Installation
(sudo) pip install crowdin-client
If you don’t have pip:
(sudo) easy_install pip (sudo) pip install crowdin-client
If you don’t even have easy_install on windows, get the .exe at http://pypi.python.org/pypi/setuptools, install it, add c:\Python2x\Scripts to the Windows path (replace Python2x with the correct directory).
Configuration
Create a .crodwin JSON file in your root project directory with the following structure:
{ "project_name": "crowdin project name", "api_key": "project API key", "localizations": [ { "source_path": "locale/en/LC_MESSAGES/django.po", "remote_path": "path/to/django.po", "target_langs": { "fr": "locale/en/LC_MESSAGES/django.po", "de": "locale/de/LC_MESSAGES/django.po", "it": "locale/it/LC_MESSAGES/django.po" } } ] }
Usage
Push source files:
crowdin push
Pull translations:
crowdin pull
If you’re importing a project with existing translations to crowdin, run crowdin push -a to also upload the local target files to crowdin. The -a flag should only be used once, you must then use the push / review / pull workflow provided by Crowdin.
Changelog
0.2: Added -a flag to crowdin push.
0.1: initial version.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file crowdin-client-0.2.tar.gz
.
File metadata
- Download URL: crowdin-client-0.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 801847d02894281516a8d48be06eafea0b3d43ec81ca47f52640c98a7665016f |
|
MD5 | bd39d6a052259f05424eb8b579731c3d |
|
BLAKE2b-256 | 7f9ba0138f46718b14318083678c79b5b64f37c0b3f2a26fb251a5afd379b484 |