Installation
npm install --save @types/i18next-node-fs-backend
Summary
This package contains type definitions for i18next-node-fs-backend (https://github.com/i18next/i18next-node-fs-backend).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/i18next-node-fs-backend.
declare namespace I18next {
interface I18nextOptions extends i18nextNodeFsBackEnd.I18nextOptions {}
}
declare namespace i18nextNodeFsBackEnd {
interface i18nextNodeFsBackEndOptions {
loadPath: string;
addPath: string;
jsonIndent: number;
parse?: ((data: any) => any) | undefined;
}
interface I18nextOptions {
backend?: i18nextNodeFsBackEndOptions | undefined;
}
}
declare module "i18next-node-fs-backend" {
import * as i18next from "i18next";
class Backend implements i18next.BackendModule<i18nextNodeFsBackEnd.i18nextNodeFsBackEndOptions> {
type: "backend";
constructor(services?: any, options?: i18nextNodeFsBackEnd.i18nextNodeFsBackEndOptions);
init(
services: i18next.Services,
backendOptions?: i18nextNodeFsBackEnd.i18nextNodeFsBackEndOptions,
i18nextOptions?: i18next.InitOptions,
): void;
read(language: string, namespace: string, callback: i18next.ReadCallback): void;
create(languages: string[], namespace: string, key: string, fallbackValue: string): void;
}
const module: typeof Backend;
export = module;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: i18next
Credits
These definitions were written by Cyril Schumacher, and Silas Rech.