UNPKG

intl-watcher

Version:

Automated translation key extraction and dictionary management plugin for Next.js

10 lines (8 loc) 698 B
declare function runOnce(fn: () => void): void; declare function readDictionaryFile(filepath: string): Record<string, string | undefined>; declare function writeDictionaryFile(filepath: string, messages: Record<string, unknown>): void; declare function formatDuration(ms: number): string; declare function flattenDictionary(dictionary: Record<string, unknown>, prefix?: string): Record<string, unknown>; declare function unflattenDictionary(dictionary: Record<string, unknown>): Record<string, unknown>; declare function getCommonPrefix(words: string[]): string; export { flattenDictionary, formatDuration, getCommonPrefix, readDictionaryFile, runOnce, unflattenDictionary, writeDictionaryFile };