nikaia / translation-sheet

Translating Laravel languages files using a Google Spreadsheet.
GNU General Public License v3.0
291 stars 60 forks source link

fix(excludes) sends indexed array when excluding files to google api #48

Closed frovere closed 4 years ago

frovere commented 4 years ago

It fails the request to google api because it tries to send the json payload as an object instead to an array

Error example

Invalid JSON payload received. Unknown name \"2\" at 'data.values': Cannot find field.
Invalid JSON payload received. Unknown name \"3\" at 'data.values': Cannot find field.
Invalid JSON payload received. Unknown name \"4\" at 'data.values': Cannot find field.
Invalid JSON payload received. Unknown name \"5\" at 'data.values': Cannot find field.