UNPKG

@lingui/cli

Version:

Lingui CLI to extract messages, compile catalogs, and manage translation workflows

6 lines (5 loc) 605 B
import { Experimental__BatchExtractorType, ExtractedMessage, ExtractorType, LinguiConfigNormalized, PerFileExtractorType } from "@lingui/conf"; export declare function isBatchExtractor(ext: ExtractorType): ext is Experimental__BatchExtractorType; export declare function isPerFileExtractor(ext: ExtractorType): ext is PerFileExtractorType; export declare const getConfiguredExtractors: (linguiConfig: LinguiConfigNormalized) => ExtractorType[]; export default function extract(filename: string, onMessageExtracted: (msg: ExtractedMessage) => void, linguiConfig: LinguiConfigNormalized): Promise<boolean>;