0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions108

Overview

The node "0CodeKit" provides a versatile toolbox of no-code utilities, including AI-powered features. Specifically, for the AI resource with the Translation operation, it translates input text from any language into a specified target language. This is useful in scenarios such as localizing content, enabling multilingual communication, or automating translation workflows.

For example, you can input a piece of English text and translate it into French, Spanish, or any other supported language. This helps businesses automate customer support responses, translate product descriptions, or process user-generated content in multiple languages.

Properties

Name Meaning
Text The text string that you want to translate.
Result Language The language code representing the target language to translate the text into. Supported options include many languages such as English (en), French (fr), Spanish (es), Chinese (zh), Arabic (ar), Russian (ru), and many others.
Code Variables Optional collection of code variables where each variable has a name/ID and a value. These are used when running code-related operations but are not directly relevant for translation.

Output

The node outputs a JSON array containing the translation results. Each item corresponds to an input item processed and includes the translated text under the json output field.

If the node supports binary data output for other operations, it would represent files or images, but for the AI Translation operation, the output is purely textual JSON data.

Dependencies

  • Requires an API key credential for authentication with the underlying 0CodeKit service.
  • The node makes HTTP POST requests to the 0CodeKit API endpoints corresponding to the selected resource and operation.
  • No additional environment variables are explicitly required beyond the API key credential.

Troubleshooting

  • Common issues:
    • Missing or invalid API key credential will cause authentication failures.
    • Providing empty or invalid text input may result in errors or empty translations.
    • Selecting an unsupported or incorrect language code could lead to unexpected results or errors.
  • Error messages:
    • Authentication errors typically indicate problems with the API key; ensure the credential is correctly configured.
    • Validation errors may occur if required parameters like "Text" or "Result Language" are missing.
    • Network or API errors should be retried or checked for service availability.

Links and References

  • 0CodeKit Documentation (for expressions and variable usage)
  • Language codes follow standard ISO 639-1 codes commonly used in translation APIs.

Discussion