UNPKG

@intlayer/chokidar

Version:

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

25 lines (24 loc) 1.16 kB
import { UnmergedDictionaryOutput } from "./writeUnmergedDictionary.js"; import { MergedDictionaryOutput } from "./writeMergedDictionary.js"; import { LocalizedDictionaryOutput } from "./writeDynamicDictionary.js"; import { IntlayerConfig } from "@intlayer/types/config"; import { Dictionary } from "@intlayer/types/dictionary"; import { OUTPUT_FORMAT } from "@intlayer/config/defaultValues"; //#region src/buildIntlayerDictionary/buildIntlayerDictionary.d.ts type BuildDictionariesOptions = Partial<{ formats: typeof OUTPUT_FORMAT; importOtherDictionaries: boolean; env: 'prod' | 'dev'; }>; /** * This function transpile the bundled code to to make dictionaries as JSON files */ declare const buildDictionary: (localDictionariesEntries: Dictionary[], configuration: IntlayerConfig, options?: BuildDictionariesOptions) => Promise<{ unmergedDictionaries: UnmergedDictionaryOutput; mergedDictionaries: MergedDictionaryOutput; dynamicDictionaries: LocalizedDictionaryOutput; fetchDictionaries: LocalizedDictionaryOutput; }>; //#endregion export { BuildDictionariesOptions, buildDictionary }; //# sourceMappingURL=buildIntlayerDictionary.d.ts.map