grunt-angular-gettext icon indicating copy to clipboard operation
grunt-angular-gettext copied to clipboard

config location of destination folder in nggettext_compile command

Open NVK15 opened this issue 10 years ago • 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.

NVK15 avatar Jan 19 '15 08:01 NVK15

    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

oomkoos avatar Feb 03 '16 13:02 oomkoos