# generaltranslation: General Translation Core SDK: TranslateManyResult URL: https://generaltranslation.com/en-US/docs/core/types/translate-many-result.mdx --- title: TranslateManyResult description: Type definition for results returned by batch translation operations --- ## Overview `TranslateManyResult` represents the result of batch translation operations with [`translateMany`](/docs/core/class/methods/translation/translate-many). ```typescript type TranslateManyResult = TranslationResult[]; ``` It is simply an array of [`TranslationResult`](/docs/core/types/translation-result) objects, maintaining the same order as the input entries. ## Structure ```typescript type TranslationResult = RequestSuccess | TranslationError; ``` Each element is either a successful result or an error, checked via the `success` property. ## Examples ### Basic usage ```typescript copy import { GT, TranslateManyResult } from 'generaltranslation'; const gt = new GT({ apiKey: 'your-api-key', projectId: 'your-project-id' }); const results: TranslateManyResult = await gt.translateMany( ['Hello', 'Goodbye'], 'es' ); ``` ### Error handling ```typescript copy results.forEach((result, index) => { if (result.success) { console.log(`Entry ${index}: ${result.translation}`); } else { console.error(`Entry ${index} failed: ${result.error}`); } }); ``` ## Related types * [`TranslationResult`](/docs/core/types/translation-result) - Individual result structure * [`translateMany`](/docs/core/class/methods/translation/translate-many) - Method that returns this type