# General Translation Platform: TranslateManyResult URL: https://generaltranslation.com/it/docs/platform/core/reference/types/translate-many-result.mdx --- title: TranslateManyResult description: Array di risultati restituito dalla traduzione in batch. Riferimento API per il tipo TranslateManyResult. --- `TranslateManyResult` è il valore restituito da [`translateMany`](/docs/platform/core/reference/gt-class-methods/translation/translate-many). È un array di oggetti [`TranslationResult`](/docs/platform/core/reference/types/translation-result) nello stesso ordine degli elementi di input. ## Panoramica [#overview] `TranslateManyResult` è un array di risultati di traduzione. Ogni elemento rappresenta un esito positivo oppure un errore, identificato dalla proprietà `success`. ```typescript type TranslateManyResult = TranslationResult[]; ``` Ogni elemento segue la struttura di [`TranslationResult`](/docs/platform/core/reference/types/translation-result): ```typescript type TranslationResult = RequestSuccess | TranslationError; type RequestSuccess = TypedResult & { success: true; locale: string; }; type TranslationError = { success: false; error: string; code: number; }; ``` ## Esempio [#example] ```typescript import { GT } from 'generaltranslation'; import { TranslateManyResult } from 'generaltranslation/types'; const gt = new GT({ apiKey: 'your-api-key', projectId: 'your-project-id' }); const results: TranslateManyResult = await gt.translateMany( ['Hello', 'Goodbye'], 'es' ); ``` ```typescript // Filtra ogni elemento in base alla proprietà success results.forEach((result, index) => { if (result.success) { console.log(`Entry ${index}: ${result.translation}`); } else { console.error(`Entry ${index} failed: ${result.error}`); } }); ```