mololab / json-translator

jsontt 💡 - AI JSON Translator + other FREE translation modules to translate your json/yaml files into other languages ✅ Check Readme ✌
https://mololab.org/jsontt/npm
MIT License
427 stars 53 forks source link

fix exception when translate a json array #20

Closed highkay closed 7 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 7 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.