Skip to main content
Custom processor

Automate your pre- and post-translation workflow by running it as part of the upload and download process with Lokalise.

Ilya Krukowski avatar
Written by Ilya Krukowski
Updated over 8 months ago

This feature is available starting from the Pro plan.

The Custom processor app enables you to utilize your own third-party service to process the uploaded and downloaded translation files. Basically, before the translations are imported to or exported from Lokalise, it will be sent to your service and you'll have a chance to modify them as you like.

Here are some use cases where the custom processor can come in really handy:

  • Clean up the imported translations by removing unneeded special characters.

  • Apply special formatting to the imported or exported translations.

  • Remove unwanted (banned) words from your texts.

  • Restructure the exported translation keys.

Using the app

To get started, open your Lokalise project and click Apps:

Find the Custom processor in the apps list, and click Install. You are going to see the following screen:

  • Import Custom Processor URL β€” enter the URL you would like to send the imported translations to.

  • Export Custom Processor URL β€” enter the URL you would like to send the exported translations to.

  • File format β€” choose one of the file formats to enable this custom processor for, or specify All supported formats.

Once you are ready, click the Enable app button.

Now you can perform file imports and exports as usual and your custom processor will be able to modify translation data in any way you need.

Technical details

You can find sample apps utilizing custom processors in our Developer Hub.

Both the import and export URLs must respond to HTTP POST requests. You can find sample data sent to the processor in this Gist.

Your processors can modify the received data in any way you want (specifically, by changing or parsing translations, adding custom attributes, descriptions, attaching screenshots, using third-party services to perform machine translation, etc). However, data returned by the processors must preserve the initial structure.

Did this answer your question?