Skip to main content
Build Status

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"
            }
        },
        {
            "source_path": "locale/en/LC_MESSAGES/*.po",
            "excluded" : "_*, ~*",
            "remote_path": "path/to/",
            "target_langs": {
                "fr": "locale/en/LC_MESSAGES/",
                "de": "locale/de/LC_MESSAGES/",
                "it": "locale/it/LC_MESSAGES/"
            }
        }
    ]
}

The second entry in the json is to use a complete directory as translation source / destination. Useful for documentation. DO NOT FORGET the trailing slash for directories.

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.3: Added support for wildcard character to manage folders in translations

  • 0.2: Added -a flag to crowdin push.

  • 0.1: initial version.

Release files for crowdin-client 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crowdin-client 0.4
File Size Uploaded
crowdin-client-0.4.tar.gz 6.3 kB Details

Release files / crowdin-client-0.4.tar.gz

Download URL crowdin-client-0.4.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0b39b6f4e7ae9caf76348625c5cdaafaac08b808a4e522b059b7e7cd98b0533c
BLAKE2b-256 checksum
How to use checksums
4c594ef3a52eab9c155e0604824873636f21d52bbaee7c81fc328dcaada8bd9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4 This release

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page