# I18nOptions

`interface` in `plugin-i18n` · v0.1.0

<https://seedcord.org/docs/packages/plugin-i18n/0.1.0/interfaces/i18n-options>

The options [`I18n`](/docs/packages/plugin-i18n/0.1.0/classes/i18n) takes.

```ts
interface I18nOptions
```

## Properties

### base

```ts
readonly base?: LocaleCode
```

The locale whose file lists every message and the variables each one takes. Defaults to `en-US`.

### path

```ts
readonly path?: string
```

The folder that holds one `.ftl` file per locale, and one `.ts` file per locale for command translations. Defaults to `./locales`.

### resolveLocale

```ts
readonly resolveLocale?: (origin: DispatchOrigin) => Promisable<LocaleCode | null | undefined>
```

Picks the locale for an interaction or event, like a language that the user picked in your bot. When it
returns `undefined` or `null`, the plugin uses the user's Discord language, then the guild's, then `base`.
