@intlayer/chokidar
Version:
Uses chokidar to scan and build Intlayer declaration files into dictionaries based on Intlayer configuration.
56 lines (55 loc) • 2.32 kB
TypeScript
import { Dictionary } from "@intlayer/types/dictionary";
//#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: import("@intlayer/core/messageFormat").JsonValue;
$schema?: "https://intlayer.org/schema.json";
id?: import("@intlayer/types").DictionaryId;
projectIds?: string[];
localId?: import("@intlayer/types").LocalDictionaryId;
localIds?: import("@intlayer/types").LocalDictionaryId[];
key: import("@intlayer/types").DictionaryKey;
title?: string;
description?: string;
versions?: string[];
version?: string;
filePath?: string;
tags?: string[];
locale?: import("@intlayer/types").LocalesValues;
contentAutoTransformation?: import("@intlayer/types").ContentAutoTransformation;
fill?: import("@intlayer/types").Fill;
filled?: true;
priority?: number;
importMode?: import("@intlayer/types").ImportMode;
location?: import("@intlayer/types").DictionaryLocation;
schema: undefined;
};
declare const formatDictionariesOutput: (dictionaries: Dictionary[], format: Dictionary["format"]) => (Dictionary | {
format: string;
content: import("@intlayer/core/messageFormat").JsonValue;
$schema?: "https://intlayer.org/schema.json";
id?: import("@intlayer/types").DictionaryId;
projectIds?: string[];
localId?: import("@intlayer/types").LocalDictionaryId;
localIds?: import("@intlayer/types").LocalDictionaryId[];
key: import("@intlayer/types").DictionaryKey;
title?: string;
description?: string;
versions?: string[];
version?: string;
filePath?: string;
tags?: string[];
locale?: import("@intlayer/types").LocalesValues;
contentAutoTransformation?: import("@intlayer/types").ContentAutoTransformation;
fill?: import("@intlayer/types").Fill;
filled?: true;
priority?: number;
importMode?: import("@intlayer/types").ImportMode;
location?: import("@intlayer/types").DictionaryLocation;
schema: undefined;
})[];
//#endregion
export { formatDictionaries, formatDictionariesOutput, formatDictionary, formatDictionaryOutput };
//# sourceMappingURL=formatDictionary.d.ts.map