# registerLanguage Function

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

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > JavaScript API > Browser Editor > registerLanguage Function
- **350 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/registerlanguage-function/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/registerlanguage-function/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/registerlanguage-function/llms-full.txt

---

Public function for registerLanguage.

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

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

### Syntax

```javascript
registerLanguage(language, resources)
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `language` | `string` | No | Value matching language's declared type and the owning object's validation rules. |
| `resources` | `Partial<Record<LocalizationKey, string>>` | No | Value matching resources's declared type and the owning object's validation rules. |

### Return Value

`void`.

### Examples

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

```javascript
import { registerLanguage } from '@txtextcontrol/tx-sheet-control';

const result = registerLanguage('de', { 'ribbon.home': 'Start' });
console.log(result);
```

### See Also

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

---

## Nearby

- **Previous:** [Range.values Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/range/values-property/llms-full.txt)
- **Next:** [shapeGeometry Function](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/shapegeometry-function/llms-full.txt)
