# EditorUi.setResources Method

> EditorUi.setResources method in the TX Sheet Control TypeScript API for Node.js: Applies application localization overrides to the current interface language.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > EditorUi > EditorUi.setResources Method
- **425 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/setresources-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/setresources-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/setresources-method/llms-full.txt

---

Applies application localization overrides to the current interface language.

Owner: [EditorUi](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

### Syntax

```typescript
setResources(resources: LocalizationResources): string
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `resources` | `Partial<Record<LocalizationKey, string>>` | No | Localized strings keyed by supported resource names. |

### Return Value

`string`.

The language currently applied to the editor.

### Examples

Pass an existing EditorUi from the owning document. Related handles and input bytes must belong to the intended document and application; the function applies the operation and inspects its result.

```typescript
function applyEditorUiSetResources(editorUi: { setResources(argument0: Partial<Record<string, string>>): unknown }) {
    const result = editorUi['setResources']({ 'ribbon.home': 'Start' });
    console.log(result);
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [EditorUi Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)
- [LocalizationResources Type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/localizationresources/llms-full.txt)

---

## Nearby

- **Previous:** [EditorUi.selectSheet Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/selectsheet-method/llms-full.txt)
- **Next:** [EditorUi.setTheme Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/settheme-method/llms-full.txt)
