# General Translation Platform: TranslateManyResult URL: https://generaltranslation.com/ja/docs/platform/core/reference/types/translate-many-result.mdx --- title: TranslateManyResult description: バッチ翻訳で返される結果配列。TranslateManyResult 型の API リファレンス。 --- `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}`); } }); ```