---
title: "GridJsWorkbook.TranslateSheetAsync"
url: "https://reference.aspose.com/cells/net/aspose.cells.gridjs/gridjsworkbook/translatesheetasync/"
product: "Aspose.Cells for .NET API Reference"
description: "GridJsWorkbook method. Translate all the string value to the target language in the worksheet"
---

## GridJsWorkbook.TranslateSheetAsync method

Translate all the string value to the target language in the worksheet

```csharp
public Task<string> TranslateSheetAsync(string uid, string sheetName, ITextTranslator translator, 
    string targetLanguage)
```

| Parameter | Type | Description |
| --- | --- | --- |
| uid | String | The unique id for the file cache. |
| sheetName | String | The sheet name |
| translator | ITextTranslator | The translator which implement translate function |
| targetLanguage  | String | The target language |

### Exceptions

| exception | condition |
| --- | --- |
| InvalidOperationException |  |

### See Also

* interface [ITextTranslator](../../itexttranslator/)
* class [GridJsWorkbook](../)
* namespace [Aspose.Cells.GridJs](../../../aspose.cells.gridjs/)
* assembly [Aspose.Cells.GridJs](../../../)


