Connectors / Service / Lokalise
LokaliseAll-in-one software localization and translation management platform.
Lokalise is an app localization and translation platform designed for the use of project managers with integrated tools for developers and other stakeholders. It enables you to automate the translation and localization workflow of your web and mobile applications, games, and software.
API INFO: The Base URL used for the lokalise connector is https://api.lokalise.com/api2. More information can be found on their main API documentation (v2.0) site.
Below is an example of a way in which you could potentially use the Lokalise connector, to download specific project files filtered by name.
The steps will be as follows:
Setup using a manual trigger and list the project files filtered by name.
Add the Loop collection connector to iterate over each file.
Download each file individually.
Your completed workflow should look similar to this:
1 - Setup Trigger & List Project Files
Select the manual trigger from the trigger options available.
From the connectors panel on the left, add a Lokalise connector to your workflow. Set the operation to 'List project files'.
The 'Project Id' field contains all your available projects. You can select a 'Project ID' of your choice from the available dropdown options.
Using the 'Filter Filename' field, you can filter the list of files based on a specific filename. You can provide any file name as per your choice. In our example, the value we have assigned is
Please note that the 'Limit' and 'Page' fields are already pre-filled for you, so you need not worry about it at this stage.
Feel free to re-name your steps as you go along to make things clearer for yourself and other users. The operation names themselves often suffice.
Now, when the workflow is run, it will retrieve all the files that belong to the selected project and have
example word as a part of the filename.
2 - Add a loop collection
Next, search for the Loop collection connector within your connector panel, and drag it into your workflow as your next step. Set your operations to 'Loop list'.
The Loop Collection connector allows you to iterate through a list of results. In this example, we will use it to iterate through the data found within the previous Lokalise connector step.
In order to specify the list, you want to loop through, start by using the list mapping icon (found next to the list input field, within the properties panel) to generate the connector-snake.
While hovering over the 'List Project Files' step (with the tail end of the connector-snake), select
files from the list of output properties displayed. This will auto-populate a jsonpath within your list input field and update the type selector to jsonpath.
For more clarification on the pathways you have available, open the Debug panel to view your step's Input and Output.
CONNECTOR-SNAKE: The simplest and easiest way to generate your jsonpaths is to use our feature called the Connector-snake. Please see the main page for more details.
This will enable us to iterate over the list of files, and perform operations for each one, during each loop cycle.
3 - Download Files
The last step is to drag a Lokalise connector inside of the Loop Collection step itself. Set the operation to 'Download files'.
As you can see, this operation requires the ID of the project from which you want to download files and the format of the files you want to download.
Since the files, we are looping through belong to the 'Example project' as selected in the first(List Project Files) step. At this stage, we will choose the same project name as an input for the 'Project ID' field.
For the 'Format' field, provide
json as an input as all the selected files are of the JSON format.
PLEASE NOTE: for the 'Download files' operation selecting the format type corresponding to the format of the file we want to download is crucial, otherwise the API will send an error. You can find more info about the supported file formats here
Scrolling down the properties panel, you will find the 'filter filenames' field. Using the connector-snake, find the jsonpath for the 'Filename' field from the previous step. It should appear similar to
Now when this workflow is run, you will receive URLs for downloading every single file. You will also be able to view the file's details when you click through your debug panel and expand the output.
BEST PRACTICES: Whenever you do decide to create your own workflow, please make sure you take a look at our managing data best practices guide.