0CodeKit icon

0CodeKit

A toolbox of no-code utilities

AI → Translation

AI-generated

Overview

The 0CodeKit node's "AI" Resource with the "Translation" Operation provides a no-code utility to translate text from one language to another. This is useful in workflows where you need to automatically convert content, messages, or user input into different languages for localization, communication, or data processing purposes.

Practical examples:

  • Translating customer support tickets into English for a global support team.
  • Localizing product descriptions for multiple markets.
  • Automatically converting survey responses into a common language for analysis.

Properties

Name Meaning
Text The text you want to translate. (Required)
Result Language The language to translate to. Options include: Abkhazian, Afrikaans, Albanian, Amharic, Arabic, ... Zulu

Output

The output will be a JSON object containing the result of the translation. While the exact structure depends on the API response, you can expect at least the translated text to be present, typically under a property such as result, translation, or similar.

Example output:

{
  "result": "Bonjour le monde"
}

or

{
  "translation": "Hola mundo"
}

If an error occurs and "Continue On Fail" is enabled, the output will contain an error field with the error message:

{
  "error": "Error: Invalid language code"
}

Dependencies

  • External Service: Requires access to the CodeKit API service.
  • 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 you provide a language code not supported by the API, you may receive an error like Invalid language code.
  • Empty text input: If the "Text" property is empty, the node may throw an error or return an empty result.
  • Network/API errors: Temporary connectivity issues or API downtime can cause failures.

Error handling:

  • If "Continue On Fail" is enabled, errors are returned in the output as an error field.
  • Otherwise, the workflow execution will stop on error.

Links and References

Discussion