Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
AI → Translate Text
AI-generatedOverview
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/translateendpoint 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
- 0CodeKit API Documentation (assumed base URL; check official docs for details)
- n8n documentation on creating custom nodes for further customization guidance