joomla / crowdin-sync
CLI application to synchronize a project with Crowdin
Installs: 4 774
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 12
Forks: 2
Open Issues: 1
Type:project
Requires
- php: ~5.4|~7.0
- elkuku/crowdin-api: ~1.0
- joomla/application: ~1.6
- joomla/registry: ~1.5
- symfony/yaml: ~2.8|~3.0
This package is auto-updated.
Last update: 2020-06-24 01:38:42 UTC
README
NOTE - This repository has been archived and is no longer supported, the Joomla project has changed its Crowdin integration workflow and maintenance of this tool is no longer necessary
Crowdin Synchronization Script for Joomla! CMS Repositories
This is a simple command line based script allowing Joomla! CMS repositories to synchronize their translations with Crowdin.
Requirements
- PHP 5.4+
- Composer
- An established project on Crowdin
- A
crowdin.yaml
file containing the repository configuration
Installation
To install this project, run the following command:
composer require joomla/crowdin-sync
Usage
To run this script, simply run the following command:
vendor/bin/crowdin
It requires one of two configuration switches:
--download
to download all translations of this project--upload
to update the source files of this project
Configuration
Several aspects of the script may be configured with switches on the crowdin
script, including:
--crowdin-config
allows you to specify a custom path to yourcrowdin.yaml
file; this must be relative to the project's root directory and defaults tocrowdin.yaml
if not specified--crowdin-project
allows you to specify the project name on Crowdin to connect to and defaults to theproject_identifier
value from thecrowdin.yaml
file--crowdin-api-key
allows you to specify the API key to use to connect to Crowdin; if this is not set, the environment variable specified byapi_key_env
in thecrowdin.yaml
file will be used