Lola Language icon

Lola Language

Lola language detection and translations

Overview

The Lola Language node provides language processing capabilities within n8n workflows. It supports three main operations: detecting the language of a given text, translating text to another language, and (planned) rephrasing text while keeping its meaning. This node is useful for automating multilingual workflows, such as auto-detecting user input language, translating messages or documents, and preparing content for international audiences.

Practical examples:

  • Automatically detect the language of customer support tickets.
  • Translate incoming emails or chat messages into a preferred language.
  • (Planned) Rephrase marketing copy for A/B testing.

Properties

Name Meaning
Operation Selects the action to perform:
- Detect Language: Detect the language of a text
- Translate: Translate a text
- Rephrase: Rephrase a text keeping the same meaning
Input Text The text to be processed.
Target Language Code The target language code (2 letters). Required when "Translate" is selected.
Source Language Code The source language code (2 letters). Optional, used when "Translate" is selected.
Metadata Additional metadata as key-value pairs. Only available for the "Translate" operation.

Output

  • The output will contain all original input fields, plus an additional field:
    • lola_lang_response: Contains the result of the selected operation.
      • For Detect Language: Likely includes detected language information.
      • For Translate: Likely includes translated text and possibly language codes.
      • For Rephrase: Not implemented; throws an error if selected.

Example output structure:

{
  "text": "Hello, how are you?",
  "lola_lang_response": {
    // Result from the language operation (e.g., detected language, translation)
  }
}

Dependencies

  • May require a credential named lolaKeyApi (not strictly required).
  • Relies on external functions for language detection and translation (from bundled dependencies).

Troubleshooting

  • "Rephrase is not implemented yet": If you select the "Rephrase" operation, the node will throw this error. To resolve, use only "Detect Language" or "Translate".
  • Missing required property: If "Target Language Code" is not provided for translation, the node may fail.
  • API/Service errors: If the underlying service for detection or translation is unavailable or misconfigured, errors may occur.

Links and References

  • n8n Documentation
  • (If using a third-party Lola API, refer to its documentation for supported language codes and features.)

Discussion