Interface CustomTypeOptions

This interface can be augmented by users to add types to i18next default TypeOptions.

Usage:

// i18next.d.ts
import 'i18next';
declare module 'i18next' {
interface CustomTypeOptions {
defaultNS: 'custom';
returnNull: false;
returnObjects: false;
nsSeparator: ':';
keySeparator: '.';
jsonFormat: 'v4';
allowObjectInHTMLChildren: false;
resources: {
custom: {
foo: 'foo';
};
};
}
}

Hierarchy

  • CustomTypeOptions

Generated using TypeDoc