UNPKG

babel-plugin-i18next-extract

Version:

Statically extract translation keys from i18next application.

16 lines (15 loc) 509 B
import * as BabelCore from "@babel/core"; import { CommentHint } from "./comments"; import { Config } from "./config"; import { ExtractedKey } from "./keys"; export interface VisitorState extends BabelCore.PluginPass { opts: Partial<Config>; I18NextExtract: I18NextExtractState; } interface I18NextExtractState { extractedKeys: ExtractedKey[]; commentHints: CommentHint[]; config: Config; } export default function (api: BabelCore.ConfigAPI): BabelCore.PluginObj<VisitorState>; export {};