ryanhex53 / gpt-po

command tool for translate po files by using openai api
69 stars 13 forks source link

Expose gettext-parser options to gpt-po command line as an optional argument #15

Open exsilium opened 3 months ago

exsilium commented 3 months ago

Hi! Firstly, thank you for this great project, I find that it works very well on my pipeline when working with .po files. Any shortcomings or comments I have are actually more due to how gettext-parser works and not related to gpt-po.

One small addition to the command line options I would recommend you to consider would be to expose the po.compile options - e.g. to set a different folding parameter requires one to change it from the code. Perhaps with this change also allow other options like sorting to be passed on?

In any case, great work on this module! Cheers! 🚀 🎸

ryanhex53 commented 1 minute ago

In which sub command you want that parameters the most. this tools has 3 subcommand relate to po files, translate (the default one), remove and sync

And those parameters are all about po compilation, so naming them is harder for me than writing the code. I'd like you to give some advice about this.