Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Transifex Client config file. #51

Merged
merged 11 commits into from May 10, 2018
Adding explanations for initialization of Transifex client
  • Loading branch information
Serge Zarembsky
Serge Zarembsky committed May 10, 2018
commit 3e54265ae5c9c1e1654411ffd7b3e68189277f95
@@ -75,13 +75,35 @@ $ npm run docs
```

## Transifex Client
Run transifex client (tx) in your local synchronized 'develop' branch
Run Transifex client (tx) in your local synchronized 'develop' branch
Transifex client behavior is determined by .tx/config file in the repo.
```sh
# Install Transifex Client (tx)
$ pip install transifex-client
# Check if install was successful

This comment has been minimized.

@jsignanini

jsignanini May 10, 2018
Member

@zarembsky looks like there's a tx init command that needs to be run to set up the tx command line tool. Please add instructions on how to set this up.

$ tx --version
```
# Generate your Transifex API token [here] (https://www.transifex.com/user/settings/api/)
# You will use it for initialization of the Transifex client.

# Run initialization command at the root of your repo.
# It will an interactive session. Example below:
```sh
$ tx init
Welcome to the Transifex Client! Please follow the instructions to
initialize your project.
Creating .tx folder...
Creating config file...
No credentials file was found at /Users/<your user name>/transifexrc.
Created /Users/<your user name>/.transifexrc
Enter your API token: <your_Tranisfex_API_token>
Verifying token...
Updating /Users/<your user name>/.transifexrc file...
```
# Use Transifex client as follows:
```sh
# Push changes made to _locales/en/messages.json to Transifex
$ tx push -s
# Pull translated files from Transifex to _locales/<lang>/messages.json
ProTip! Use n and p to navigate between commits in a pull request.