ThingWorx Flow > ThingWorx Flow SDK > Internationalization Support for Connectors
Internationalization Support for Connectors
All ThingWorx Flow connectors support Internationalization (i18n).
1. Open the command prompt, and then run the following command from your connector directory:
flow add locale <language>
For example, if you want to add English, type the following command:
flow add locale en.
A new file locales\en.json (English language) is created in your connector directory with the following sample template.
//format=i18next
{
// context: "<help for the translator> (optional)"
"<token name>": "<localized value>"
}
You can also create files for different languages by changing the language parameter. If you want to add French, you can create an fr.json file, and then update the values of all the tokens.
2. Update each JSON file properties of all the artifacts in the following format: <connectorName:tokenId>
Artifacts
Properties to be updated
action folder
label
tags
html
input: title, displayTitle, description
output: title, displayTitle
title
trigger folder
input: title,displayTitle, description
output: title, displayTitle
category
title
connection folder (\auth\connection)
title
label
input: title, displayTitle, description
output: title, displayTitle
tags
usage
where,
connectorName is the name of the connector in the package.json file
tokenID is the token value defined in the en.json file
3. Add or update the en.json file with all the tokens and values defined in the connector.
4. Save the changes, and then deploy the connector.
Was this helpful?