UNPKG

extract-react-intl-messages

Version:
23 lines (22 loc) 794 B
type Opts = { [key: string]: unknown; defaultLocale: string; format?: string; flat?: boolean; overwriteDefault?: boolean; indent?: number; }; declare const extractMessage: { (locales: string[], pattern: string, buildDir: string, { format, flat, defaultLocale, overwriteDefault, indent, ...opts }?: Opts): Promise<any[]>; extractReactIntl: (locales: string[], pattern: string, { defaultLocale, withDescriptions, cwd, cache: cacheEnabled, cacheLocation, ...pluginOptions }?: { [key: string]: unknown; defaultLocale?: string; cwd?: string; cache?: boolean; cacheLocation?: string; withDescriptions?: boolean; }) => Promise<{ [x: string]: Record<string, unknown>; }>; }; export default extractMessage;