๐ŸŽซ Translate files attached to Jira issues with Redokun and n8n

Your team tracks its work in Jira, and some issues come with a file to translate: the strings of your app, release notes, a manual. This tutorial sets up a workflow that does the translation from the issue itself. You move the issue to a status, and a few minutes later the translated files are attached to it.

๐Ÿงช The Redokun API is in beta. Some things may not work as expected or may change. Tell us what works and what doesn't in the feedback form.

๐Ÿงฉ This workflow is an example. It works as it is, and it is meant as a starting point: you can change it to fit the way your team works. We can help with the Redokun side, but we can't offer support for changes to the workflow.

๐Ÿ” What this automation does

  1. An issue in your Jira project has one or more files attached, for example an XLIFF file with the strings of your app.
  2. You move the issue to the status To translate.
  3. The workflow moves it to In translation, sends the files to Redokun, and translates them with your Translation Memory and AI, into every language you set.
  4. The workflow attaches the translated files to the issue, adds a comment that lists them, and moves the issue to Translated.

The workflow checks your project every 15 minutes. Nobody has to open Redokun or n8n.

โœ… Before you start

  • n8n set up for Redokun. Follow ๐Ÿค– Automate Redokun with n8n for your n8n account and your Redokun credential.
  • A Jira Cloud site, with a project where you can add statuses. The free plan is enough.
  • About 20 minutes.

๐Ÿ“‹ Step 1: Add three statuses to your Jira project

On the board of your project, add three columns: To translate, In translation and Translated. In Jira, each column you add creates a status with the same name.

You can keep your other columns: the workflow only looks at these three.

๐Ÿ”‘ Step 2: Create an API token in Atlassian

  1. Open id.atlassian.com/manage-profile/security/api-tokens.
  2. Click Create API token, give it a name you will recognize, for example Redokun n8n, and choose an expiry date.
  3. Copy the token. Keep it safe: it works like a password, and Atlassian shows it only once.

๐Ÿ” Step 3: Add the token to n8n

  1. In n8n, open Credentials and click Create credential.
  2. Search for Jira and select the one for Jira Cloud.
  3. Fill in the three fields: the email of your Atlassian account, the token, and the address of your Jira site, for example https://yourcompany.atlassian.net  .
  4. Click Save.

๐Ÿ“ฅ Step 4: Import the template

  1. In n8n, create a new workflow.
  2. Open the menu with the three dots at the top right and choose Import from URL.
  3. Paste this link and confirm:
https://redokun-public-static-files.redokun.workers.dev/helpscout/downloadable/n8n-redokun-template-jira.json

๐Ÿ”Œ Step 5: Connect your credentials

  1. Open the side panel and go to the Setup tab.
  2. For each Redokun step, select your Redokun credential.
  3. For each Jira step, select the Jira credential you created in Step 3.

โš™๏ธ Step 6: Set your project and your languages

Open the step Config and change these values:

  • project: the name of your Jira project, as you see it in Jira.
  • sourceLanguage: the language code of your files, for example en.
  • targetLanguages: the language codes to translate into, separated by commas, for example it, fr-FR.
  • aiVendor: the AI engine for the translation. Write OPEN_AI, or GOOGLE_TRANSLATE.
  • toTranslateStatus, inTranslationStatus, translatedStatus: the names of your three statuses. Change them only if you named them differently. Capital letters don't matter.

This is the only step you need to change.

โ–ถ๏ธ Step 7: Test it

  1. In Jira, attach a short file to an issue.
  2. Move the issue to To translate.
  3. In n8n, click Execute workflow.
  4. Wait a minute or two, then look at the issue in Jira. The translated files are attached, one for each language, named after the original file and the language, for example app-strings-Italian.xliff. There is a new comment, and the issue is in Translated.

๐Ÿš€ Step 8: Turn it on

Click Publish. From now on the workflow checks your project every 15 minutes: you only move issues to To translate.

๐Ÿ—‚๏ธ What each status tells you

Status What it means
To translate The workflow takes these issues at its next check. An issue that stays here has no file the workflow can translate
In translation Redokun is translating the files. This takes a few minutes
Translated The translated files are attached to the issue

๐Ÿ“„ Which files you can translate

The workflow translates every attached file in one of these formats: .xliff, .xlf, .json, .xml, .html, .txt and .srt, and also Word (.docx), PowerPoint (.pptx), Excel (.xlsx), InDesign (.idml) and PDF files. It ignores the other attachments, such as screenshots.

๐Ÿ› ๏ธ Troubleshooting

  • An issue stays in To translate: it has no attachment in a supported format. Attach the file and wait for the next check.
  • The workflow stops with "The status ... was not found": the name of a status in Config is not the name of a status in your project, or your Jira workflow doesn't allow an issue to move to it. Check the three names.
  • An issue stays in In translation: the workflow stopped while it was working on it. Open Executions in n8n to see the error, fix it, and move the issue back to To translate.
  • Redokun could not read the file: the file is damaged or not valid. Check it and attach it again.
  • Confirm and generate fails with a payment error: your Redokun plan doesn't have enough words left for that file.

๐Ÿ’ก Good to know

  • All the files of an issue are translated. If an issue has three files in a supported format, you get the translations of all three.
  • Translated files are not translated again. If you move an issue back to To translate, the workflow skips the files it attached before. It recognizes them from the list in its own comment, so don't delete that comment.
  • Each language uses words from your plan. A file translated into three languages counts three times.
  • Translations are confirmed and locked. To change one, unlock it in the Redokun web app, make your changes, and download the file again.
  • Your files stay in Redokun. Every file the workflow translates also appears in your Redokun account, with its translations.

๐Ÿงฉ Make it yours

  • Add a review. Assign translators and wait for their confirmation before the files are attached, as in ๐Ÿ“‚ Translate files in bulk from a folder, with your translators.
  • Tell the team. Add a Slack or email step after Comment on issue.
  • Check more or less often. Change the interval in the step Every 15 minutes.
  • Start from a label. Change the search in the step Issues to translate to find issues by label and not by status.

๐Ÿ’ฌ Feedback and support

Tell us which tools you'd like to connect next in the feedback form.

If you are stuck or something does not work, write to support@redokun.com and we will help you.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us