UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

36 lines (32 loc) 1.15 kB
/** * Google Translate Node - Version 1 * Discriminator: resource=language, operation=translate */ interface Credentials { googleApi: CredentialReference; googleTranslateOAuth2Api: CredentialReference; } /** Translate data */ export type GoogleTranslateV1LanguageTranslateParams = { resource: 'language'; operation: 'translate'; /** * Authentication * @default serviceAccount */ authentication?: 'serviceAccount' | 'oAuth2' | Expression<string>; /** * The input text to translate */ text?: string | Expression<string> | PlaceholderValue; /** * The language to use for translation of the input text, set to one of the language codes listed in &lt;a href="https://cloud.google.com/translate/docs/languages"&gt;Language Support&lt;/a&gt;. Choose from the list, or specify an ID using an &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt;. */ translateTo?: string | Expression<string>; }; export type GoogleTranslateV1LanguageTranslateNode = { type: 'n8n-nodes-base.googleTranslate'; version: 1; credentials?: Credentials; config: NodeConfig<GoogleTranslateV1LanguageTranslateParams>; };