extract-react-intl-messages
Version:
Extract react-intl messages
12 lines (11 loc) • 448 B
TypeScript
type LocaleMap = Record<string, Record<string, unknown>>;
type Options = {
[key: string]: unknown;
defaultLocale?: string;
cwd?: string;
cache?: boolean;
cacheLocation?: string;
withDescriptions?: boolean;
};
declare const _default: (locales: string[], pattern: string, { defaultLocale, withDescriptions, cwd, cache: cacheEnabled, cacheLocation, ...pluginOptions }?: Options) => Promise<LocaleMap>;
export default _default;