Closed optyler closed 7 years ago
We use your grunt-search module to search translation key in our source files here is config :
grunt-search
search: { inlineStyles: { files: { src: ["views/**/*.hbs", "views/*.hbs", "public/javascripts/*.js"] }, options: { searchString:/(?:trads|\$\.i18n)\._\((["'])[^\1]*?\1\)/g, logFormat: 'json', logFile: "./scripts/frontTranslation/translationTestResults.json" } } },
We want logFile contains only the matched strings with some custom search and replace... I saw the customLogFormatCallback but I don't figure out how I can write my custom result in the final file...
customLogFormatCallback
We use your
grunt-search
module to search translation key in our source files here is config :We want logFile contains only the matched strings with some custom search and replace... I saw the
customLogFormatCallback
but I don't figure out how I can write my custom result in the final file...