This project is still in beta
Translate a Flow.ai Project
CLI to convert a Flow.ai exported project to a different language using Google Translate
Installation
- Install the latest version of node.js
- Get a a Google API key. Follow the instructions on the Google website
For the Google API you need to run a command to point to the application credentials file. For example:
export GOOGLE_APPLICATION_CREDENTIALS="/Users/myname/Sites/translator/env-something.json"
Usage
- Download a project export file
- Open a terminal screen and open the folder with the download
- Run
npm install -g translate-flow-project
Usage: translate-flow-project
These are options used in various situations:
--file Project file to convert
--output Destination file
--language Target language (2 letter ISO code)
--titles Target language for Flow and Step and other titles
--preserve-titles Do not translate UI titles of Flows, Steps etc
--only-intents Limit translation to intent examples
--only-intents-entities Limit translation to intent examples and entities
--help This message
--verbose Output debugging
Examples
Translate any intent, step or other titles to English, regardless of the chosen language for intents and replies.
translate-flow-project --titles en
Only translate the intent examples and replies but leave the flow and step titles untouched
translate-flow-project --preserve-titles