gulp-po-concat
Concatenate PO files
Install
Install with npm
npm install --save-dev gulp-po-concat
Example
var gulp = ;var poConcat = ;var xgettextHbs = ;var xgettextJs = ;var merge = merge; gulp;
Options
domain
gulp-po-concat's default behavior is to assign all messages to a domain that matches the
file's name. For example, all messages in a file named messages.pot
would be assigned
to domain messages
. Use the domain
option to customize this behavior.
You can force all messages, regardless of filename, to use a given domain by passing a string to the domain
option:
gulp ;
This is useful when you don't care about domains and just want to concatenate a bunch of PO files.
You can also customize the domain per file by passing a function. This function is passed a vinyl file object and should return a string representing the domain for said file. Here's how you'd use this to implement the default behavior of calculating domains based on a file's name:
var path = ;gulp ;