# registerLanguage Function

> registerLanguage function in the Angular package: Registers LocalizationResources under a language name and returns void, with a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > TypeScript API > Angular > registerLanguage Function
- **363 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/registerlanguage-function/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/registerlanguage-function/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/registerlanguage-function/llms-full.txt

---

Public function for registerLanguage.

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

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

### Syntax

```typescript
registerLanguage(language: string, resources: LocalizationResources): void
```

### 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.

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

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

### See Also

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

---

## Nearby

- **Previous:** [LocalizationResources Type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/localizationresources/llms-full.txt)
- **Next:** [SaveOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/saveoptions/llms-full.txt)
