# General Translation Platform: TranslateManyResult URL: https://generaltranslation.com/ru/docs/platform/core/reference/types/translate-many-result.mdx --- title: TranslateManyResult description: Массив результатов, возвращаемый при пакетном переводе. Справочник по API для типа TranslateManyResult. --- `TranslateManyResult` — это значение, которое возвращает [`translateMany`](/docs/platform/core/reference/gt-class-methods/translation/translate-many). Это массив объектов [`TranslationResult`](/docs/platform/core/reference/types/translation-result), расположенных в том же порядке, что и входные записи. ## Обзор [#overview] `TranslateManyResult` — это массив результатов перевода. Каждый элемент в нём — либо успешный результат, либо ошибка; тип определяется по свойству `success`. ```typescript type TranslateManyResult = TranslationResult[]; ``` Каждый элемент имеет структуру [`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; }; ``` ## Пример [#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 // Проверяем тип каждого элемента по свойству success results.forEach((result, index) => { if (result.success) { console.log(`Entry ${index}: ${result.translation}`); } else { console.error(`Entry ${index} failed: ${result.error}`); } }); ```