---
title: setGlobalMessage
description: Sets a global error message.
source: /storages/globalMessage/globalMessage.ts
contributors:
  - fabian-hiller
---

import { Property } from '~/components';
import { properties } from './properties';

# setGlobalMessage

Sets a global error message.

```ts
v.setGlobalMessage(message, lang);
```

## Parameters

- `message` <Property {...properties.message} />
- `lang` <Property {...properties.lang} />
