UNPKG

@intlayer/chokidar

Version:

Scans and builds Intlayer declaration files into dictionaries based on Intlayer configuration.

58 lines (57 loc) 2.32 kB
import { Dictionary } from "@intlayer/types/dictionary"; import * as _$_intlayer_types0 from "@intlayer/types"; import * as _$_intlayer_core_messageFormat0 from "@intlayer/core/messageFormat"; //#region src/formatDictionary.d.ts declare const formatDictionary: (dictionary: Dictionary) => Dictionary; declare const formatDictionaries: (dictionaries: Dictionary[]) => Promise<Dictionary[]>; declare const formatDictionaryOutput: (dictionary: Dictionary, format: Dictionary["format"]) => Dictionary | { format: string; content: _$_intlayer_core_messageFormat0.JsonValue; $schema?: "https://intlayer.org/schema.json"; id?: _$_intlayer_types0.DictionaryId; projectIds?: string[]; localId?: _$_intlayer_types0.LocalDictionaryId; localIds?: _$_intlayer_types0.LocalDictionaryId[]; key: _$_intlayer_types0.DictionaryKey; title?: string; description?: string; versions?: string[]; version?: string; filePath?: string; tags?: string[]; locale?: _$_intlayer_types0.LocalesValues; contentAutoTransformation?: _$_intlayer_types0.ContentAutoTransformation; fill?: _$_intlayer_types0.Fill; filled?: true; priority?: number; importMode?: _$_intlayer_types0.ImportMode; location?: _$_intlayer_types0.DictionaryLocation; schema: undefined; }; declare const formatDictionariesOutput: (dictionaries: Dictionary[], format: Dictionary["format"]) => (Dictionary | { format: string; content: _$_intlayer_core_messageFormat0.JsonValue; $schema?: "https://intlayer.org/schema.json"; id?: _$_intlayer_types0.DictionaryId; projectIds?: string[]; localId?: _$_intlayer_types0.LocalDictionaryId; localIds?: _$_intlayer_types0.LocalDictionaryId[]; key: _$_intlayer_types0.DictionaryKey; title?: string; description?: string; versions?: string[]; version?: string; filePath?: string; tags?: string[]; locale?: _$_intlayer_types0.LocalesValues; contentAutoTransformation?: _$_intlayer_types0.ContentAutoTransformation; fill?: _$_intlayer_types0.Fill; filled?: true; priority?: number; importMode?: _$_intlayer_types0.ImportMode; location?: _$_intlayer_types0.DictionaryLocation; schema: undefined; })[]; //#endregion export { formatDictionaries, formatDictionariesOutput, formatDictionary, formatDictionaryOutput }; //# sourceMappingURL=formatDictionary.d.ts.map