# getLanguageResources Function

> getLanguageResources function in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > getLanguageResources Function
- **312 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/getlanguageresources-function/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/getlanguageresources-function/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/getlanguageresources-function/llms-full.txt

---

Public function for getLanguageResources.

Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

ES module import: `import { getLanguageResources } from '@txtextcontrol/tx-sheet-control';`.

### Syntax

```typescript
getLanguageResources(language?: string): Readonly<Record<LocalizationKey, string>>
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `language` | `string \| undefined` | Yes | Value matching language's declared type and the owning object's validation rules. |

### Return Value

`Readonly<Record<LocalizationKey, string>>`.

### Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

```typescript
import { getLanguageResources } from '@txtextcontrol/tx-sheet-control';

const result = getLanguageResources();
console.log(result);
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## Nearby

- **Previous:** [getControl Function](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/getcontrol-function/llms-full.txt)
- **Next:** [getRegisteredLanguages Function](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/getregisteredlanguages-function/llms-full.txt)
