rubenv/grunt-angular-gettext

config location of destination folder in nggettext_compile command

NVK15 opened this issue · 1 comments

Hi,

I am trying to generate JSON output file using PO files. Below is the configuration i have used:

nggettext_compile: {
all: {
options: {
format: "json"
},
files: [
{
expand: true,
cwd:"../",
src: ["po/*.po"],
dest: 'lang/',
ext: ".json"
}
]
},
},

The PO files are present in folder named: "PO" as mentioned in 'src'. And i want to output the JSON files in "lang" folder which is at the same level as "PO" folder. I somehow cant get this command working. Neither the folder nor JSON files are generated. Can anyone help me with correct configuration?

Thanks.

    nggettext_compile: {
        all: {
          options: {
            format: "json"
        },
            files: [{
                expand: true,
                dot: true,
                cwd: "src/common/i18n/po",
                dest: "src/common/i18n/lang",
                src: ["*.po"],
                ext: ".json"
            }]
        },
    }

'src/common/i18n/ ' is just an example location obviously