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

41 lines
1.6 KiB
Markdown
Raw Normal View History

Crowdin CLI
===================
**[Latest release](https://crowdin.com/downloads/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
2017-07-05 07:57:40 +02:00
- Make sure that your `crowdin_identity.yaml` 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.yaml` and fill `api_key` that can be found **[here](http://l10n.asf.justarchi.net/project/archisteamfarm/settings#api)**.
2017-07-05 07:57:40 +02:00
- Ensure that `crowdin` command is recognized by your OS.
2017-02-20 17:45:36 +01:00
---
### Windows
- Install **[Java JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html)**.
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.
- Open new `cmd` prompt and verify that `crowdin help` indeed works.
2017-02-20 17:45:36 +01:00
---
## Usage
2017-07-05 07:57:40 +02:00
- `archi_upload.bat` for pushing strings to Crowdin (when any `*Strings.resx` file gets modified).
2017-02-20 17:43:37 +01:00
2017-07-05 07:57:40 +02:00
- `archi_download.bat` for downloading translations from Crowdin (typically last commit before release).
2017-08-18 22:56:01 +02:00
- `archi_sync.bat` for upload + download (tree sync, e.g. when modifying/removing original strings).