- i18next(
options: RemixI18NextOption | RemixI18Next,
): MiddlewareHandler<Env, string, {}> Parameters
- options: RemixI18NextOption | RemixI18Next
Returns MiddlewareHandler<Env, string, {}>
Methods
get
- get(c: Context<Env, any, {}>): RemixI18Next
Returns RemixI18Next
getFixedT
- getFixedT<Ns extends string = "translation">(
c: Context<Env, any, {}>,
__namedParameters?: { namespace?: Ns },
): Promise<TFunction<FallbackNs<Ns>, undefined>> Type Parameters
- Ns extends string = "translation"
Parameters
- c: Context<Env, any, {}>
- __namedParameters: { namespace?: Ns } = {}
Returns Promise<TFunction<FallbackNs<Ns>, undefined>>
getLocale
- getLocale(c: Context<Env, any, {}>): string
Returns string