mololab / json-translator

jsontt 💡 - AI JSON Translator with GPT + other FREE translation modules to translate your json/yaml files into other languages ✅ Check Readme ✌ Supports GPT / DeepL / Google / Bing / Libre / Argos
https://mololab.org/jsontt/npm
MIT License
493 stars 71 forks source link

fix exception when translate a json array #20

Closed highkay closed 11 months ago

highkay commented 1 year ago

when translate a json array, it throw an exception in key() function. I add an Array.isArray for the object then process the object in different ways.

ParvinEyvazov commented 1 year ago

Hi @highkay ,

Thank you for your contribution. Before merging, I am trying to make sure about the bug.

1 - Are you using it as a CLI or as a package (in code)? 2 - Can you please provide an example input that causes this error?

ParvinEyvazov commented 1 year ago

@highkay

ParvinEyvazov commented 11 months ago

Closing this PR because of inactivity. Please feel free to open it again @highkay, if you are sure that is to be fixed.