johannhof / gulp-phraseapp

Importing Phraseapp translations as a Gulp task
4 stars 5 forks source link

Add file_format to options #7

Closed pepahlavacek closed 8 years ago

pepahlavacek commented 8 years ago

Allow specifying file_format for download and upload. And default to nested_json.

When using "nested_json" (currently hardcoded), it automatically converts

{
  "random.translation.key": "String to translate"
}

to

{
  "random": {
    "translation": {
      "key": {
        "String to translate"
      }
    }
  }
}

With simple_json (currently preferred by React.Intl), it keeps the format.

johannhof commented 8 years ago

Thanks 👍

pepahlavacek commented 8 years ago

thank you for merging that fast!:)