Skip to content

basalt / i18n/src / I18nOptions

Interface: I18nOptions<C> ​

Defined in: i18n/src/i18n.ts:16

Type Parameters ​

C ​

C extends Catalog

Properties ​

defaultLocale ​

> defaultLocale: string

Defined in: i18n/src/i18n.ts:18


locales ​

> locales: Record<string, C>

Defined in: i18n/src/i18n.ts:17


resolveLocale? ​

> optional resolveLocale?: () => string | undefined

Defined in: i18n/src/i18n.ts:23

Resolves the request's locale. Default: ctx().user.locale then ctx().tenant.locale — set either on your user/tenant records.

Returns ​

string | undefined

Released under the MIT License.