UNPKG

@intlayer/chokidar

Version:

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

32 lines 717 B
import { type Dictionary } from '@intlayer/core'; /** * * Should transform per locale dictionaries to multi-locale dictionaries * * Example: * * ```json5 * // .intlayer/dictionaries/home.fr.json * { 'key': 'home', 'locale': 'fr', 'content': { 'example': "value", ... } }, * ``` * * Result: * * ```json5 * // .intlayer/dictionaries/home.json * { * 'key': 'home', * 'content': { * 'example': { * 'nodeType': 'translation', * 'translation': { * 'fr': 'valeur', * } * }, ... } }, * ``` * * @param dictionary * @returns */ export declare const processPerLocaleDictionary: (dictionary: Dictionary) => Dictionary; //# sourceMappingURL=processPerLocaleDictionary.d.ts.map