You can pull the latest translations directly from Transifex for all translated languages.
You'll need to create a Transifex user if you don't already have one. Your user will also need some minimal role permissions within the SeedSigner Transifex project in order for your user's API key to have access to the translations data.
-
Install the Transifex CLI.
-
Create an API key for your Transifex user.
-
From the
seedsigner/src/seedsigner/resources/seedsigner-translationsdir run:# --force, -f Force the download of the translations files regardless of whether timestamps on the local computer are newer than those on the server (default: false) # --all, -a Whether to download all files (default: false) tx pull -f --all
- We use
-fbecause as we manipulate the .po files through our PR process, they may end up with newer timestamps even though the translation content has not changed. That timestamp would then mislead thetx pullto disregard newer translations.
- We use
-
Then from the SeedSigner project root, compile the catalogs to process the *.po files into *.mo:
python setup.py compile_catalog
Use the --language, -l flag with the --force, -f flag:
# Example: Spanish ("es")
tx pull -f -l es
# Or comma-separated list
tx pull -f -l pl,noThe .tx/config is set to minimum-perc = 15 (this means that the CLI will skip any
language whose translation completion falls below this minimum percentage).
You can manually override this by adding, for example, --minimum-perc 25 to require at
least 25% translation completion.