[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/i18n](../README) / I18nConfig

# Function: I18nConfig()

> **I18nConfig**(`options?`): [`I18nConfigShape`](../interfaces/I18nConfigShape)

Defined in: [i18n/src/config.ts:34](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/i18n/src/config.ts#L34)

Build the i18n configuration block.

## Parameters

### options?

`Partial`\<[`I18nConfigShape`](../interfaces/I18nConfigShape)\> = `{}`

## Returns

[`I18nConfigShape`](../interfaces/I18nConfigShape)

## Example

```ts
// config/i18n.ts
import { I18nConfig } from '@zerotal/i18n';
export default I18nConfig({
  supportedLocales: ['en', 'fr', 'es'],
  loadPath: 'resources/lang',
});
```
