<!--- translatedErrors.stories.mdx --->

import { Meta } from '@storybook/addon-docs';

<Meta title="utils/translatedErrors" />

# Imports

```js
import { translatedErrors } from '@strapi/helper-plugin';
```

## Usage

Returns the intl key for the common errors in order to avoid recreating them;

```js
const errorsTrads = {
  email: 'components.Input.error.validation.email',
  json: 'components.Input.error.validation.json',
  max: 'components.Input.error.validation.max',
  maxLength: 'components.Input.error.validation.maxLength',
  min: 'components.Input.error.validation.min',
  minLength: 'components.Input.error.validation.minLength',
  regex: 'components.Input.error.validation.regex',
  required: 'components.Input.error.validation.required',
  unique: 'components.Input.error.validation.unique',
  integer: 'component.Input.error.validation.integer',
};
```
