/** * LingvaNex Node - Version 1 * Consume LingvaNex API */ export interface LingvaNexV1Params { operation?: 'translate'; /** * The input text to translate * @displayOptions.show { operation: ["translate"] } */ text?: string | Expression | PlaceholderValue; /** * The language to use for translation of the input text, set to one of the language codes listed in <a href="https://cloud.google.com/translate/docs/languages">Language Support</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @displayOptions.show { operation: ["translate"] } */ translateTo?: string | Expression; /** * Additional Options * @displayOptions.show { operation: ["translate"] } * @default {} */ options?: { /** The language code in the format “language code_code of the country”. If this parameter is not present, the auto-detect language mode is enabled. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ from?: string | Expression; /** Platform * @default api */ platform?: string | Expression | PlaceholderValue; /** Describe the input text format. Possible value is "html" for translating and preserving html structure. If value is not specified or is other than "html" than plain text is translating. */ translateMode?: string | Expression | PlaceholderValue; }; } export interface LingvaNexV1Credentials { lingvaNexApi: CredentialReference; } interface LingvaNexV1NodeBase { type: 'n8n-nodes-base.lingvaNex'; version: 1; credentials?: LingvaNexV1Credentials; } export type LingvaNexV1ParamsNode = LingvaNexV1NodeBase & { config: NodeConfig; }; export type LingvaNexV1Node = LingvaNexV1ParamsNode;