ttag-org / ttag

:orange_book: simple approach for javascript localization
https://ttag.js.org/
MIT License
338 stars 41 forks source link

webpack po loader #205

Closed dimaqq closed 3 years ago

dimaqq commented 3 years ago

Hi ttag devs,

I've written a teeny-tiny webpack loader that allows you to import PO files directly. https://github.com/dimaqq/ttag-po-loader

Specifically I thought that running po2json manually was an unnecessary step/complication. Now, for example, a translator can edit a PO file and see the changes reflected live in the UI 🕺 (assuming HMR, like yarn start for CRA).

I'd love for this to be available to other ttag users, for example it would be awesome if the ttag org took over this loader 😸

Cheers, Dima Tisnek

AlexMost commented 3 years ago

Hi @dimaqq! Awesome work! If you want we can place this repo in ttag-org also. I have sent you the invitation to ttag-org

dimaqq commented 3 years ago

Done 🎉 May need some help later with cleaning it up enough to be pushed to npm...