Here’s how to translate your posts to any language instantly for free (well, 500.000 characters / month) with DeepL Translate and Make. Links, images and Ghost Cards are preserved in the translation.
Steps to enable translation
- Register a free API account on DeepL Translate
- Create a custom Integration in Ghost
- Create an internal tag in Ghost, #translated / hash-translated
- Create a Scenario in Make with Ghost and DeepL
This is what we’ll have in Make when ready…
First, register a free API-account with DeepL Translate and save the API-key.
Then, set up a Custom integration for Make.com in Ghost
You need three things for Make integration…
- Admin API key
- API url
- Integration ID
Create the internal tag #translated
The Make scenario triggers on Post Published in Ghost. Since the scenario will/can publish a post, we have to cut the loop, else Make will continue to translate already translated posts… until we run out of Make credits.
And, if we leave the translated post as Draft, we don’t want it to translated again when we Publish.
In the next step we will set up a filter with this #translated tag so Make will not execute the translation if the tag is found.
Create the Scenario in Make
OK, here we go, a Blueprint json for this scenario in Make is available on this link, right-click to save.
- Add a Ghost Publish Post module, using the data from Ghost Custom integration
- Add a DeepL translate module, using the API key - translate the HTML field from Ghost module, and assign source and target language.
- Add a second DeepL translate module, translate the Title field from Ghost module, and assign source and target language.
- Add a Ghost Create Post module using the output from the two DeepL modules (HTML and Title). Add a hash-translated tag to the new post, and don’t forget the Feature Image. Suggestion: create new posts as Draft until you see everything working.
- Add a Filter after the first Ghost module to stop execution if the hash-translated tag is found. Here’s the filter set-up. Only posts which do not contain hash-translated are processed.
Done
Activate the scenario in Make and publish a post in Ghost. Your post, translated, shows up a few seconds later in Ghost.