Skip to main content
Defined in: i18n/types.ts:70 Custom language detector — step 3 of the resolution order (after the ctx.user preference and the provider-reported language). Return a locale code, or nothing to fall through to the default. Errors are logged (debug) and treated as “no answer”. A code with no registered locale is ignored.

Parameters

Returns

| string | null | undefined | Promise<string | null | undefined>