UNPKG

@intlayer/chokidar

Version:

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

11 lines (10 loc) 567 B
import { Dictionary } from "@intlayer/types/dictionary"; import { Locale } from "@intlayer/types/allLocales"; //#region src/writeContentDeclaration/transformJSFile.d.ts /** * Updates a JS/TS file seamlessly to map new localization keys, arrays, complex nodes and nested dictionaries gracefully using AST updates via Recast parser. */ declare const transformJSFile: (fileContent: string, dictionary: Dictionary, fallbackLocale?: Locale, noMetadata?: boolean) => Promise<string>; //#endregion export { transformJSFile }; //# sourceMappingURL=transformJSFile.d.ts.map