rubenv/angular-gettext-tools — pull request #30 by thrykol (2014-08-12 14:56:29+00:00)
Title: Merge multiple occurances of a language into a single object when compiling

If a common 'dest' is defined for multiple nggettext_compile.all.files elements, the destination file will be overridden. In the example below, the json compiled for 'second/path' will override the json compiled for 'first/path'. This patch will group the strings by language before calling JSON.stringify();

nggettext_compile : {
all : {
files : [
{
cwd : 'first/path',
src : '*.po',
dest : 'json/output',
ext : '.json'
},
{
cwd : 'second/path',
src : '*.po',
dest : 'json/output',
ext : '.json'
}
]
}
}