mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
30d83d0bc2
* Created the node for DeepL translator tool Still missing a few additional fields but functionality is ok for most cases. * Added optional fields for Deepl and separated description to a separate file * Fixed linting issue * 🎨 Replace PNG with SVG icon * 💄 Adjust style to codebase conventions * 🔨 Refactor types * ⚡ Simplify error handling * ⚡ Add always open edit window for text field * ✏️ Edit descriptions in text operations * ⚡ Fix source language for English EN-GB and EN-US are not supported as source languages, but EN is. * 💄 Apply cosmetic changes * ⚡ Small improvement * ⚡ Remove not needed Authentication selection Co-authored-by: Iván Ovejero <ivov.src@gmail.com> Co-authored-by: ricardo <ricardoespinoza105@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
16 lines
329 B
TypeScript
16 lines
329 B
TypeScript
import { ICredentialType, NodePropertyTypes } from 'n8n-workflow';
|
|
|
|
export class DeepLApi implements ICredentialType {
|
|
name = 'deepLApi';
|
|
displayName = 'DeepL API';
|
|
documentationUrl = 'deepL';
|
|
properties = [
|
|
{
|
|
displayName: 'API Key',
|
|
name: 'apiKey',
|
|
type: 'string' as NodePropertyTypes,
|
|
default: '',
|
|
},
|
|
];
|
|
}
|