UNPKG

@intlayer/chokidar

Version:

Uses chokidar to scan and build Intlayer declaration files into dictionaries based on Intlayer configuration.

14 lines (13 loc) 695 B
import { IntlayerConfig } from "@intlayer/types/config"; import { Dictionary } from "@intlayer/types/dictionary"; //#region src/writeContentDeclaration/writeJSFile.d.ts /** * Updates a JavaScript/TypeScript file based on the provided JSON instructions. * It targets a specific dictionary object within the file (identified by its 'key' property) * and updates its 'content' entries. Currently, it focuses on modifying arguments * of 't' (translation) function calls. */ declare const writeJSFile: (filePath: string, dictionary: Dictionary, configuration: IntlayerConfig, noMetadata?: boolean) => Promise<void>; //#endregion export { writeJSFile }; //# sourceMappingURL=writeJSFile.d.ts.map