intl-watcher
Version:
Automated translation key extraction and dictionary management plugin for Next.js
21 lines (18 loc) • 732 B
TypeScript
import { Project } from 'ts-morph';
import { CreateIntlWatcherOptions, IntlWatcherOptions } from './types.js';
import 'type-fest';
declare function buildIntlWatcherOptions(options: CreateIntlWatcherOptions): IntlWatcherOptions;
declare class IntlWatcher {
private readonly _options;
private readonly _project;
private _isSelfTriggerGuardActive;
private readonly _changedFiles;
constructor(_options: IntlWatcherOptions, _project?: Project);
startWatching(): void;
scanSourceFilesForTranslationKeys(): void;
private synchronizeDictionaryFile;
private shouldProcessFile;
private partitionTranslationKeys;
private enabledSelfTriggerGuard;
}
export { IntlWatcher, buildIntlWatcherOptions };