Ever found yourself needing to shuffle resources between projects and wondered about the best way to do it without losing your sanity? Whether you’re restructuring, shifting to a new organization, or simply optimizing how you manage your resources, we’ve got you covered with some neat tricks right here in Transifex.
Today, we’re exploring three savvy methods to transfer resources in Transifex: using the intuitive UI , the mighty CLI
, and the versatile API
. Each one has its own superpowers depending on what you need and how deep you want to dive.
- Using the UI: This method lets you manually download and upload files through the Transifex web interface, making it easy for teams with less tech know-how.
- Using the CLI: With the CLI, you can do bulk operations and automation, saving time on bigger projects. It requires setup but gives powerful tools for managing transfers efficiently.
- Using the API: For teams wanting max automation and integration, the API method is tops. It involves a series of API calls to handle transfers programmatically.
In the next sections, we’ll guide you through each method so you can pick what suits your team’s needs and skills best, ensuring a smooth transfer of your translation resources in Transifex.
How It Works:
Using the UI:
- Download your TMX file from the project in the old organization; you can read about it here.
- Download translation files from the old project. Link
- Create a new project for the new organization. Link.
- Upload the TMX file from the old project to the new project. Link
- Upload the source files to the new project. Link.
- Upload the translation files. Link.
Using the CLI:
- Install the transifex CLI. Link
- Add the resources in bulk from your Transifex project to your local folder. Link
- Pull all the source files and translations using the tx pull -s -t -all command. Link
- Open your .tx/config file, and replace the old project slug with your new project slug in all your file filters, and save the changes (see image below).
- Push the resources and their translations to your new project using the tx push -s -t files.
Note. Using the CLI, the Translation memory file is not migrated, but you can do it by following steps 1 and 4 from the UI process or using steps 8-11 of the API process.
Using the API:
For all the resources that you want to migrate, do the following:
-
Use this endpoint to start the download job of the source file.
-
Consult the status of the download job using this endpoint until it is done.
-
Create the resource in the other project using this endpoint.
-
Use this endpoint to start the upload job of the source file.
-
Consult the status of the upload job using this endpoint until it is done.
-
Upload the translation files using this endpoint.
-
Query the status of the upload of the translation files with this endpoint.
-
Start the download job of the translation memory file (to download it from the old project) with this endpoint.
-
Query the status of the download job of the Translation memory file with this endpoint.
-
Start the upload job of the translation memory file (to upload it to the new project) with this endpoint.
-
Query the status of the upload job of the Translation memory file with this endpoint.
Note. You can replace steps 8-11 with steps 1 and 4 of the UI process.
Give it a whirl, and tell us how it goes! ![:tada: :tada:](https://emoji.discourse-cdn.com/twitter/tada.png?v=12)
We’re all about making things easier and would love to hear your experiences or any tips you might have. Dive in, try out the method that suits you best, and don’t hesitate to reach out if you hit a snag.
We’re here to help, and who knows? Your insights might just be what someone else needs!
Happy localizing, and let’s keep making our translation efforts as seamless as possible!