Files
ArchiSteamFarm/tools/crowdin-cli/README.md

46 lines
1.7 KiB
Markdown
Raw Normal View History

Crowdin CLI
===================
2018-05-26 03:51:36 +02:00
**[Latest release](https://downloads.crowdin.com/cli/v2/crowdin-cli.zip)**
2017-02-20 17:43:37 +01:00
**[Source](https://github.com/crowdin/crowdin-cli-2)**
2017-02-20 17:43:37 +01:00
**[Help](https://support.crowdin.com/cli-tool/#cli-2)**
2017-02-20 17:45:36 +01:00
---
This tool is being used by ASF developers for synchronization of strings/translations between GitHub and **[Crowdin](https://github.com/JustArchi/ArchiSteamFarm/wiki/Localization)**. If you're not ASF developer that has access to our localization platform, then you won't find anything interesting here.
2017-02-20 17:45:36 +01:00
---
## Before you begin
2018-05-26 03:53:09 +02:00
- Make sure that your `crowdin_identity.yml` file exists - this is the file with login credentials that is not being committed to GitHub. If it doesn't exist yet (e.g. because you've just cloned the repo), create it from `crowdin_identity_example.yml` and fill `api_key` that can be found **[here](https://crowdin.com/project/archisteamfarm/settings#api)**.
2017-02-20 17:45:36 +01:00
---
2018-07-20 01:37:27 +02:00
## Installation
### Windows
2018-07-20 01:37:27 +02:00
- Install **[Java JRE](http://www.oracle.com/technetwork/java/javase/downloads/index.html)** (or entire JDK).
2017-02-20 17:45:36 +01:00
- **[Set JAVA_HOME properly](https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html)**.
2017-07-05 07:57:40 +02:00
- Launch `setup_crowdin.bat` as administrator.
2018-07-20 01:37:27 +02:00
### Linux
- Install **[OpenJDK JRE](http://openjdk.java.net/install)** (or entire JDK).
- **[Set JAVA_HOME properly](https://stackoverflow.com/questions/24641536/how-to-set-java-home-in-linux-for-all-users)**.
- Launch `crowdin.sh` as root.
Afterwards you should verify in shell that `crowdin help` command is recognized.
2017-02-20 17:45:36 +01:00
---
## Usage
2018-07-20 01:37:27 +02:00
- `archi_upload` for pushing strings to Crowdin.
2017-02-20 17:43:37 +01:00
2018-07-20 01:37:27 +02:00
- `archi_download` for downloading translations from Crowdin.
2017-07-05 07:57:40 +02:00
2018-07-20 01:37:27 +02:00
- `archi_sync` for upload + download.