translate-flow-project

0.0.2 • Public • Published

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

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

Package Sidebar

Install

npm i translate-flow-project

Homepage

flow.ai

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

15.5 kB

Total Files

4

Last publish

Collaborators

  • g33za
  • horidon
  • slava.flow