docs: Use API Tokens instead of raw creds for Transifex.

This commit is contained in:
Josh Klar 2022-12-08 00:31:12 -08:00 committed by Tim Abbott
parent 0acb96ea9d
commit a1bc9adefc
1 changed files with 6 additions and 6 deletions

View File

@ -314,18 +314,17 @@ located at `.tx/config`.
## Transifex CLI setup ## Transifex CLI setup
In order to be able to run `tx pull` (and `tx push` as well, if you're a In order to be able to run `tx pull` (and `tx push` as well, if you're a
maintainer), you have to specify your Transifex credentials in a config maintainer), you have to specify your Transifex API Token, [generated in
file, located at `~/.transifexrc`. Transifex's web interface][transifex-api-token], in a config file located at
`~/.transifexrc`.
You can find details on how to set it up [here][transifexrc], but it should You can find details on how to set it up [here][transifexrc], but it should
look similar to this (with your credentials): look similar to this (with your credentials):
```ini ```ini
[https://www.transifex.com] [https://www.transifex.com]
username = user rest_hostname = https://rest.api.transifex.com
token = token = 1/abcdefg...
password = p@ssw0rd
hostname = https://www.transifex.com
``` ```
This basically identifies you as a Transifex user, so you can access your This basically identifies you as a Transifex user, so you can access your
@ -338,5 +337,6 @@ organizations from the command line.
[icu messageformat]: https://formatjs.io/docs/intl-messageformat [icu messageformat]: https://formatjs.io/docs/intl-messageformat
[helpers]: https://handlebarsjs.com/guide/block-helpers.html [helpers]: https://handlebarsjs.com/guide/block-helpers.html
[transifex]: https://transifex.com [transifex]: https://transifex.com
[transifex-api-token]: https://www.transifex.com/user/settings/api/
[transifexrc]: https://docs.transifex.com/client/client-configuration#transifexrc [transifexrc]: https://docs.transifex.com/client/client-configuration#transifexrc
[html-templates]: ../subsystems/html-css.md#html-templates [html-templates]: ../subsystems/html-css.md#html-templates