0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

AI → Translate Text

AI-generated

Overview

The node provides a translation utility under the "AI" resource with the "Translate Text" operation. It translates given text content from any language into a specified target language. This is useful for automating multilingual content workflows, localizing user-generated content, or integrating translation capabilities into broader automation processes.

For example, you can input a customer support message in English and translate it to Spanish before sending it to a regional support team, or translate product descriptions into multiple languages for an e-commerce platform.

Properties

Name Meaning
Text Content The text content to translate to another language. Example: "Hello, how are you today?"
Target Language The language to translate the text into. Options: Chinese, English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish

Output

The node outputs JSON data containing the translated text. The exact structure is not detailed in the source code snippet, but typically it will include at least a field with the translated string corresponding to the input text.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authentication to the external 0CodeKit service.
  • The node sends a POST request to the /ai/translate endpoint of the 0CodeKit API.
  • The base URL for requests is https://prod.0codekit.com.
  • Proper configuration of the API key credential within n8n is necessary for successful execution.

Troubleshooting

  • Common issues:

    • Missing or invalid API key credential will cause authentication failures.
    • Providing empty or excessively long text may result in errors or truncated translations.
    • Selecting an unsupported target language (not in the provided options) will likely cause the request to fail.
  • Error messages:

    • Authentication errors usually indicate problems with the API key setup.
    • Validation errors may occur if required properties like "Text Content" or "Target Language" are missing.
    • Network or server errors could happen if the external API is unreachable.

To resolve these:

  • Ensure the API key credential is correctly configured and active.
  • Provide valid, non-empty text and select a supported target language.
  • Check network connectivity and the status of the 0CodeKit API service.

Links and References

Discussion