0-CodeKit icon

0-CodeKit

A toolbox of no-code utilities

Overview

The 0-CodeKit node, when configured with the AI resource and the Translation operation, translates input text from its original language into a specified target language. This is useful for automating multilingual workflows, such as translating customer messages, product descriptions, or any other text data within your n8n automation.

Practical examples:

  • Automatically translate support tickets to English before processing.
  • Localize marketing content by translating it into multiple languages.
  • Convert user-generated content into a common language for analysis.

Properties

Name Meaning
Text The text you want to translate.
Result Language The language to translate to. Options include a wide range of languages (e.g., English, French, Japanese, etc.).

Output

The output will be a JSON object containing the result of the translation. While the exact structure may depend on the API response, typically you can expect fields such as:

{
  "translatedText": "Bonjour le monde",
  "resultLang": "fr"
}
  • translatedText: The translated version of the input text.
  • resultLang: The language code of the translation result.

Additional metadata may be included depending on the underlying service.

Dependencies

  • External Service: Requires access to the CodeKit API.
  • API Key: You must configure the codeKitApi credential in n8n for authentication.

Troubleshooting

Common issues:

  • Missing or invalid API key: Ensure the codeKitApi credential is set up correctly in n8n.
  • Unsupported language code: If an invalid or unsupported language code is provided, the node may return an error.
  • Empty input text: If the "Text" property is empty, the node will likely fail or return no translation.

Error messages:

  • "error":"Request failed with status code 401": Check your API credentials.
  • "error":"Invalid language code": Verify that the selected "Result Language" is supported.
  • "error":"Text parameter missing": Make sure the "Text" field is filled in.

Links and References

Discussion