Skip to main content
Configure target locales in your agentic workflow to specify which languages it supports. Use Python APIs in your agentic workflow code to configure these settings. Use the target_locales() method on your agentic workflow to specify which languages it supports:
Python

Setting the source locale

By default, the source locale is en (English). Change it using the source_locale() method:
Python

Enabling or disabling translation

Enable or disable translation support explicitly:
Python
When you disable translation, the system ignores the target_locales() configuration and applies no translations.

Complete example

The following example shows a customer feedback form with multi-language support:
Python

Next steps

After you configure target locales in your agentic workflow code:
  1. Import the agentic workflow into watsonx Orchestrate.
  2. Export translations to a CSV file.
  3. Add translations to the CSV file.
  4. Import translations back into the agentic workflow.
For details on managing translations, see Managing translations.