vslavik / poedit

Translations editor for Mac, Windows and Unix
https://poedit.net
MIT License
1.8k stars 278 forks source link

Support for WordPress JSON translations #661

Closed redoper1 closed 2 years ago

redoper1 commented 4 years ago

Hello,

do you plan to implement compilation to JSON translation files to support JavaScript I18n for WordPress in future?

Right now we must run WP-CLI script after each translation update to get new translations to work in JavaScript messages.

(This feature was mentioned in this news)

vslavik commented 4 years ago

Please get it touch via help@poedit.net for non-open source portions of Poedit Pro.

The reality is that I'm yet to encounter this is real use outside of WordPress core itself, hence why it wasn't a high priority. So practical examples from you would be useful.

redoper1 commented 4 years ago

Yeah sure, no problem. I will get to that as soon as possible.

pedro-mendonca commented 2 years ago

Hi, would be awesome to be able to generate the .json files on .po file save, as it saves the .mo binary.

vslavik commented 2 years ago

And Poedit 3 already does that (via FTP connection): https://poedit.net/news/poedit3/

pedro-mendonca commented 2 years ago

Thanks @vslavik :-)

pedro-mendonca commented 2 years ago

Would it be possible to also generate the .json files when saving locally, and not only on via FTP connection?

vslavik commented 2 years ago

Sure, it is possible (what isn't), it's just a matter of technical hurdles. It's coming.

pedro-mendonca commented 2 years ago

Thanks 😃

pfk84 commented 2 years ago

As gettext.js also uses JSON, I would also highly appreciate an "Export to JSON" feature.