File "makepot.js"

Full Path: /home/warrior1/public_html/wp-content-20241001222009/plugins/facebook-for-woocommerce/vendor/skyverge/wc-plugin-framework/grunt/configs/makepot.js
File size: 782 bytes
MIME-type: text/plain
Charset: utf-8

/* jshint node:true */
module.exports = function( grunt ) {
	'use strict';

	var config = {};

	// The makepot task extracts gettext messages from source
	// code and generates the POT file
	config.makepot = {
		framework: {
			options: {
				cwd: 'woocommerce',
				domainPath: 'i18n/languages',
				exclude: [],
				potFilename: 'woocommerce-plugin-framework.pot',
				mainFile: 'index.php',
				potHeaders: {
					'report-msgid-bugs-to': 'https://support.woocommerce.com/hc/',
					'project-id-version': '<%= pkg.title %> <%= pkg.version %>',
				},
				processPot: function( pot ) {
					delete pot.headers['x-generator'];
					return pot;
				}, // jshint ignore:line
				type: 'wp-plugin',
				updateTimestamp: false,
				updatePoFiles: true,
			}
		}
	};

	return config;
};