import { Config } from "../config"; type TPHPExporterParams = { config: Config; file: { content: { [k: string]: string; }; }; }; type TPHPExporter = { stringify: (params: TPHPExporterParams) => string; }; const phpExporter: TPHPExporter = { stringify: ({ config, file }) => { let fileContent = ` { fileContent += `'${key}' => __( '${key}', '${config.__themedomain}' ),\n`; }); fileContent += `];`; return fileContent; }, }; export default phpExporter;