leonelquinteros / gotext

Go (Golang) GNU gettext utilities package
Other
432 stars 58 forks source link

Add support for json format #71

Closed devhaozi closed 1 year ago

devhaozi commented 1 year ago

Please describe your issue

Is this a bug, an improvement, a proposal or something else? Describe it.

an improvement

What's the expected behaviour, the current behaviour and the steps to reproduce it?

expected to add support for json format

Comments

Consider adding JSON format support? For the front-end project used. Reference: https://github.com/php-gettext/Json

leonelquinteros commented 1 year ago

Hi, this can be implemented as a helper outside the package. That's why we had the Translator interface and others related. It should be relatively easy to implement, but there is no plan to get it into this package anytime soon. PRs are welcome as always, but I feel better to have this implemented outside this package.