UNPKG

@lingui/cli

Version:

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

14 lines (13 loc) 428 B
import { getConfig, } from "@lingui/conf"; import { extractFromChunk } from "../extractFromChunk.js"; let linguiConfig; const extractWorker = async (linguiConfigPath, bundleFile) => { if (!linguiConfig) { linguiConfig = getConfig({ configPath: linguiConfigPath, skipValidation: true, }); } return await extractFromChunk(bundleFile, linguiConfig); }; export { extractWorker };