Product teams
Deliver localized versions of your product faster by automating tedious localization steps.
Localization teams
Streamline your workflows and simplify collaboration with efficient localization management.
Developers teams
Add Transifex to your CI/CD pipeline to continuously deploy new translations.
Marketing teams
Quickly launch multilingual websites to accelerate international growth and conversions.
Translators
Deliver more accurate translations faster, leveraging advanced linguistic tools.
Software localization
Keep software continuously localized and in sync using automated CI/CD workflows.
Website localization
Automate and scale website localization to attract and convert international visitors.
Mobile App localization
Rapidly translate and launch apps globally, ensuring high-quality user experiences across markets.
Get a Personalized Demo Today
Precise, on-brand translations at scale. Language AI delivers context-rich content faster.
Get a personalized demo today
Request a personalized demo to learn how to integrate Transifex into your CI/CD
Product teams
Deliver localized versions of your product faster by automating tedious localization steps.
Localization teams
Streamline your workflows and simplify collaboration with efficient localization management.
Developers teams
Add Transifex to your CI/CD pipeline to continuously deploy new translations.
Marketing teams
Quickly launch multilingual websites to accelerate international growth and conversions.
Translators
Deliver more accurate translations faster, leveraging advanced linguistic tools.
Software localization
Keep software continuously localized and in sync using automated CI/CD workflows.
Website localization
Automate and scale website localization to attract and convert international visitors.
Mobile App localization
Rapidly translate and launch apps globally, ensuring high-quality user experiences across markets.
Get a Personalized Demo Today
Precise, on-brand translations at scale. Language AI delivers context-rich content faster.
Get a personalized demo today
Request a personalized demo to learn how to integrate Transifex into your CI/CD
The transifex-client
provides a command-line access to the translations of your Transifex projects. It is also open-source. This is of benefit for the company in ways nobody would be able to predict. This blog post shows an example.
Since January 2022, the former transifex-client
Python library is succeeded by the Transifex-CLI 2 implemented in Go. The Transifex-CLI provides the tx
command to update and configure translations of projects such as apps and websites. Since the CLI is open-source, people can tinker with it and adapt it to their use-cases. One of these is to use the CLI on Android.
The Transifex-CLI is provided through a binary file tx
. It allows you to set up the translations for projects on your local file system. These binary files are released by Transifex on GitHub for each new version for Windows, Linux, and macOS. It is possible to build the client yourself so that systems that are not officially supported can also be used. Two of these systems are the famous Raspberry Pi and the Android phone and luckily, they tend to have the same processor: A binary file that runs on the Raspberry Pi 3 with its armv7l architecture also runs on Android phones with the same processor architecture.
This section aims to help you set up the Transifex-CLI on your Android phone.
On an Android phone, there are a series of open-source apps from F-Droid that can be used in conjunction with the Transifex-CLI. The command line interface can be provided by UserLAnd or Termux, if you do not have a Bluetooth Keyboard, also Hacker’s Keyboard is recommended to have access to the arrow keys.
After installing UserLAnd, one can create an Ubuntu environment. Termux runs straight on the Android phone and as such does not need setup.
The following picture shows the Transifex-CLI as it pushes new source files to a project. This is where we want to get to.
After having set up UserLAnd or Termux, you will need to retrieve the binary file. You can compile this yourself, as shown in the section about the Raspberry Pi, or download the binary compiled by Nicco Kunzmann from GitHub. These commands should get the binary working on your phone:
<code class="hljs ruby"></code>
$ uname -m
armv7l
<code class="hljs ruby"></code>
tx
binary file - you can also point the URL to your Raspberry Pi. <code class="hljs nginx"></code>
<code class="language-javascript">wget -O tx 'https://github.com/niccokunzmann/transifex-client-armv7l-binary/blob/master/tx?raw=true'</code>
<code class="hljs nginx"></code>
tx
binary into your $PATH
so it is accessible as the tx
command. <code class="hljs javascript"></code>
mkdir -p ~/.local/bin
mv tx ~/.local/bin
chmod +x ~/.local/bin/tx
echo 'export PATH="$PATH:~/.local/bin"' >> ~/.bashrc
source ~/.bashrc
<code class="hljs javascript"></code>
Now, you are ready to go. You can get help from the client, add resources and pull source files and push translations. The Transifex-CLI source repository 2 shows in detail how to proceed.
On UserLAnd, you can access your SD-card at /host-rootfs/sdcard/
. If you like to edit files with other apps, you should probably store your resources there.
If you like to translate files, you might also want to edit them. These open-source apps may help you further:
It is well possible to access the Transifex API on an Android phone using the Transifex-CLI. Access to the SD-card and a variety of open-source apps allow you to create and update resources locally and on Transifex.
Compiling the Transifex CLI 2 on a Raspberry Pi is possible with the Docker build it provides. Following this section, you should be left with a working Transifex-CLI on your Raspberry Pi.
The first step is to install Docker. There are various tutorials available online, such as this one on phoenixnap 1.
After you have installed Docker, you can install git and download the Transifex-CLI.
<code class="hljs csharp"></code>
sudo apt-get install git
git clone --depth=1 https://github.com/transifex/cli.git
<code class="hljs csharp"></code>
Once you have done this, you can build the Transifex CLI according to its documentation:
<code class="hljs bash"></code>
cd cli
make docker-build
<code class="hljs bash"></code>
This will generate your tx
file. You can store that in your path as mentioned above for the Android phone. With this, you can manage the translations stored in your Transifex project locally on your Raspberry Pi.
Having created an open-source client for their API, Transifex has allowed hobbyists and enthusiasts to tinker with it and adapt it to their use-cases. As a result, users on Android phones and the Raspberry Pi can synchronize translations. This was not a standard use-case targeted by the management but an open policy with their source code has allowed Transifex niche users to expand the reach of the company.
This is a blog post from the Transifex community by Nicco Kunzmann.