/** * 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; /** * The input text to 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>. */ translateTo?: string | Expression; }; export type GoogleTranslateV1LanguageTranslateNode = { type: 'n8n-nodes-base.googleTranslate'; version: 1; credentials?: Credentials; config: NodeConfig; };