json-translator icon indicating copy to clipboard operation
json-translator copied to clipboard

feature request: skip already translated keys

Open johnm1998 opened this issue 1 year ago • 7 comments

Provide an option to skip translation of keys if it's already present in output file. This is useful if there are so many keys in the input file and most of them is already translated.

johnm1998 avatar Jul 30 '24 07:07 johnm1998

Hi @johnm1998,

Do you mean it will read the output file generated before and only translate the missing ones? Is that correct?

ParvinEyvazov avatar Jul 30 '24 14:07 ParvinEyvazov

yes @ParvinEyvazov

johnm1998 avatar Jul 31 '24 03:07 johnm1998

I'm requesting this feature for the cli mode. I have many keys in the input files that are already translated to output files. Currently jsontt translates the whole keys again if I add just few more keys in the input file.

johnm1998 avatar Jul 31 '24 17:07 johnm1998

+1 for this, it would be nice to have this option - to either translate all keys or those which are either empty or not present.

michalpulpan avatar Sep 12 '24 12:09 michalpulpan

I noticed that this issue has had no recent activity, and I’m interested in working on it. Could you please let me know if you still want this addressed?

fadkeabhi avatar Oct 09 '24 06:10 fadkeabhi

Hi @fadkeabhi,

Feel free to give it a shot! It would be an awesome feature.

ParvinEyvazov avatar Oct 09 '24 07:10 ParvinEyvazov

@ParvinEyvazov I have created a PR regarding this issue, take a look at it here. https://github.com/mololab/json-translator/pull/68

fadkeabhi avatar Oct 09 '24 18:10 fadkeabhi

@ParvinEyvazov small reminder to close the issue since the it is already resolved

malkhatib416 avatar Jan 17 '25 09:01 malkhatib416